noumo / easyii

Easy yii2 cms powered by Yii framework 2
http://easyiicms.com
591 stars 270 forks source link

Redactor js not working #69

Open ismorodin opened 9 years ago

ismorodin commented 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

toolbar

noumo commented 9 years ago

ye, it seems to be a bad version of redactor, i will update it soon.