@ckeditor/ckeditor5-editor-multi-root 44.1.0 → 44.2.0-alpha.1
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/build/editor-multi-root.js +2 -2
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +27 -7
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/multirooteditor.d.ts +1 -1
- package/src/multirooteditor.js +1 -1
- package/src/multirooteditorui.d.ts +1 -1
- package/src/multirooteditorui.js +5 -2
- package/src/multirooteditoruiview.d.ts +1 -1
- package/src/multirooteditoruiview.js +1 -1
- package/dist/augmentation.d.ts +0 -94
- package/dist/index.d.ts +0 -14
- package/dist/multirooteditor.d.ts +0 -548
- package/dist/multirooteditorui.d.ts +0 -78
- package/dist/multirooteditoruiview.d.ts +0 -86
@@ -1,86 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module editor-multi-root/multirooteditoruiview
|
11
|
-
*/
|
12
|
-
import { EditorUIView, InlineEditableUIView, MenuBarView, ToolbarView } from 'ckeditor5/src/ui.js';
|
13
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
14
|
-
import type { EditingView } from 'ckeditor5/src/engine.js';
|
15
|
-
/**
|
16
|
-
* The multi-root editor UI view. It is a virtual view providing an inline
|
17
|
-
* {@link module:editor-multi-root/multirooteditoruiview~MultiRootEditorUIView#editable} and a
|
18
|
-
* {@link module:editor-multi-root/multirooteditoruiview~MultiRootEditorUIView#toolbar}, but without any
|
19
|
-
* specific arrangement of the components in the DOM.
|
20
|
-
*
|
21
|
-
* See {@link module:editor-multi-root/multirooteditor~MultiRootEditor.create `MultiRootEditor.create()`}
|
22
|
-
* to learn more about this view.
|
23
|
-
*/
|
24
|
-
export default class MultiRootEditorUIView extends EditorUIView {
|
25
|
-
/**
|
26
|
-
* The main toolbar of the multi-root editor UI.
|
27
|
-
*/
|
28
|
-
readonly toolbar: ToolbarView;
|
29
|
-
/**
|
30
|
-
* Editable elements used by the multi-root editor UI.
|
31
|
-
*/
|
32
|
-
readonly editables: Record<string, InlineEditableUIView>;
|
33
|
-
readonly editable: InlineEditableUIView;
|
34
|
-
/**
|
35
|
-
* Menu bar view instance.
|
36
|
-
*/
|
37
|
-
menuBarView: MenuBarView;
|
38
|
-
/**
|
39
|
-
* The editing view instance this view is related to.
|
40
|
-
*/
|
41
|
-
private readonly _editingView;
|
42
|
-
/**
|
43
|
-
* Creates an instance of the multi-root editor UI view.
|
44
|
-
*
|
45
|
-
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
46
|
-
* @param editingView The editing view instance this view is related to.
|
47
|
-
* @param editableNames Names for all editable views. For each name, one
|
48
|
-
* {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView `InlineEditableUIView`} instance will be initialized.
|
49
|
-
* @param options Configuration options for the view instance.
|
50
|
-
* @param options.editableElements The editable elements to be used, assigned to their names. If not specified, they will be
|
51
|
-
* automatically created by {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView `InlineEditableUIView`}
|
52
|
-
* instances.
|
53
|
-
* @param options.shouldToolbarGroupWhenFull When set to `true` enables automatic items grouping
|
54
|
-
* in the main {@link module:editor-multi-root/multirooteditoruiview~MultiRootEditorUIView#toolbar toolbar}.
|
55
|
-
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
56
|
-
* @param options.label When set, this value will be used as an accessible `aria-label` of the
|
57
|
-
* {@link module:ui/editableui/editableuiview~EditableUIView editable view} elements.
|
58
|
-
*/
|
59
|
-
constructor(locale: Locale, editingView: EditingView, editableNames: Array<string>, options?: {
|
60
|
-
editableElements?: Record<string, HTMLElement>;
|
61
|
-
shouldToolbarGroupWhenFull?: boolean;
|
62
|
-
label?: string | Record<string, string>;
|
63
|
-
});
|
64
|
-
/**
|
65
|
-
* Creates an editable instance with given name and registers it in the editor UI view.
|
66
|
-
*
|
67
|
-
* If `editableElement` is provided, the editable instance will be created on top of it. Otherwise, the editor will create a new
|
68
|
-
* DOM element and use it instead.
|
69
|
-
*
|
70
|
-
* @param editableName The name for the editable.
|
71
|
-
* @param editableElement DOM element for which the editable should be created.
|
72
|
-
* @param label The accessible editable label used by assistive technologies.
|
73
|
-
* @returns The created editable instance.
|
74
|
-
*/
|
75
|
-
createEditable(editableName: string, editableElement?: HTMLElement, label?: string): InlineEditableUIView;
|
76
|
-
/**
|
77
|
-
* Destroys and removes the editable from the editor UI view.
|
78
|
-
*
|
79
|
-
* @param editableName The name of the editable that should be removed.
|
80
|
-
*/
|
81
|
-
removeEditable(editableName: string): void;
|
82
|
-
/**
|
83
|
-
* @inheritDoc
|
84
|
-
*/
|
85
|
-
render(): void;
|
86
|
-
}
|