yii2cmf / yii2-tinymce-widget
TinyMCE widget for Yii2.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- tinymce/tinymce: 5.0.13
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-04-26 21:33:40 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']) ?>