moonlandsoft/yii2-tinymce The TinyMCE Extension for yii framework

extensiontexttinymceeditorwyswyg

moonlandsoft/yii2-tinymce

The TinyMCE Extension for yii framework

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist moonlandsoft/yii2-tinymce "*"

or add

"moonlandsoft/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 moonland\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,
    ]
]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



MIT license
Stats
1 github stars & 9 github forks
14 downloads in the last day
619 downloads in the last 30 days
32988 total downloads