Problem with CKEditor Easy Image Upload Solved

User's avatar
Stanisław W.
11:51 May 08, 2014
Hello, J have problem with install Your script,after add config.extraPlugins = 'doksoft_instant_image'; My FireBug in mozilla show error:
TypeError: b.ownerDocument is undefined
...turn f===""?"1":f;}return e.style.opacity;}}},cssNumber:{zIndex:!0,fontWeight:!0..."  in plugin.js line 13

J have Jquery 1.8.2 and CKEditor 4.2.1

Can You help me ? What J'm doing wrong ?
Support team avatar
JS+
11:24 May 12, 2014
Hello,

I have tested it on my Mozilla Firefox and all seems to be OK.
I think that you incorrectly use JQuery in your own scripts. Instant Image Upload plugin already has JQuery in itself and use it in noConflict manner.
Your scripts should also correctly use JQuery's noConflict feature to be correct with the plugin (and with any other scripts you have).

Here is an example of correct JQuery initialization:
var jq = jQuery.noConflict();

and then you can use it:
jq(".some-class").doSomething();

Of cause you can use any variable name, even "$".
User's avatar
Stanisław W.
11:59 May 12, 2014
Now its working but in console of firebug is
b.ownerDocument is undefined ...turn f===""?"1":f;}return e.style.opacity;}}},cssNumber:{zIndex:!0,fontWeight:!0...
and
b.ownerDocument is undefined ...m.total.size);}m.start();},FileUploaded:function(n,m,l){if(l.response.substr(0,1..."
in plugin.js on line 13 and 15
Support team avatar
JS+
18:41 May 15, 2014
Good to hear that is works now.

The plugin does not uses `ownerDocument` call directly. You see this error in `plugin.js` because JQuery is placed directly in this file. Be sure that your other plugins all times use your version of JQuery. If you want to totally figure out even this message, I can advice you to see call stack trace when this message is printed to see real caller (script) of `ownerDocument`.