diff --git a/web_ckeditor4/static/src/js/web_ckeditor4.js b/web_ckeditor4/static/src/js/web_ckeditor4.js index 1969d29e..809ed604 100644 --- a/web_ckeditor4/static/src/js/web_ckeditor4.js +++ b/web_ckeditor4/static/src/js/web_ckeditor4.js @@ -199,11 +199,16 @@ openerp.web_ckeditor4 = function(instance) { if(this.editor) { - CKEDITOR.remove(this.editor); this.editor.removeAllListeners(); + this.editor.destroy(); this.editor = null; } }, + destroy: function() + { + this.destroy_content(); + this._super(); + }, destroy_content: function() { this._cleanup_editor();