Browse Source

[FIX] Now that we actually destroy editors, we need another check for their currentness

Fixes #176
pull/186/head
StefanRijnhart 9 years ago
parent
commit
e8da6a9329
  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