|
|
@@ -123,9 +123,15 @@ export default class InlineEditorUI extends EditorUI {
|
|
|
this.ready();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @inheritDoc
|
|
|
+ */
|
|
|
destroy() {
|
|
|
- this.view.editable.disableEditingRootListeners();
|
|
|
- this.editor.editing.view.detachDomRoots();
|
|
|
+ const view = this.view;
|
|
|
+ const editingView = this.editor.editing.view;
|
|
|
+
|
|
|
+ view.editable.disableEditingRootListeners();
|
|
|
+ editingView.detachDomRoot( view.editable.name );
|
|
|
|
|
|
super.destroy();
|
|
|
}
|