@ckeditor/ckeditor5-editor-multi-root 0.0.0-nightly-20250616.0 → 0.0.0-nightly-20250617.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-20250616.0",
3
+ "version": "0.0.0-nightly-20250617.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-20250616.0",
16
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250616.0",
17
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250616.0",
18
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250616.0",
19
- "ckeditor5": "0.0.0-nightly-20250616.0",
15
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250617.0",
16
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250617.0",
17
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250617.0",
18
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250617.0",
19
+ "ckeditor5": "0.0.0-nightly-20250617.0",
20
20
  "es-toolkit": "1.38.0"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
@@ -59,7 +59,7 @@ declare module '@ckeditor/ckeditor5-core' {
59
59
  * ```
60
60
  *
61
61
  * You can react to root attributes changes by listening to
62
- * {@link module:engine/model/document~Document#event:change:data document `change:data` event}:
62
+ * {@link module:engine/model/document~ModelDocument#event:change:data document `change:data` event}:
63
63
  *
64
64
  * ```ts
65
65
  * editor.model.document.on( 'change:data', () => {
@@ -8,7 +8,7 @@
8
8
  import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
9
9
  import { type DecoratedMethodEvent } from 'ckeditor5/src/utils.js';
10
10
  import { MultiRootEditorUI } from './multirooteditorui.js';
11
- import { type RootElement } from 'ckeditor5/src/engine.js';
11
+ import { type ModelRootElement } from 'ckeditor5/src/engine.js';
12
12
  /**
13
13
  * The multi-root editor implementation.
14
14
  *
@@ -167,7 +167,7 @@ export declare class MultiRootEditor extends Editor {
167
167
  *
168
168
  * After a root is detached all its children are removed, all markers inside it are removed, and whenever something is inserted to it,
169
169
  * it is automatically removed as well. Finally, a detached root is not returned by
170
- * {@link module:engine/model/document~Document#getRootNames} by default.
170
+ * {@link module:engine/model/document~ModelDocument#getRootNames} by default.
171
171
  *
172
172
  * It is possible to re-add a previously detached root calling {@link #addRoot}.
173
173
  *
@@ -222,14 +222,14 @@ export declare class MultiRootEditor extends Editor {
222
222
  * @param label The accessible label text describing the editable to the assistive technologies.
223
223
  * @returns The created DOM element. Append it in a desired place in your application.
224
224
  */
225
- createEditable(root: RootElement, placeholder?: string, label?: string): HTMLElement;
225
+ createEditable(root: ModelRootElement, placeholder?: string, label?: string): HTMLElement;
226
226
  /**
227
227
  * Detaches the DOM editable element that was attached to the given root.
228
228
  *
229
229
  * @param root Root for which the editable element should be detached.
230
230
  * @returns The DOM element that was detached. You may want to remove it from your application DOM structure.
231
231
  */
232
- detachEditable(root: RootElement): HTMLElement;
232
+ detachEditable(root: ModelRootElement): HTMLElement;
233
233
  /**
234
234
  * Loads a root that has previously been declared in {@link module:core/editor/editorconfig~EditorConfig#lazyRoots `lazyRoots`}
235
235
  * configuration option.
@@ -252,7 +252,7 @@ export declare class MultiRootEditor extends Editor {
252
252
  *
253
253
  * When a root becomes loaded, it will be treated by the editor as though it was just added. This, among others, means that all
254
254
  * related events and mechanisms will be fired, including {@link ~MultiRootEditor#event:addRoot `addRoot` event},
255
- * {@link module:engine/model/document~Document#event:change `model.Document` `change` event}, model post-fixers and conversion.
255
+ * {@link module:engine/model/document~ModelDocument#event:change `model.Document` `change` event}, model post-fixers and conversion.
256
256
  *
257
257
  * Until the root becomes loaded, all above mechanisms are suppressed.
258
258
  *
@@ -302,7 +302,7 @@ export declare class MultiRootEditor extends Editor {
302
302
  getRootAttributes(rootName: string): RootAttributes;
303
303
  /**
304
304
  * Registers given string as a root attribute key. Registered root attributes are added to
305
- * {@link module:engine/model/schema~Schema schema}, and also returned by
305
+ * {@link module:engine/model/schema~ModelSchema schema}, and also returned by
306
306
  * {@link ~MultiRootEditor#getRootAttributes `getRootAttributes()`} and
307
307
  * {@link ~MultiRootEditor#getRootsAttributes `getRootsAttributes()`}.
308
308
  *
@@ -498,7 +498,7 @@ export declare class MultiRootEditor extends Editor {
498
498
  */
499
499
  export type AddRootEvent = {
500
500
  name: 'addRoot';
501
- args: [root: RootElement];
501
+ args: [root: ModelRootElement];
502
502
  };
503
503
  /**
504
504
  * Fired whenever a root is {@link ~MultiRootEditor#detachRoot detached} from the editor model.
@@ -514,7 +514,7 @@ export type AddRootEvent = {
514
514
  */
515
515
  export type DetachRootEvent = {
516
516
  name: 'detachRoot';
517
- args: [root: RootElement];
517
+ args: [root: ModelRootElement];
518
518
  };
519
519
  /**
520
520
  * Event fired when {@link ~MultiRootEditor#loadRoot} method is called.
@@ -359,7 +359,7 @@ export class MultiRootEditor extends Editor {
359
359
  *
360
360
  * After a root is detached all its children are removed, all markers inside it are removed, and whenever something is inserted to it,
361
361
  * it is automatically removed as well. Finally, a detached root is not returned by
362
- * {@link module:engine/model/document~Document#getRootNames} by default.
362
+ * {@link module:engine/model/document~ModelDocument#getRootNames} by default.
363
363
  *
364
364
  * It is possible to re-add a previously detached root calling {@link #addRoot}.
365
365
  *
@@ -462,7 +462,7 @@ export class MultiRootEditor extends Editor {
462
462
  *
463
463
  * When a root becomes loaded, it will be treated by the editor as though it was just added. This, among others, means that all
464
464
  * related events and mechanisms will be fired, including {@link ~MultiRootEditor#event:addRoot `addRoot` event},
465
- * {@link module:engine/model/document~Document#event:change `model.Document` `change` event}, model post-fixers and conversion.
465
+ * {@link module:engine/model/document~ModelDocument#event:change `model.Document` `change` event}, model post-fixers and conversion.
466
466
  *
467
467
  * Until the root becomes loaded, all above mechanisms are suppressed.
468
468
  *
@@ -545,7 +545,7 @@ export class MultiRootEditor extends Editor {
545
545
  }
546
546
  /**
547
547
  * Registers given string as a root attribute key. Registered root attributes are added to
548
- * {@link module:engine/model/schema~Schema schema}, and also returned by
548
+ * {@link module:engine/model/schema~ModelSchema schema}, and also returned by
549
549
  * {@link ~MultiRootEditor#getRootAttributes `getRootAttributes()`} and
550
550
  * {@link ~MultiRootEditor#getRootsAttributes `getRootsAttributes()`}.
551
551
  *
@@ -3,7 +3,7 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { EditorUI } from 'ckeditor5/src/ui.js';
6
- import { enablePlaceholder } from 'ckeditor5/src/engine.js';
6
+ import { enableViewPlaceholder } from 'ckeditor5/src/engine.js';
7
7
  /**
8
8
  * The multi-root editor UI class.
9
9
  */
@@ -170,7 +170,7 @@ export class MultiRootEditorUI extends EditorUI {
170
170
  if (placeholder) {
171
171
  editingRoot.placeholder = placeholder;
172
172
  }
173
- enablePlaceholder({
173
+ enableViewPlaceholder({
174
174
  view: editingView,
175
175
  element: editingRoot,
176
176
  isDirectHost: false,