8
0
Pārlūkot izejas kodu

Unified the UI destruction process across the editors.

Aleksander Nowodzinski 6 gadi atpakaļ
vecāks
revīzija
93be7bb4b9

+ 10 - 0
packages/ckeditor5-editor-decoupled/src/decouplededitorui.js

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