model
Instance of Model|ActiveRecord. Required ifname
has not been defined.attribute
attribute name in your model. Required ifname
has not been defined & whenmodel
has been defined.name
input's name. Required ifmodel
&attribute
has not been defined.value
default value of tinymce. Not required Default is value of$model->$attribute
orempty
when not usingmodel
sectionaction
default isUrl::to(['/roxymce/default/index'])
Not requiredoptions
default options of textarea. Not required. See: Html::textarea()clientOptions
Tinymce options. Not required. See: https://www.tinymce.com/docs/title
Title bar of roxymce iframe. Not required
In your view file, call roxymce widget
echo \phuongdev89\roxymce\widgets\RoxyMceWidget::widget([
'model' => app\models\Post::findOne(1),
'attribute' => 'content',
]);
echo \phuongdev89\roxymce\widgets\RoxyMceWidget::widget([
'name' => 'Post[content]'
]);