@ckeditor/ckeditor5-editor-multi-root 0.0.0-nightly-20240527.0 → 0.0.0-nightly-20240529.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/build/editor-multi-root.js +1 -1
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/dist/types/multirooteditor.d.ts +1 -20
- package/package.json +2 -2
- package/src/multirooteditor.d.ts +1 -20
- package/src/multirooteditor.js +2 -22
@@ -9,9 +9,8 @@
|
|
9
9
|
/**
|
10
10
|
* @module editor-multi-root/multirooteditor
|
11
11
|
*/
|
12
|
-
import { Editor,
|
12
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
13
13
|
import { type DecoratedMethodEvent } from 'ckeditor5/src/utils.js';
|
14
|
-
import { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';
|
15
14
|
import MultiRootEditorUI from './multirooteditorui.js';
|
16
15
|
import { type RootElement } from 'ckeditor5/src/engine.js';
|
17
16
|
/**
|
@@ -466,24 +465,6 @@ export default class MultiRootEditor extends Editor {
|
|
466
465
|
* @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
|
467
466
|
*/
|
468
467
|
static create(sourceElementsOrData: Record<string, HTMLElement> | Record<string, string>, config?: EditorConfig): Promise<MultiRootEditor>;
|
469
|
-
/**
|
470
|
-
* The {@link module:core/context~Context} class.
|
471
|
-
*
|
472
|
-
* Exposed as static editor field for easier access in editor builds.
|
473
|
-
*/
|
474
|
-
static Context: typeof Context;
|
475
|
-
/**
|
476
|
-
* The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
|
477
|
-
*
|
478
|
-
* Exposed as static editor field for easier access in editor builds.
|
479
|
-
*/
|
480
|
-
static EditorWatchdog: typeof EditorWatchdog;
|
481
|
-
/**
|
482
|
-
* The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
|
483
|
-
*
|
484
|
-
* Exposed as static editor field for easier access in editor builds.
|
485
|
-
*/
|
486
|
-
static ContextWatchdog: typeof ContextWatchdog;
|
487
468
|
/**
|
488
469
|
* @internal
|
489
470
|
*/
|
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-20240529.0",
|
4
4
|
"description": "Multi-root editor implementation for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,7 +12,7 @@
|
|
12
12
|
"type": "module",
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"ckeditor5": "0.0.0-nightly-
|
15
|
+
"ckeditor5": "0.0.0-nightly-20240529.0",
|
16
16
|
"lodash-es": "4.17.21"
|
17
17
|
},
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
package/src/multirooteditor.d.ts
CHANGED
@@ -5,9 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module editor-multi-root/multirooteditor
|
7
7
|
*/
|
8
|
-
import { Editor,
|
8
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
9
9
|
import { type DecoratedMethodEvent } from 'ckeditor5/src/utils.js';
|
10
|
-
import { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';
|
11
10
|
import MultiRootEditorUI from './multirooteditorui.js';
|
12
11
|
import { type RootElement } from 'ckeditor5/src/engine.js';
|
13
12
|
/**
|
@@ -462,24 +461,6 @@ export default class MultiRootEditor extends Editor {
|
|
462
461
|
* @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
|
463
462
|
*/
|
464
463
|
static create(sourceElementsOrData: Record<string, HTMLElement> | Record<string, string>, config?: EditorConfig): Promise<MultiRootEditor>;
|
465
|
-
/**
|
466
|
-
* The {@link module:core/context~Context} class.
|
467
|
-
*
|
468
|
-
* Exposed as static editor field for easier access in editor builds.
|
469
|
-
*/
|
470
|
-
static Context: typeof Context;
|
471
|
-
/**
|
472
|
-
* The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
|
473
|
-
*
|
474
|
-
* Exposed as static editor field for easier access in editor builds.
|
475
|
-
*/
|
476
|
-
static EditorWatchdog: typeof EditorWatchdog;
|
477
|
-
/**
|
478
|
-
* The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
|
479
|
-
*
|
480
|
-
* Exposed as static editor field for easier access in editor builds.
|
481
|
-
*/
|
482
|
-
static ContextWatchdog: typeof ContextWatchdog;
|
483
464
|
/**
|
484
465
|
* @internal
|
485
466
|
*/
|
package/src/multirooteditor.js
CHANGED
@@ -5,9 +5,8 @@
|
|
5
5
|
/**
|
6
6
|
* @module editor-multi-root/multirooteditor
|
7
7
|
*/
|
8
|
-
import { Editor,
|
8
|
+
import { Editor, secureSourceElement } from 'ckeditor5/src/core.js';
|
9
9
|
import { CKEditorError, getDataFromElement, setDataInElement, logWarning } from 'ckeditor5/src/utils.js';
|
10
|
-
import { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';
|
11
10
|
import MultiRootEditorUI from './multirooteditorui.js';
|
12
11
|
import MultiRootEditorUIView from './multirooteditoruiview.js';
|
13
12
|
import { isElement as _isElement } from 'lodash-es';
|
@@ -25,7 +24,7 @@ import { isElement as _isElement } from 'lodash-es';
|
|
25
24
|
*
|
26
25
|
* Note that you will need to attach the editor toolbar to your web page manually, in a desired place, after the editor is initialized.
|
27
26
|
*/
|
28
|
-
class MultiRootEditor extends Editor {
|
27
|
+
export default class MultiRootEditor extends Editor {
|
29
28
|
/**
|
30
29
|
* Creates an instance of the multi-root editor.
|
31
30
|
*
|
@@ -791,25 +790,6 @@ class MultiRootEditor extends Editor {
|
|
791
790
|
}
|
792
791
|
}
|
793
792
|
}
|
794
|
-
/**
|
795
|
-
* The {@link module:core/context~Context} class.
|
796
|
-
*
|
797
|
-
* Exposed as static editor field for easier access in editor builds.
|
798
|
-
*/
|
799
|
-
MultiRootEditor.Context = Context;
|
800
|
-
/**
|
801
|
-
* The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
|
802
|
-
*
|
803
|
-
* Exposed as static editor field for easier access in editor builds.
|
804
|
-
*/
|
805
|
-
MultiRootEditor.EditorWatchdog = EditorWatchdog;
|
806
|
-
/**
|
807
|
-
* The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
|
808
|
-
*
|
809
|
-
* Exposed as static editor field for easier access in editor builds.
|
810
|
-
*/
|
811
|
-
MultiRootEditor.ContextWatchdog = ContextWatchdog;
|
812
|
-
export default MultiRootEditor;
|
813
793
|
function getInitialData(sourceElementOrData) {
|
814
794
|
return isElement(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;
|
815
795
|
}
|