yii2cmf / yii2-tinymce-widget
TinyMCE widget for Yii2.
Package info
github.com/yii2cmf/yii2-tinymce-widget
Language:JavaScript
Type:yii2-extension
pkg:composer/yii2cmf/yii2-tinymce-widget
dev-master
2019-08-15 14:34 UTC
Requires
- tinymce/tinymce: 5.0.13
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-02-19 18:54:19 UTC
README
TinyMCE widget for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2cmf/yii2-tinymce-widget "*"
or add
"yii2cmf/yii2-tinymce-widget": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'post_content')->widget(\yii2cmf\tinymce\TinyMCE::class) ?>
With config
<?= $form->field($model, 'post_content')->widget(\yii2cmf\tinymce\TinyMCE::class, ['height' => '400px', 'width' => '100%', 'plugins' => 'code table media image']) ?>