@ckeditor/ckeditor5-editor-classic 48.2.0-alpha.7 → 48.3.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.
@@ -1,234 +1,234 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import { ClassicEditorUI } from './classiceditorui.js';
6
- import { Editor, type EditorConfig } from '@ckeditor/ckeditor5-core';
7
- declare const ClassicEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("@ckeditor/ckeditor5-core").ElementApi>;
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { ClassicEditorUI } from "./classiceditorui.js";
6
+ import { Editor, type EditorConfig, type ElementApiMixinConstructor } from "@ckeditor/ckeditor5-core";
7
+ declare const ClassicEditorBase: ElementApiMixinConstructor<typeof Editor>;
8
8
  /**
9
- * The classic editor implementation. It uses an inline editable and a sticky toolbar, all enclosed in a boxed UI.
10
- * See the {@glink examples/builds/classic-editor demo}.
11
- *
12
- * In order to create a classic editor instance, use the static
13
- * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method.
14
- */
15
- export declare class ClassicEditor extends /* #__PURE__ */ ClassicEditor_base {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get editorName(): 'ClassicEditor';
20
- /**
21
- * @inheritDoc
22
- */
23
- readonly ui: ClassicEditorUI;
24
- /**
25
- * Creates an instance of the classic editor.
26
- *
27
- * **Note:** do not use the constructor to create editor instances. Use the static
28
- * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
29
- *
30
- * @param config The editor configuration.
31
- */
32
- protected constructor(config: EditorConfig);
33
- /**
34
- * Creates an instance of the classic editor.
35
- *
36
- * **Note:** do not use the constructor to create editor instances. Use the static
37
- * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
38
- *
39
- * **Note**: This constructor signature is deprecated and will be removed in the future release.
40
- *
41
- * @deprecated
42
- * @param sourceElementOrData The DOM element that will be the source for the created editor
43
- * or the editor's initial data. For more information see
44
- * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}.
45
- * @param config The editor configuration.
46
- */
47
- protected constructor(sourceElementOrData: HTMLElement | string, config: EditorConfig);
48
- /**
49
- * Destroys the editor instance, releasing all resources used by it.
50
- *
51
- * Updates the original editor element with the data if the
52
- * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
53
- * configuration option is set to `true`.
54
- */
55
- destroy(): Promise<unknown>;
56
- /**
57
- * Creates a new classic editor instance.
58
- *
59
- * There are three ways how the editor can be initialized.
60
- *
61
- * # Replacing a DOM element (and loading data from it)
62
- *
63
- * You can initialize the editor using an existing DOM element:
64
- *
65
- * ```ts
66
- * ClassicEditor
67
- * .create( {
68
- * attachTo: document.querySelector( '#editor' )
69
- * } )
70
- * .then( editor => {
71
- * console.log( 'Editor was initialized', editor );
72
- * } )
73
- * .catch( err => {
74
- * console.error( err.stack );
75
- * } );
76
- * ```
77
- *
78
- * The element's content will be used as the editor data and the element will be replaced by the editor UI.
79
- *
80
- * # Creating a detached editor
81
- *
82
- * Alternatively, you can initialize the editor by passing the initial data directly as a string.
83
- * In this case, the editor will render an element that must be inserted into the DOM:
84
- *
85
- * ```ts
86
- * ClassicEditor
87
- * .create( {
88
- * root: {
89
- * initialData: '<p>Hello world!</p>'
90
- * }
91
- * } )
92
- * .then( editor => {
93
- * console.log( 'Editor was initialized', editor );
94
- *
95
- * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
96
- * document.body.appendChild( editor.ui.element );
97
- * } )
98
- * .catch( err => {
99
- * console.error( err.stack );
100
- * } );
101
- * ```
102
- *
103
- * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
104
- * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
105
- *
106
- * # Replacing a DOM element (and data provided in `config.root.initialData`)
107
- *
108
- * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
109
- *
110
- * ```ts
111
- * ClassicEditor
112
- * .create( {
113
- * attachTo: document.querySelector( '#editor' ),
114
- * root: {
115
- * initialData: '<p>Hello world!</p>'
116
- * }
117
- * } )
118
- * .then( editor => {
119
- * console.log( 'Editor was initialized', editor );
120
- * } )
121
- * .catch( err => {
122
- * console.error( err.stack );
123
- * } );
124
- * ```
125
- *
126
- * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
127
- * makes it difficult to set the content of the source element.
128
- *
129
- * # Configuring the editor
130
- *
131
- * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
132
- * customizing plugins, toolbar and more.
133
- *
134
- * @param config The editor configuration.
135
- * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
136
- */
137
- static create(config: EditorConfig): Promise<ClassicEditor>;
138
- /**
139
- * Creates a new classic editor instance.
140
- *
141
- * **Note**: This method signature is deprecated and will be removed in the future release.
142
- *
143
- * There are three ways how the editor can be initialized.
144
- *
145
- * # Replacing a DOM element (and loading data from it)
146
- *
147
- * You can initialize the editor using an existing DOM element:
148
- *
149
- * ```ts
150
- * ClassicEditor
151
- * .create( document.querySelector( '#editor' ) )
152
- * .then( editor => {
153
- * console.log( 'Editor was initialized', editor );
154
- * } )
155
- * .catch( err => {
156
- * console.error( err.stack );
157
- * } );
158
- * ```
159
- *
160
- * The element's content will be used as the editor data and the element will be replaced by the editor UI.
161
- *
162
- * # Creating a detached editor
163
- *
164
- * Alternatively, you can initialize the editor by passing the initial data directly as a string.
165
- * In this case, the editor will render an element that must be inserted into the DOM:
166
- *
167
- * ```ts
168
- * ClassicEditor
169
- * .create( '<p>Hello world!</p>' )
170
- * .then( editor => {
171
- * console.log( 'Editor was initialized', editor );
172
- *
173
- * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
174
- * document.body.appendChild( editor.ui.element );
175
- * } )
176
- * .catch( err => {
177
- * console.error( err.stack );
178
- * } );
179
- * ```
180
- *
181
- * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
182
- * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
183
- *
184
- * # Replacing a DOM element (and data provided in `config.root.initialData`)
185
- *
186
- * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
187
- *
188
- * ```ts
189
- * ClassicEditor
190
- * .create( document.querySelector( '#editor' ), {
191
- * root: {
192
- * initialData: '<p>Hello world!</p>'
193
- * }
194
- * } )
195
- * .then( editor => {
196
- * console.log( 'Editor was initialized', editor );
197
- * } )
198
- * .catch( err => {
199
- * console.error( err.stack );
200
- * } );
201
- * ```
202
- *
203
- * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
204
- * makes it difficult to set the content of the source element.
205
- *
206
- * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
207
- *
208
- * # Configuring the editor
209
- *
210
- * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
211
- * customizing plugins, toolbar and more.
212
- *
213
- * @deprecated
214
- * @param sourceElementOrData The DOM element that will be the source for the created editor
215
- * or the editor's initial data.
216
- *
217
- * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization
218
- * and the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element editor element} will replace the passed element
219
- * in the DOM (the original one will be hidden and the editor will be injected next to it).
220
- *
221
- * If the {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
222
- * option is set to `true`, the editor data will be set back to the original element once the editor is destroyed and when a form,
223
- * in which this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration
224
- * with native web forms.
225
- *
226
- * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
227
- * It is available under the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element `editor.ui.element`} property.
228
- *
229
- * @param config The editor configuration.
230
- * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
231
- */
232
- static create(sourceElementOrData: HTMLElement | string, config: EditorConfig): Promise<ClassicEditor>;
9
+ * The classic editor implementation. It uses an inline editable and a sticky toolbar, all enclosed in a boxed UI.
10
+ * See the {@glink examples/builds/classic-editor demo}.
11
+ *
12
+ * In order to create a classic editor instance, use the static
13
+ * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method.
14
+ */
15
+ export declare class ClassicEditor extends ClassicEditorBase {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static override get editorName(): "ClassicEditor";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ readonly ui: ClassicEditorUI;
24
+ /**
25
+ * Creates an instance of the classic editor.
26
+ *
27
+ * **Note:** do not use the constructor to create editor instances. Use the static
28
+ * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
29
+ *
30
+ * @param config The editor configuration.
31
+ */
32
+ protected constructor(config: EditorConfig);
33
+ /**
34
+ * Creates an instance of the classic editor.
35
+ *
36
+ * **Note:** do not use the constructor to create editor instances. Use the static
37
+ * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
38
+ *
39
+ * **Note**: This constructor signature is deprecated and will be removed in the future release.
40
+ *
41
+ * @deprecated
42
+ * @param sourceElementOrData The DOM element that will be the source for the created editor
43
+ * or the editor's initial data. For more information see
44
+ * {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}.
45
+ * @param config The editor configuration.
46
+ */
47
+ protected constructor(sourceElementOrData: HTMLElement | string, config: EditorConfig);
48
+ /**
49
+ * Destroys the editor instance, releasing all resources used by it.
50
+ *
51
+ * Updates the original editor element with the data if the
52
+ * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
53
+ * configuration option is set to `true`.
54
+ */
55
+ override destroy(): Promise<unknown>;
56
+ /**
57
+ * Creates a new classic editor instance.
58
+ *
59
+ * There are three ways how the editor can be initialized.
60
+ *
61
+ * # Replacing a DOM element (and loading data from it)
62
+ *
63
+ * You can initialize the editor using an existing DOM element:
64
+ *
65
+ * ```ts
66
+ * ClassicEditor
67
+ * .create( {
68
+ * attachTo: document.querySelector( '#editor' )
69
+ * } )
70
+ * .then( editor => {
71
+ * console.log( 'Editor was initialized', editor );
72
+ * } )
73
+ * .catch( err => {
74
+ * console.error( err.stack );
75
+ * } );
76
+ * ```
77
+ *
78
+ * The element's content will be used as the editor data and the element will be replaced by the editor UI.
79
+ *
80
+ * # Creating a detached editor
81
+ *
82
+ * Alternatively, you can initialize the editor by passing the initial data directly as a string.
83
+ * In this case, the editor will render an element that must be inserted into the DOM:
84
+ *
85
+ * ```ts
86
+ * ClassicEditor
87
+ * .create( {
88
+ * root: {
89
+ * initialData: '<p>Hello world!</p>'
90
+ * }
91
+ * } )
92
+ * .then( editor => {
93
+ * console.log( 'Editor was initialized', editor );
94
+ *
95
+ * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
96
+ * document.body.appendChild( editor.ui.element );
97
+ * } )
98
+ * .catch( err => {
99
+ * console.error( err.stack );
100
+ * } );
101
+ * ```
102
+ *
103
+ * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
104
+ * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
105
+ *
106
+ * # Replacing a DOM element (and data provided in `config.root.initialData`)
107
+ *
108
+ * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
109
+ *
110
+ * ```ts
111
+ * ClassicEditor
112
+ * .create( {
113
+ * attachTo: document.querySelector( '#editor' ),
114
+ * root: {
115
+ * initialData: '<p>Hello world!</p>'
116
+ * }
117
+ * } )
118
+ * .then( editor => {
119
+ * console.log( 'Editor was initialized', editor );
120
+ * } )
121
+ * .catch( err => {
122
+ * console.error( err.stack );
123
+ * } );
124
+ * ```
125
+ *
126
+ * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
127
+ * makes it difficult to set the content of the source element.
128
+ *
129
+ * # Configuring the editor
130
+ *
131
+ * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
132
+ * customizing plugins, toolbar and more.
133
+ *
134
+ * @param config The editor configuration.
135
+ * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
136
+ */
137
+ static override create(config: EditorConfig): Promise<ClassicEditor>;
138
+ /**
139
+ * Creates a new classic editor instance.
140
+ *
141
+ * **Note**: This method signature is deprecated and will be removed in the future release.
142
+ *
143
+ * There are three ways how the editor can be initialized.
144
+ *
145
+ * # Replacing a DOM element (and loading data from it)
146
+ *
147
+ * You can initialize the editor using an existing DOM element:
148
+ *
149
+ * ```ts
150
+ * ClassicEditor
151
+ * .create( document.querySelector( '#editor' ) )
152
+ * .then( editor => {
153
+ * console.log( 'Editor was initialized', editor );
154
+ * } )
155
+ * .catch( err => {
156
+ * console.error( err.stack );
157
+ * } );
158
+ * ```
159
+ *
160
+ * The element's content will be used as the editor data and the element will be replaced by the editor UI.
161
+ *
162
+ * # Creating a detached editor
163
+ *
164
+ * Alternatively, you can initialize the editor by passing the initial data directly as a string.
165
+ * In this case, the editor will render an element that must be inserted into the DOM:
166
+ *
167
+ * ```ts
168
+ * ClassicEditor
169
+ * .create( '<p>Hello world!</p>' )
170
+ * .then( editor => {
171
+ * console.log( 'Editor was initialized', editor );
172
+ *
173
+ * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
174
+ * document.body.appendChild( editor.ui.element );
175
+ * } )
176
+ * .catch( err => {
177
+ * console.error( err.stack );
178
+ * } );
179
+ * ```
180
+ *
181
+ * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
182
+ * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
183
+ *
184
+ * # Replacing a DOM element (and data provided in `config.root.initialData`)
185
+ *
186
+ * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
187
+ *
188
+ * ```ts
189
+ * ClassicEditor
190
+ * .create( document.querySelector( '#editor' ), {
191
+ * root: {
192
+ * initialData: '<p>Hello world!</p>'
193
+ * }
194
+ * } )
195
+ * .then( editor => {
196
+ * console.log( 'Editor was initialized', editor );
197
+ * } )
198
+ * .catch( err => {
199
+ * console.error( err.stack );
200
+ * } );
201
+ * ```
202
+ *
203
+ * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
204
+ * makes it difficult to set the content of the source element.
205
+ *
206
+ * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
207
+ *
208
+ * # Configuring the editor
209
+ *
210
+ * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
211
+ * customizing plugins, toolbar and more.
212
+ *
213
+ * @deprecated
214
+ * @param sourceElementOrData The DOM element that will be the source for the created editor
215
+ * or the editor's initial data.
216
+ *
217
+ * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization
218
+ * and the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element editor element} will replace the passed element
219
+ * in the DOM (the original one will be hidden and the editor will be injected next to it).
220
+ *
221
+ * If the {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
222
+ * option is set to `true`, the editor data will be set back to the original element once the editor is destroyed and when a form,
223
+ * in which this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration
224
+ * with native web forms.
225
+ *
226
+ * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
227
+ * It is available under the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element `editor.ui.element`} property.
228
+ *
229
+ * @param config The editor configuration.
230
+ * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
231
+ */
232
+ static override create(sourceElementOrData: HTMLElement | string, config: EditorConfig): Promise<ClassicEditor>;
233
233
  }
234
234
  export {};
@@ -1,82 +1,82 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module editor-classic/classiceditorui
7
- */
8
- import { type Editor } from '@ckeditor/ckeditor5-core';
9
- import { EditorUI } from '@ckeditor/ckeditor5-ui';
10
- import { type ClassicEditorUIView } from './classiceditoruiview.js';
6
+ * @module editor-classic/classiceditorui
7
+ */
8
+ import { type Editor } from "@ckeditor/ckeditor5-core";
9
+ import { EditorUI } from "@ckeditor/ckeditor5-ui";
10
+ import { type ClassicEditorUIView } from "./classiceditoruiview.js";
11
11
  /**
12
- * The classic editor UI class.
13
- */
12
+ * The classic editor UI class.
13
+ */
14
14
  export declare class ClassicEditorUI extends EditorUI {
15
- /**
16
- * The main (top–most) view of the editor UI.
17
- */
18
- readonly view: ClassicEditorUIView;
19
- /**
20
- * A normalized `config.toolbar` object.
21
- */
22
- private readonly _toolbarConfig;
23
- /**
24
- * The element replacer instance used to hide the editor's source element.
25
- */
26
- private readonly _elementReplacer;
27
- /**
28
- * Creates an instance of the classic editor UI class.
29
- *
30
- * @param editor The editor instance.
31
- * @param view The view of the UI.
32
- */
33
- constructor(editor: Editor, view: ClassicEditorUIView);
34
- /**
35
- * @inheritDoc
36
- */
37
- get element(): HTMLElement | null;
38
- /**
39
- * Initializes the UI.
40
- *
41
- * @param replacementElement The DOM element that will be the source for the created editor.
42
- */
43
- init(replacementElement: HTMLElement | null): void;
44
- /**
45
- * @inheritDoc
46
- */
47
- destroy(): void;
48
- /**
49
- * Initializes the editor toolbar.
50
- */
51
- private _initToolbar;
52
- /**
53
- * Enable the placeholder text on the editing root.
54
- */
55
- private _initPlaceholder;
56
- /**
57
- * Provides an integration between the sticky toolbar and {@link module:ui/panel/balloon/contextualballoon contextual balloon plugin}.
58
- * It allows the contextual balloon to consider the height of the
59
- * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel}. It prevents the balloon from overlapping
60
- * the sticky toolbar by adjusting the balloon's position using viewport offset configuration.
61
- */
62
- private _initContextualBalloonIntegration;
63
- /**
64
- * Provides an integration between the sticky toolbar and {@link module:utils/dom/scroll~scrollViewportToShowTarget}.
65
- * It allows the UI-agnostic engine method to consider the geometry of the
66
- * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel} that pins to the
67
- * edge of the viewport and can obscure the user caret after scrolling the window.
68
- *
69
- * @param evt The `scrollToTheSelection` event info.
70
- * @param data The payload carried by the `scrollToTheSelection` event.
71
- * @param originalArgs The original arguments passed to `scrollViewportToShowTarget()` method (see implementation to learn more).
72
- */
73
- private _handleScrollToTheSelectionWithStickyPanel;
74
- /**
75
- * Provides an integration between the sticky toolbar and {@link module:ui/dialog/dialog the Dialog plugin}.
76
- *
77
- * It moves the dialog down to ensure that the
78
- * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel sticky panel}
79
- * used by the editor UI will not get obscured by the dialog when the dialog uses one of its automatic positions.
80
- */
81
- private _initDialogPluginIntegration;
15
+ /**
16
+ * The main (top–most) view of the editor UI.
17
+ */
18
+ readonly view: ClassicEditorUIView;
19
+ /**
20
+ * A normalized `config.toolbar` object.
21
+ */
22
+ private readonly _toolbarConfig;
23
+ /**
24
+ * The element replacer instance used to hide the editor's source element.
25
+ */
26
+ private readonly _elementReplacer;
27
+ /**
28
+ * Creates an instance of the classic editor UI class.
29
+ *
30
+ * @param editor The editor instance.
31
+ * @param view The view of the UI.
32
+ */
33
+ constructor(editor: Editor, view: ClassicEditorUIView);
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ override get element(): HTMLElement | null;
38
+ /**
39
+ * Initializes the UI.
40
+ *
41
+ * @param replacementElement The DOM element that will be the source for the created editor.
42
+ */
43
+ init(replacementElement: HTMLElement | null): void;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ override destroy(): void;
48
+ /**
49
+ * Initializes the editor toolbar.
50
+ */
51
+ private _initToolbar;
52
+ /**
53
+ * Enable the placeholder text on the editing root.
54
+ */
55
+ private _initPlaceholder;
56
+ /**
57
+ * Provides an integration between the sticky toolbar and {@link module:ui/panel/balloon/contextualballoon contextual balloon plugin}.
58
+ * It allows the contextual balloon to consider the height of the
59
+ * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel}. It prevents the balloon from overlapping
60
+ * the sticky toolbar by adjusting the balloon's position using viewport offset configuration.
61
+ */
62
+ private _initContextualBalloonIntegration;
63
+ /**
64
+ * Provides an integration between the sticky toolbar and {@link module:utils/dom/scroll~scrollViewportToShowTarget}.
65
+ * It allows the UI-agnostic engine method to consider the geometry of the
66
+ * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel} that pins to the
67
+ * edge of the viewport and can obscure the user caret after scrolling the window.
68
+ *
69
+ * @param evt The `scrollToTheSelection` event info.
70
+ * @param data The payload carried by the `scrollToTheSelection` event.
71
+ * @param originalArgs The original arguments passed to `scrollViewportToShowTarget()` method (see implementation to learn more).
72
+ */
73
+ private _handleScrollToTheSelectionWithStickyPanel;
74
+ /**
75
+ * Provides an integration between the sticky toolbar and {@link module:ui/dialog/dialog the Dialog plugin}.
76
+ *
77
+ * It moves the dialog down to ensure that the
78
+ * {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel sticky panel}
79
+ * used by the editor UI will not get obscured by the dialog when the dialog uses one of its automatic positions.
80
+ */
81
+ private _initDialogPluginIntegration;
82
82
  }