26/10
2017
Yii2 publish editor using froala jquery
Yii2 publish editor using froala jquery, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require muhiddingithub/yii2-meditor "dev-master"
or add, (*4)
"muhiddingithub/yii2-meditor": "dev-master"
to the require section of your composer.json
file., (*5)
Jquery source, (*6)
with ActiveForm, (*7)
$form->field($model, 'body')->widget(\muhiddin\meditor\FroalaEditor::className(), [ 'options' => [ 'height' => '400px', 'imageManagerPageSize' => 2 ] ])
echo \muhiddin\meditor\FroalaEditor::widget([ 'name'=>'name', 'value'=>'', 'form'=>$form,// if has $form ActiveForm, else not set 'model'=>$model, // if has $model extend Model, else not set 'options' => [ 'height' => '400px', 'imageManagerPageSize' => 2 ] ])
'components' => [ ... 'modules'=>[ ... 'meditor' => [ 'class' => 'muhiddin\meditor\Module', ] ... ] ... ]