Skip to content
Snippets Groups Projects
Commit 7466f4b1 authored by xandeadx's avatar xandeadx
Browse files

Fix error upload on CKEditor full screen

parent 8377f09c
Branches
Tags
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment