TinyMCE WYSIWYG text editor plugin widget for Yii PHP framework 2.0
The preferred way to install this extension is through composer.
Either run
php composer.phar require "maybeworks/yii2-tinymce" "*"
or add
"maybeworks/yii2-tinymce" : "*"
to the require section of your application's composer.json
file.
Basic usage
use maybeworks\tinymce\TinyMceWidget;
<?= $form->field($model, 'text')->widget(TinyMceWidget::className());?>
Editor config
use maybeworks\tinymce\TinyMceWidget;
<?= $form->field($model, 'text')->widget(
TinyMceWidget::className(),
clientOptions' => [
'plugins' => [
"code fullscreen",
"media table contextmenu paste"
],
'toolbar' => "undo redo | styleselect | bold italic | link image"
]
);?>
Documentation: TinyMCE plugin site
Nothing is impossible, limit exists only in the minds of...
maybe.works
No stable releases.
Comments