Yii2-tinymce is extention for Yii Framework 2.0
Renders a TinyMCE WYSIWYG text editor plugin widget., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require "letyii/yii2-tinymce" "*"
or add, (*4)
"letyii/yii2-tinymce": "*"
to the require section of your application's composer.json
file., (*5)
Usage Example
$model = Article::findOne(1);
echo $form->field($model, 'content')->widget(letyii\tinymce\Tinymce::className(), [
'options' => [
'class' => 'your_class',
],
'configs' => [ // Read more: http://www.tinymce.com/wiki.php/Configuration
'link_list' => [
[
'title' => 'My page 1',
'value' => 'http://www.tinymce.com',
],
[
'title' => 'My page 2',
'value' => 'http://www.tinymce.com',
],
],
],
]);