Closed mallikarjuna909 closed 7 years ago
Hi, I think it is required because some event handlers are being called several times if we don't unbind events. As per this comment i got "when you destroy the editor you remove it from the DOM but that doesn't itself remove existing event bindings you have against the editor".
Please correct me and confirm, so that i can close this question.
Hi @mallikarjuna909,
If you bind events to the ContentEdit element Root element then you will need to also unbind these before you re-apply them (e.g through listening to the editor start event etc).
Ant
Hi @anthonyjb
Thanks for your kind reply. My doubt is clarified. Hence closed.
Hi, Is it required to unbind events on Destroy like
ContentEdit.Root.get().unbind('paste', this._handleClipboardPaste)
on_EditorApp.prototype.destroy
?Thanks.