From e8da6a932992608e2c915de263e06752e1ab0147 Mon Sep 17 00:00:00 2001 From: StefanRijnhart Date: Thu, 23 Jul 2015 18:40:44 +0200 Subject: [PATCH] [FIX] Now that we actually destroy editors, we need another check for their currentness Fixes #176 --- web_ckeditor4/static/src/js/web_ckeditor4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_ckeditor4/static/src/js/web_ckeditor4.js b/web_ckeditor4/static/src/js/web_ckeditor4.js index 809ed604..4935ac9c 100644 --- a/web_ckeditor4/static/src/js/web_ckeditor4.js +++ b/web_ckeditor4/static/src/js/web_ckeditor4.js @@ -38,7 +38,7 @@ openerp.web_ckeditor4 = function(instance) self_arguments=arguments; setTimeout(function() { - if(CKEDITOR.instances[self.editor.name]) + if(self.editor) { fn.apply(self, self_arguments); }