@ckeditor/ckeditor5-editor-multi-root 47.6.1 → 48.0.0-alpha.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/LICENSE.md +1 -1
- package/{src → dist}/augmentation.d.ts +25 -10
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -0
- package/{src → dist}/index.d.ts +1 -1
- package/dist/index.js +141 -310
- package/dist/index.js.map +1 -1
- package/{src → dist}/multirooteditor.d.ts +258 -25
- package/{src → dist}/multirooteditorui.d.ts +2 -2
- package/{src → dist}/multirooteditoruiview.d.ts +3 -3
- package/package.json +23 -44
- package/build/editor-multi-root.js +0 -4
- package/src/index.js +0 -11
- package/src/multirooteditor.js +0 -838
- package/src/multirooteditorui.js +0 -180
- package/src/multirooteditoruiview.js +0 -138
- /package/{src/augmentation.js → dist/legacyerrors.d.ts} +0 -0
package/LICENSE.md
CHANGED
|
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
|
|
|
18
18
|
|
|
19
19
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
20
|
|
|
21
|
-
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
21
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
|
|
22
22
|
|
|
23
23
|
Trademarks
|
|
24
24
|
----------
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type RootAttributes } from './multirooteditor.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
-
interface
|
|
7
|
+
interface RootConfig {
|
|
8
8
|
/**
|
|
9
|
-
* Initial
|
|
9
|
+
* Initial root attributes for a root.
|
|
10
10
|
*
|
|
11
11
|
* **Note: This configuration option is supported only by the
|
|
12
12
|
* {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root} editor type.**
|
|
@@ -34,11 +34,19 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
34
34
|
* },
|
|
35
35
|
* // Config:
|
|
36
36
|
* {
|
|
37
|
-
*
|
|
38
|
-
* uid1: {
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
37
|
+
* roots: {
|
|
38
|
+
* uid1: {
|
|
39
|
+
* modelAttributes: { order: 20, isLocked: false } // Third, unlocked.
|
|
40
|
+
* },
|
|
41
|
+
* uid2: {
|
|
42
|
+
* modelAttributes: { order: 10, isLocked: true } // Second, locked.
|
|
43
|
+
* },
|
|
44
|
+
* uid3: {
|
|
45
|
+
* modelAttributes: { order: 30, isLocked: true } // Fourth, locked.
|
|
46
|
+
* },
|
|
47
|
+
* uid4: {
|
|
48
|
+
* modelAttributes: { order: 0, isLocked: false } // First, unlocked.
|
|
49
|
+
* }
|
|
42
50
|
* }
|
|
43
51
|
* }
|
|
44
52
|
* )
|
|
@@ -75,9 +83,9 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
75
83
|
* } );
|
|
76
84
|
* ```
|
|
77
85
|
*/
|
|
78
|
-
|
|
86
|
+
modelAttributes?: RootAttributes;
|
|
79
87
|
/**
|
|
80
|
-
*
|
|
88
|
+
* Flag for the root that exist in the document but is not initially loaded by the editor.
|
|
81
89
|
*
|
|
82
90
|
* **Important! Lazy roots loading is an experimental feature, and may become deprecated. Be advised of the following
|
|
83
91
|
* known limitations:**
|
|
@@ -97,7 +105,14 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
97
105
|
*
|
|
98
106
|
* This is useful for handling big documents that contain hundreds of roots, or contain very large roots, which may have
|
|
99
107
|
* impact editor performance if loaded all at once.
|
|
108
|
+
*
|
|
109
|
+
* **Note: This configuration option is supported only by the
|
|
110
|
+
* {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root} editor type.**
|
|
111
|
+
*
|
|
112
|
+
* **Note: This property has been deprecated and will be removed in the future versions of CKEditor.**
|
|
113
|
+
*
|
|
114
|
+
* @deprecated
|
|
100
115
|
*/
|
|
101
|
-
|
|
116
|
+
lazyLoad?: boolean;
|
|
102
117
|
}
|
|
103
118
|
}
|
package/dist/index.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}
|
package/{src → dist}/index.d.ts
RENAMED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export { MultiRootEditor } from './multirooteditor.js';
|
|
9
9
|
export { MultiRootEditorUI } from './multirooteditorui.js';
|
|
10
10
|
export { MultiRootEditorUIView } from './multirooteditoruiview.js';
|
|
11
|
-
export type { RootAttributes, AddRootEvent, DetachRootEvent, LoadRootEvent, AddRootOptions, LoadRootOptions } from './multirooteditor.js';
|
|
11
|
+
export type { RootAttributes, AddRootEvent, DetachRootEvent, LoadRootEvent, AddRootOptions, LoadRootOptions, AddRootRootConfig, RootEditableOptions } from './multirooteditor.js';
|
|
12
12
|
import './augmentation.js';
|