скрин
http://shot.hsdn.org/p8rEes8y
При клике в текстареа вылазит куча ошибок в консоли браузера.
Imperavi не работает как нужно. Например текст жирным не становится.
Какая то проблема с конфликтами джава скриптов я так понимаю, но как исправить не понимаю.
Это первое так сказать расширение которое я поставил через композер и сразу конфликт.
Контроллер
Код: Выделить всё
'images-get' => [
'class' => 'vova07\imperavi\actions\GetAction',
'url' => Yii::getAlias('@web/img/events/'), // Directory URL address, where files are stored.
'path' => Yii::getAlias('@webroot/img/events/'), // Or absolute path to directory where files are stored.
//'options' => ['basePath' => Yii::getAlias('@webroot/img/events')],
'type' => GetAction::TYPE_IMAGES,
],
'image-upload' => [
'class' => 'vova07\imperavi\actions\UploadAction',
'url' => Yii::getAlias('@web/img/events/'), // Directory URL address, where files are stored.
'path' => Yii::getAlias('@webroot/img/events/') // Or absolute path to directory where files are stored.
],
Код: Выделить всё
<?php echo $form->field($model, 'body')->widget(Widget::className(), [
//'selector' => '#my-textarea-id',
'settings' => [
'lang' => 'ru',
'minHeight' => 200,
'imageManagerJson' => Url::toRoute(['/events/images-get']),
'imageUpload' => Url::toRoute(['/events/image-upload']),
'plugins' => [
'imagemanager',
],
]
]); ?>
Код: Выделить всё
Uncaught TypeError: $(...).closest(...).size is not a function
at init.<anonymous> (redactor.js:1463)
at HTMLDocument.proxy (jquery.js:496)
at HTMLDocument.dispatch (jquery.js:5206)
at HTMLDocument.elemData.handle (jquery.js:5014)
(anonymous) @ redactor.js:1463
proxy @ jquery.js:496
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
Uncaught TypeError: $current.closest(...).size is not a function
at init.<anonymous> (redactor.js:6913)
at Object.proxy (jquery.js:496)
at Function.each (jquery.js:362)
at init.dropdowns (redactor.js:6905)
at init.toolbar (redactor.js:6890)
at HTMLDivElement.proxy (jquery.js:496)
at HTMLDivElement.dispatch (jquery.js:5206)
at HTMLDivElement.elemData.handle (jquery.js:5014)
(anonymous) @ redactor.js:6913
proxy @ jquery.js:496
each @ jquery.js:362
dropdowns @ redactor.js:6905
toolbar @ redactor.js:6890
proxy @ jquery.js:496
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014
Uncaught TypeError: $current.closest(...).size is not a function
at init.<anonymous> (redactor.js:6913)
at Object.proxy (jquery.js:496)
at Function.each (jquery.js:362)
at init.dropdowns (redactor.js:6905)
at init.toolbar (redactor.js:6890)
at HTMLDivElement.proxy (jquery.js:496)
at HTMLDivElement.dispatch (jquery.js:5206)
at HTMLDivElement.elemData.handle (jquery.js:5014)
(anonymous) @ redactor.js:6913
proxy @ jquery.js:496
each @ jquery.js:362
dropdowns @ redactor.js:6905
toolbar @ redactor.js:6890
proxy @ jquery.js:496
dispatch @ jquery.js:5206
elemData.handle @ jquery.js:5014