소스 검색

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();
+	}
 }