@ckeditor/ckeditor5-editor-multi-root 0.0.0-nightly-20250107.0 → 0.0.0-nightly-20250108.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-editor-multi-root",
3
- "version": "0.0.0-nightly-20250107.0",
3
+ "version": "0.0.0-nightly-20250108.0",
4
4
  "description": "Multi-root editor implementation for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,11 +12,11 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250107.0",
16
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250107.0",
17
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250107.0",
18
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250107.0",
19
- "ckeditor5": "0.0.0-nightly-20250107.0",
15
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250108.0",
16
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250108.0",
17
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250108.0",
18
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250108.0",
19
+ "ckeditor5": "0.0.0-nightly-20250108.0",
20
20
  "lodash-es": "4.17.21"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
@@ -115,7 +115,10 @@ export default class MultiRootEditorUI extends EditorUI {
115
115
  * @param editable Editable to remove from the editor UI.
116
116
  */
117
117
  removeEditable(editable) {
118
- this.editor.editing.view.detachDomRoot(editable.name);
118
+ const editingView = this.editor.editing.view;
119
+ if (editingView.getDomRoot(editable.name)) {
120
+ editingView.detachDomRoot(editable.name);
121
+ }
119
122
  editable.unbind('isFocused');
120
123
  this.removeEditableElement(editable.name);
121
124
  }