|
@@ -54,7 +54,7 @@ export default class InlineEditorUI extends EditorUI {
|
|
|
view.editable.name = editingRoot.rootName;
|
|
view.editable.name = editingRoot.rootName;
|
|
|
|
|
|
|
|
editor.on( 'dataReady', () => {
|
|
editor.on( 'dataReady', () => {
|
|
|
- view.editable.attachDomRootActions();
|
|
|
|
|
|
|
+ view.editable.enableDomRootActions();
|
|
|
|
|
|
|
|
attachPlaceholder( editingView, getPlaceholderElement( editingRoot ), 'Type some text...' );
|
|
attachPlaceholder( editingView, getPlaceholderElement( editingRoot ), 'Type some text...' );
|
|
|
} );
|
|
} );
|
|
@@ -89,6 +89,13 @@ export default class InlineEditorUI extends EditorUI {
|
|
|
toolbar: view.toolbar
|
|
toolbar: view.toolbar
|
|
|
} );
|
|
} );
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ destroy() {
|
|
|
|
|
+ this.view.editable.disableDomRootActions();
|
|
|
|
|
+ this.editor.editing.view.detachDomRoots();
|
|
|
|
|
+
|
|
|
|
|
+ super.destroy();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getPlaceholderElement( viewRoot ) {
|
|
function getPlaceholderElement( viewRoot ) {
|