diff --git a/src/rich_text_editor/model/RichTextEditor.js b/src/rich_text_editor/model/RichTextEditor.js index 597a3f787..8f91f15a9 100644 --- a/src/rich_text_editor/model/RichTextEditor.js +++ b/src/rich_text_editor/model/RichTextEditor.js @@ -126,6 +126,15 @@ export default class RichTextEditor { return this; } + destroy() { + this.el = 0; + this.doc = 0; + this.actionbar = 0; + this.settings = {}; + this.classes = {}; + this.actions = []; + } + setEl(el) { this.el = el; this.doc = el.ownerDocument;