letyii / yii2-tinymce
TinyMce for yii2 textarea
Installs: 30 967
Dependents: 2
Suggesters: 0
Security: 0
Stars: 8
Watchers: 7
Forks: 2
Open Issues: 2
Requires
- php: >=5.4
- tinymce/tinymce: >=4
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-05 07:46:42 UTC
README
Renders a TinyMCE WYSIWYG text editor plugin widget.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require "letyii/yii2-tinymce" "*"
or add
"letyii/yii2-tinymce": "*"
to the require section of your application's composer.json
file.
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', ], ], ], ]);