Commit 7466f4b1 authored by xandeadx's avatar xandeadx

Fix error upload on CKEditor full screen

parent 8377f09c
......@@ -67,7 +67,7 @@ CKEDITOR.plugins.add('OCUpload', {
* Files selected handler.
*/
Drupal.ocupload.ckeditorPlugin.onFilesSubmitted = function (files, event) {
var $textarea = $(event.target).closest('.form-item').find('textarea');
var $textarea = $(event.target).closest('.cke').prev('textarea');
var editorInstance = CKEDITOR.instances[$textarea.attr('id')];
var selection = editorInstance.getSelection();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment