Answer the question
In order to leave comments, you need to log in
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']),
],
]
)
jQuery('#w1').redactor({
"buttonSource":true,
"convertDivs":false,
"removeEmptyTags":false,
"multipleImageUpload":true,
"imageUpload":"/file-storage/upload-imperavi",
"lang":"ru",
"plugins":["fontcolor","video","imagemanager"]});
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question