kant / yii2-tinymce
There is no license information available for the latest version (0.2) of this package.
Tinymce widget for Yii 2
0.2
2017-09-11 03:16 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2026-02-14 22:27:41 UTC
README
This extension provides The Most Advanced WYSIWYG HTML Editor tinymce, called Gii, for Yii framework 2.0 applications.
For license information check the LICENSE-file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kant/yii2-tinymce
or add
"kant/yii2-tinymce": "~0.2"
to the require-dev section of your composer.json file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
<?= $form->field($model, 'content')->textarea([ //options ])->widget(TinymceWidget::class, [ 'clientOptions' => [ 'height' => '300px', //options ] ]); ?>
clientOptions are refered tinymce's official agruments:
see tinymce/docs