浏览代码

Unified the UI destruction process across the editors.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
272672b618
共有 1 个文件被更改,包括 10 次插入0 次删除
  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();
+	}
 }