Bug create that create conflict with other plugins.
-
There is a bug in nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/static/ngg_attach_to_post_tinymce_plugin.js
editor.windowManager.open is supposed to return a value.
So when you overwrite it, you need to return modal:
editor.windowManager.open = function(one, two) {
var modal = editor.windowManager.nggOldOpen(one, two);
modal.on(‘close’, self.wm_close_event);
return modal; // missing line
};By not returning the value any other plugin that try to get a variable and use it have problems.
So for example a plugin has some code like :
var win = editor.windowManager.open(…);
win is always undefined.So it would be great if you could fix it.
Thanks,
The topic ‘Bug create that create conflict with other plugins.’ is closed to new replies.