@@ -109,6 +109,16 @@ export default class DecoupledEditorUI extends EditorUI {
this.ready();
}
+ /**
+ * @inheritDoc
+ */
+ destroy() {
+ this.view.editable.disableDomRootActions();
+ this.editor.editing.view.detachDomRoots();
+
+ super.destroy();
+ }
/**
* Initializes the inline editor toolbar and its panel.
*