11/09
2017
Tinymce widget for Yii 2
This extension provides The Most Advanced WYSIWYG HTML Editor tinymce, called Gii, for Yii framework 2.0 applications., (*1)
For license information check the LICENSE-file., (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist kant/yii2-tinymce
or add, (*5)
"kant/yii2-tinymce": "~0.2"
to the require-dev section of your composer.json
file., (*6)
Once the extension is installed, simply modify your application configuration as follows:, (*7)
= $form->field($model, 'content')->textarea([ //options ])->widget(TinymceWidget::class, [ 'clientOptions' => [ 'height' => '300px', //options ] ]); ?>
clientOptions are refered tinymce's official agruments:, (*8)
see tinymce/docs, (*9)