Q
Q
qorp2016-04-11 18:17:16
Yii
qorp, 2016-04-11 18:17:16

Is multi-uploading images supported in assofter/yii2-imperavi-redactor?

Hello! I want to multiload images in the editor. Here is the script

echo $form->field($model, 'body')->widget(
            \yii\imperavi\Widget::className(), [
        'plugins' => ['fontcolor', 'video', 'imagemanager'],
        'options' => [
            'minHeight' => 300,
            'buttonSource' => true,
            'convertDivs' => false,
            'removeEmptyTags' => false,
            'multipleImageUpload' => true,
            'imageUpload' => Yii::$app->urlManager->createUrl(['/file-storage/upload-imperavi']),
        ],
            ]
    )

in the source code of the page
jQuery('#w1').redactor({
    "buttonSource":true,
    "convertDivs":false,
    "removeEmptyTags":false,
    "multipleImageUpload":true,
    "imageUpload":"/file-storage/upload-imperavi",
    "lang":"ru",
    "plugins":["fontcolor","video","imagemanager"]});

but multi-boot does not work. Please tell me what I missed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cat Anton, 2016-04-11
@qorp

asofter/yii2-imperavi-redactor is a half-dead clone of yiiext/imperavi-redactor-widget .
The version of editor you are using does not support the multipleImageUpload setting. This setting only appeared in the version from December 16, 2015:
https://imperavi.com/redactor/log
So you either look for or buy a fresh version of redactor.js and hope that the widget will work correctly with it.

Q
qorp, 2016-04-11
@qorp

Thanks man!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question