Browse Source

Merge pull request #186 from StefanRijnhart/8.0-ckeditor_fix_invalid_reference

[FIX] Now that we actually destroy editors, we need another check for…
pull/181/merge
Daniel Reis 9 years ago
parent
commit
443dededa6
  1. 2
      web_ckeditor4/static/src/js/web_ckeditor4.js

2
web_ckeditor4/static/src/js/web_ckeditor4.js

@ -38,7 +38,7 @@ openerp.web_ckeditor4 = function(instance)
self_arguments=arguments; self_arguments=arguments;
setTimeout(function() setTimeout(function()
{ {
if(CKEDITOR.instances[self.editor.name])
if(self.editor)
{ {
fn.apply(self, self_arguments); fn.apply(self, self_arguments);
} }

Loading…
Cancel
Save