klikar3 / yii2-tinymce
The TinyMCE Extension for yii framework
1.0.1
2025-01-15 17:45 UTC
Requires
- klikar3t/helpers: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-02-15 20:41:40 UTC
README
The TinyMCE Extension for yii framework
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist klikar3/yii2-tinymce "*"
or add
"klikar3/yii2-tinymce": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use klikar3\tinymce\TinyMCE; echo TinyMCE::widget(['name' => 'text-content']); $form->field($model, 'attribute')->widget(TinyMCE::className()); //toggle to tinyMCE or to textarea echo TinyMCE::widget(['name' => 'text-content', 'toggle' => ['active' => true]]); $form->field($model, 'attribute')->widget(TinyMCE::className(), [ 'toggle' => [ 'active' => true, ] ]);