Explorar el Código

Unified the UI destruction process across the editors.

Aleksander Nowodzinski hace 7 años
padre
commit
272672b618
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      packages/ckeditor5-editor-balloon/src/ballooneditorui.js

+ 10 - 0
packages/ckeditor5-editor-balloon/src/ballooneditorui.js

@@ -119,4 +119,14 @@ export default class BalloonEditorUI extends EditorUI {
 
 		this.ready();
 	}
+
+	/**
+	 * @inheritDoc
+	 */
+	destroy() {
+		this.view.editable.disableDomRootActions();
+		this.editor.editing.view.detachDomRoots();
+
+		super.destroy();
+	}
 }