Open ismorodin opened 9 years ago
Why doesn't work plugins in Redactor.
<?= $form->field($model, 'text')->widget(Redactor::className(),[ 'options' => [ 'minHeight' => 500, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'plugins' => ['fullscreen','fontcolor','fontsize'] ] ]) ?>
Generate html
jQuery('#page-text').redactor({"imageUpload":"/admin/redactor/upload?dir=pages","fileUpload":"/admin/redactor/upload?dir=pages","minHeight":500,"plugins":["fullscreen","fontcolor","fontsize"],"imageUploadErrorCallback":function(json){alert(json.error);},"fileUploadErrorCallback":function(json){alert(json.error);},"lang":"ru"});
And js script success loaded
ye, it seems to be a bad version of redactor, i will update it soon.
Why doesn't work plugins in Redactor.
Generate html
And js script success loaded