@ckeditor/ckeditor5-editor-multi-root 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231109.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-
|
3
|
+
"version": "0.0.0-nightly-20231109.0",
|
4
4
|
"description": "Multi-root editor implementation for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
],
|
12
12
|
"main": "src/index.js",
|
13
13
|
"dependencies": {
|
14
|
-
"ckeditor5": "0.0.0-nightly-
|
14
|
+
"ckeditor5": "0.0.0-nightly-20231109.0",
|
15
15
|
"lodash-es": "4.17.21"
|
16
16
|
},
|
17
17
|
"author": "CKSource (http://cksource.com/)",
|
package/src/multirooteditor.d.ts
CHANGED
@@ -146,7 +146,7 @@ export default class MultiRootEditor extends MultiRootEditor_base {
|
|
146
146
|
*
|
147
147
|
* Note that attributes added together with a root are automatically registered.
|
148
148
|
*
|
149
|
-
* See also {@link
|
149
|
+
* See also {@link ~MultiRootEditor#registerRootAttribute `MultiRootEditor#registerRootAttribute()`} and
|
150
150
|
* {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes` configuration option}.
|
151
151
|
*
|
152
152
|
* By setting `isUndoable` flag to `true`, you can allow for detaching the root using the undo feature.
|
@@ -260,7 +260,7 @@ export default class MultiRootEditor extends MultiRootEditor_base {
|
|
260
260
|
*
|
261
261
|
* Note that attributes loaded together with a root are automatically registered.
|
262
262
|
*
|
263
|
-
* See also {@link
|
263
|
+
* See also {@link ~MultiRootEditor#registerRootAttribute `MultiRootEditor#registerRootAttribute()`} and
|
264
264
|
* {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes` configuration option}.
|
265
265
|
*
|
266
266
|
* When this method is used in real-time collaboration environment, its effects become asynchronous as the editor will first synchronize
|
@@ -287,8 +287,8 @@ export default class MultiRootEditor extends MultiRootEditor_base {
|
|
287
287
|
/**
|
288
288
|
* Returns attributes for all attached roots.
|
289
289
|
*
|
290
|
-
* Note: all and only {@link
|
291
|
-
* is not set for a given root, `null` will be returned.
|
290
|
+
* Note: all and only {@link ~MultiRootEditor#registerRootAttribute registered} roots attributes will be returned.
|
291
|
+
* If a registered root attribute is not set for a given root, `null` will be returned.
|
292
292
|
*
|
293
293
|
* @returns Object with roots attributes. Keys are roots names, while values are attributes set on given root.
|
294
294
|
*/
|
@@ -296,14 +296,15 @@ export default class MultiRootEditor extends MultiRootEditor_base {
|
|
296
296
|
/**
|
297
297
|
* Returns attributes for the specified root.
|
298
298
|
*
|
299
|
-
* Note: all and only {@link
|
300
|
-
* is not set for a given root, `null` will be returned.
|
299
|
+
* Note: all and only {@link ~MultiRootEditor#registerRootAttribute registered} roots attributes will be returned.
|
300
|
+
* If a registered root attribute is not set for a given root, `null` will be returned.
|
301
301
|
*/
|
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
305
|
* {@link module:engine/model/schema~Schema schema}, and also returned by
|
306
|
-
* {@link
|
306
|
+
* {@link ~MultiRootEditor#getRootAttributes `getRootAttributes()`} and
|
307
|
+
* {@link ~MultiRootEditor#getRootsAttributes `getRootsAttributes()`}.
|
307
308
|
*
|
308
309
|
* Note: attributes passed in {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes`} are
|
309
310
|
* automatically registered as the editor is initialized. However, registering the same attribute twice does not have any negative
|
package/src/multirooteditor.js
CHANGED
@@ -309,7 +309,7 @@ export default class MultiRootEditor extends DataApiMixin(Editor) {
|
|
309
309
|
*
|
310
310
|
* Note that attributes added together with a root are automatically registered.
|
311
311
|
*
|
312
|
-
* See also {@link
|
312
|
+
* See also {@link ~MultiRootEditor#registerRootAttribute `MultiRootEditor#registerRootAttribute()`} and
|
313
313
|
* {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes` configuration option}.
|
314
314
|
*
|
315
315
|
* By setting `isUndoable` flag to `true`, you can allow for detaching the root using the undo feature.
|
@@ -458,7 +458,7 @@ export default class MultiRootEditor extends DataApiMixin(Editor) {
|
|
458
458
|
*
|
459
459
|
* Note that attributes loaded together with a root are automatically registered.
|
460
460
|
*
|
461
|
-
* See also {@link
|
461
|
+
* See also {@link ~MultiRootEditor#registerRootAttribute `MultiRootEditor#registerRootAttribute()`} and
|
462
462
|
* {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes` configuration option}.
|
463
463
|
*
|
464
464
|
* When this method is used in real-time collaboration environment, its effects become asynchronous as the editor will first synchronize
|
@@ -505,8 +505,8 @@ export default class MultiRootEditor extends DataApiMixin(Editor) {
|
|
505
505
|
/**
|
506
506
|
* Returns attributes for all attached roots.
|
507
507
|
*
|
508
|
-
* Note: all and only {@link
|
509
|
-
* is not set for a given root, `null` will be returned.
|
508
|
+
* Note: all and only {@link ~MultiRootEditor#registerRootAttribute registered} roots attributes will be returned.
|
509
|
+
* If a registered root attribute is not set for a given root, `null` will be returned.
|
510
510
|
*
|
511
511
|
* @returns Object with roots attributes. Keys are roots names, while values are attributes set on given root.
|
512
512
|
*/
|
@@ -520,8 +520,8 @@ export default class MultiRootEditor extends DataApiMixin(Editor) {
|
|
520
520
|
/**
|
521
521
|
* Returns attributes for the specified root.
|
522
522
|
*
|
523
|
-
* Note: all and only {@link
|
524
|
-
* is not set for a given root, `null` will be returned.
|
523
|
+
* Note: all and only {@link ~MultiRootEditor#registerRootAttribute registered} roots attributes will be returned.
|
524
|
+
* If a registered root attribute is not set for a given root, `null` will be returned.
|
525
525
|
*/
|
526
526
|
getRootAttributes(rootName) {
|
527
527
|
const rootAttributes = {};
|
@@ -534,7 +534,8 @@ export default class MultiRootEditor extends DataApiMixin(Editor) {
|
|
534
534
|
/**
|
535
535
|
* Registers given string as a root attribute key. Registered root attributes are added to
|
536
536
|
* {@link module:engine/model/schema~Schema schema}, and also returned by
|
537
|
-
* {@link
|
537
|
+
* {@link ~MultiRootEditor#getRootAttributes `getRootAttributes()`} and
|
538
|
+
* {@link ~MultiRootEditor#getRootsAttributes `getRootsAttributes()`}.
|
538
539
|
*
|
539
540
|
* Note: attributes passed in {@link module:core/editor/editorconfig~EditorConfig#rootsAttributes `config.rootsAttributes`} are
|
540
541
|
* automatically registered as the editor is initialized. However, registering the same attribute twice does not have any negative
|