@ckeditor/ckeditor5-editor-decoupled 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,285 +1,285 @@
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-decoupled/decouplededitor
7
- */
8
- import { Editor, type EditorConfig } from '@ckeditor/ckeditor5-core';
9
- import { DecoupledEditorUI } from './decouplededitorui.js';
10
- declare const DecoupledEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("@ckeditor/ckeditor5-core").ElementApi>;
6
+ * @module editor-decoupled/decouplededitor
7
+ */
8
+ import { Editor, type EditorConfig, type ElementApiMixinConstructor } from "@ckeditor/ckeditor5-core";
9
+ import { DecoupledEditorUI } from "./decouplededitorui.js";
10
+ declare const DecoupledEditorBase: ElementApiMixinConstructor<typeof Editor>;
11
11
  /**
12
- * The decoupled editor implementation. It provides an inline editable and a toolbar. However, unlike other editors,
13
- * it does not render these components anywhere in the DOM unless configured.
14
- *
15
- * This type of an editor is dedicated to integrations which require a customized UI with an open
16
- * structure, allowing developers to specify the exact location of the interface.
17
- *
18
- * See the document editor {@glink examples/builds/document-editor demo} to learn about possible use cases
19
- * for the decoupled editor.
20
- *
21
- * In order to create a decoupled editor instance, use the static
22
- * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method.
23
- *
24
- * Note that you will need to attach the editor toolbar and menu bar to your web page manually, in a desired place,
25
- * after the editor is initialized.
26
- */
27
- export declare class DecoupledEditor extends /* #__PURE__ */ DecoupledEditor_base {
28
- /**
29
- * @inheritDoc
30
- */
31
- static get editorName(): 'DecoupledEditor';
32
- /**
33
- * @inheritDoc
34
- */
35
- readonly ui: DecoupledEditorUI;
36
- /**
37
- * Creates an instance of the decoupled editor.
38
- *
39
- * **Note:** Do not use the constructor to create editor instances. Use the static
40
- * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method instead.
41
- *
42
- * @param config The editor configuration.
43
- */
44
- protected constructor(config: EditorConfig);
45
- /**
46
- * Creates an instance of the decoupled editor.
47
- *
48
- * **Note:** Do not use the constructor to create editor instances. Use the static
49
- * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method instead.
50
- *
51
- * **Note**: This constructor signature is deprecated and will be removed in the future release.
52
- *
53
- * @deprecated
54
- * @param sourceElementOrData The DOM element that will be the source for the created editor
55
- * (on which the editor will be initialized) or initial data for the editor. For more information see
56
- * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.
57
- * @param config The editor configuration.
58
- */
59
- protected constructor(sourceElementOrData: HTMLElement | string, config: EditorConfig);
60
- /**
61
- * Destroys the editor instance, releasing all resources used by it.
62
- *
63
- * Updates the original editor element with the data if the
64
- * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
65
- * configuration option is set to `true`.
66
- *
67
- * **Note**: The decoupled editor does not remove the toolbar and editable when destroyed. You can
68
- * do that yourself in the destruction chain:
69
- *
70
- * ```ts
71
- * editor.destroy()
72
- * .then( () => {
73
- * // Remove the toolbar from DOM.
74
- * editor.ui.view.toolbar.element.remove();
75
- *
76
- * // Remove the editable from DOM.
77
- * editor.ui.view.editable.element.remove();
78
- *
79
- * console.log( 'Editor was destroyed' );
80
- * } );
81
- * ```
82
- */
83
- destroy(): Promise<unknown>;
84
- /**
85
- * Creates a new decoupled editor instance.
86
- *
87
- * **Note:** remember that `DecoupledEditor` does not append the toolbar element to your web page, so you have to do it manually
88
- * after the editor has been initialized.
89
- *
90
- * There are two ways how the editor can be initialized.
91
- *
92
- * # Using an existing DOM element (and loading data from it)
93
- *
94
- * You can initialize the editor using an existing DOM element:
95
- *
96
- * ```ts
97
- * DecoupledEditor
98
- * .create( {
99
- * root: {
100
- * element: document.querySelector( '#editor' )
101
- * }
102
- * } )
103
- * .then( editor => {
104
- * console.log( 'Editor was initialized', editor );
105
- *
106
- * // Append the toolbar to the <body> element.
107
- * document.body.appendChild( editor.ui.view.toolbar.element );
108
- * } )
109
- * .catch( err => {
110
- * console.error( err.stack );
111
- * } );
112
- * ```
113
- *
114
- * The element's content will be used as the editor data and the element will become the editable element.
115
- *
116
- * # Creating a detached editor
117
- *
118
- * Alternatively, you can initialize the editor by passing the initial data directly as a string.
119
- * In this case, you will have to manually append both the toolbar element and the editable element to your web page.
120
- *
121
- * ```ts
122
- * DecoupledEditor
123
- * .create( {
124
- * root: {
125
- * initialData: '<p>Hello world!</p>'
126
- * }
127
- * } )
128
- * .then( editor => {
129
- * console.log( 'Editor was initialized', editor );
130
- *
131
- * // Append the toolbar to the <body> element.
132
- * document.body.appendChild( editor.ui.view.toolbar.element );
133
- *
134
- * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
135
- * document.body.appendChild( editor.ui.getEditableElement() );
136
- * } )
137
- * .catch( err => {
138
- * console.error( err.stack );
139
- * } );
140
- * ```
141
- *
142
- * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
143
- * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
144
- *
145
- * # Using an existing DOM element (and data provided in `config.root.initialData`)
146
- *
147
- * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
148
- *
149
- * ```ts
150
- * DecoupledEditor
151
- * .create( {
152
- * root: {
153
- * element: document.querySelector( '#editor' ),
154
- * initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
155
- * }
156
- * } )
157
- * .then( editor => {
158
- * console.log( 'Editor was initialized', editor );
159
- *
160
- * // Append the toolbar to the <body> element.
161
- * document.body.appendChild( editor.ui.view.toolbar.element );
162
- * } )
163
- * .catch( err => {
164
- * console.error( err.stack );
165
- * } );
166
- * ```
167
- *
168
- * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
169
- * makes it difficult to set the content of the source element.
170
- *
171
- * # Configuring the editor
172
- *
173
- * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
174
- * customizing plugins, toolbar and more.
175
- *
176
- * @param config The editor configuration.
177
- * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
178
- */
179
- static create(config: EditorConfig): Promise<DecoupledEditor>;
180
- /**
181
- * Creates a new decoupled editor instance.
182
- *
183
- * **Note**: This method signature is deprecated and will be removed in the future release.
184
- *
185
- * **Note:** remember that `DecoupledEditor` does not append the toolbar element to your web page, so you have to do it manually
186
- * after the editor has been initialized.
187
- *
188
- * There are two ways how the editor can be initialized.
189
- *
190
- * # Using an existing DOM element (and loading data from it)
191
- *
192
- * You can initialize the editor using an existing DOM element:
193
- *
194
- * ```ts
195
- * DecoupledEditor
196
- * .create( document.querySelector( '#editor' ) )
197
- * .then( editor => {
198
- * console.log( 'Editor was initialized', editor );
199
- *
200
- * // Append the toolbar to the <body> element.
201
- * document.body.appendChild( editor.ui.view.toolbar.element );
202
- * } )
203
- * .catch( err => {
204
- * console.error( err.stack );
205
- * } );
206
- * ```
207
- *
208
- * The element's content will be used as the editor data and the element will become the editable element.
209
- *
210
- * # Creating a detached editor
211
- *
212
- * Alternatively, you can initialize the editor by passing the initial data directly as a string.
213
- * In this case, you will have to manually append both the toolbar element and the editable element to your web page.
214
- *
215
- * ```ts
216
- * DecoupledEditor
217
- * .create( '<p>Hello world!</p>' )
218
- * .then( editor => {
219
- * console.log( 'Editor was initialized', editor );
220
- *
221
- * // Append the toolbar to the <body> element.
222
- * document.body.appendChild( editor.ui.view.toolbar.element );
223
- *
224
- * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
225
- * document.body.appendChild( editor.ui.getEditableElement() );
226
- * } )
227
- * .catch( err => {
228
- * console.error( err.stack );
229
- * } );
230
- * ```
231
- *
232
- * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
233
- * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
234
- *
235
- * # Using an existing DOM element (and data provided in `config.root.initialData`)
236
- *
237
- * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
238
- *
239
- * ```ts
240
- * DecoupledEditor
241
- * .create( document.querySelector( '#editor' ), {
242
- * root: {
243
- * initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
244
- * }
245
- * } )
246
- * .then( editor => {
247
- * console.log( 'Editor was initialized', editor );
248
- *
249
- * // Append the toolbar to the <body> element.
250
- * document.body.appendChild( editor.ui.view.toolbar.element );
251
- * } )
252
- * .catch( err => {
253
- * console.error( err.stack );
254
- * } );
255
- * ```
256
- *
257
- * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
258
- * makes it difficult to set the content of the source element.
259
- *
260
- * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
261
- *
262
- * # Configuring the editor
263
- *
264
- * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
265
- * customizing plugins, toolbar and more.
266
- *
267
- * @deprecated
268
- * @param sourceElementOrData The DOM element that will be the source for the created editor
269
- * or the editor's initial data.
270
- *
271
- * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.
272
- * The editor data will be set back to the original element once the editor is destroyed only if the
273
- * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
274
- * option is set to `true`.
275
- *
276
- * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
277
- * It is available via
278
- * {@link module:editor-decoupled/decouplededitorui~DecoupledEditorUI#getEditableElement `editor.ui.getEditableElement()`}.
279
- *
280
- * @param config The editor configuration.
281
- * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
282
- */
283
- static create(sourceElementOrData: HTMLElement | string, config: EditorConfig): Promise<DecoupledEditor>;
12
+ * The decoupled editor implementation. It provides an inline editable and a toolbar. However, unlike other editors,
13
+ * it does not render these components anywhere in the DOM unless configured.
14
+ *
15
+ * This type of an editor is dedicated to integrations which require a customized UI with an open
16
+ * structure, allowing developers to specify the exact location of the interface.
17
+ *
18
+ * See the document editor {@glink examples/builds/document-editor demo} to learn about possible use cases
19
+ * for the decoupled editor.
20
+ *
21
+ * In order to create a decoupled editor instance, use the static
22
+ * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method.
23
+ *
24
+ * Note that you will need to attach the editor toolbar and menu bar to your web page manually, in a desired place,
25
+ * after the editor is initialized.
26
+ */
27
+ export declare class DecoupledEditor extends DecoupledEditorBase {
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static override get editorName(): "DecoupledEditor";
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ readonly ui: DecoupledEditorUI;
36
+ /**
37
+ * Creates an instance of the decoupled editor.
38
+ *
39
+ * **Note:** Do not use the constructor to create editor instances. Use the static
40
+ * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method instead.
41
+ *
42
+ * @param config The editor configuration.
43
+ */
44
+ protected constructor(config: EditorConfig);
45
+ /**
46
+ * Creates an instance of the decoupled editor.
47
+ *
48
+ * **Note:** Do not use the constructor to create editor instances. Use the static
49
+ * {@link module:editor-decoupled/decouplededitor~DecoupledEditor.create `DecoupledEditor.create()`} method instead.
50
+ *
51
+ * **Note**: This constructor signature is deprecated and will be removed in the future release.
52
+ *
53
+ * @deprecated
54
+ * @param sourceElementOrData The DOM element that will be the source for the created editor
55
+ * (on which the editor will be initialized) or initial data for the editor. For more information see
56
+ * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.
57
+ * @param config The editor configuration.
58
+ */
59
+ protected constructor(sourceElementOrData: HTMLElement | string, config: EditorConfig);
60
+ /**
61
+ * Destroys the editor instance, releasing all resources used by it.
62
+ *
63
+ * Updates the original editor element with the data if the
64
+ * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
65
+ * configuration option is set to `true`.
66
+ *
67
+ * **Note**: The decoupled editor does not remove the toolbar and editable when destroyed. You can
68
+ * do that yourself in the destruction chain:
69
+ *
70
+ * ```ts
71
+ * editor.destroy()
72
+ * .then( () => {
73
+ * // Remove the toolbar from DOM.
74
+ * editor.ui.view.toolbar.element.remove();
75
+ *
76
+ * // Remove the editable from DOM.
77
+ * editor.ui.view.editable.element.remove();
78
+ *
79
+ * console.log( 'Editor was destroyed' );
80
+ * } );
81
+ * ```
82
+ */
83
+ override destroy(): Promise<unknown>;
84
+ /**
85
+ * Creates a new decoupled editor instance.
86
+ *
87
+ * **Note:** remember that `DecoupledEditor` does not append the toolbar element to your web page, so you have to do it manually
88
+ * after the editor has been initialized.
89
+ *
90
+ * There are two ways how the editor can be initialized.
91
+ *
92
+ * # Using an existing DOM element (and loading data from it)
93
+ *
94
+ * You can initialize the editor using an existing DOM element:
95
+ *
96
+ * ```ts
97
+ * DecoupledEditor
98
+ * .create( {
99
+ * root: {
100
+ * element: document.querySelector( '#editor' )
101
+ * }
102
+ * } )
103
+ * .then( editor => {
104
+ * console.log( 'Editor was initialized', editor );
105
+ *
106
+ * // Append the toolbar to the <body> element.
107
+ * document.body.appendChild( editor.ui.view.toolbar.element );
108
+ * } )
109
+ * .catch( err => {
110
+ * console.error( err.stack );
111
+ * } );
112
+ * ```
113
+ *
114
+ * The element's content will be used as the editor data and the element will become the editable element.
115
+ *
116
+ * # Creating a detached editor
117
+ *
118
+ * Alternatively, you can initialize the editor by passing the initial data directly as a string.
119
+ * In this case, you will have to manually append both the toolbar element and the editable element to your web page.
120
+ *
121
+ * ```ts
122
+ * DecoupledEditor
123
+ * .create( {
124
+ * root: {
125
+ * initialData: '<p>Hello world!</p>'
126
+ * }
127
+ * } )
128
+ * .then( editor => {
129
+ * console.log( 'Editor was initialized', editor );
130
+ *
131
+ * // Append the toolbar to the <body> element.
132
+ * document.body.appendChild( editor.ui.view.toolbar.element );
133
+ *
134
+ * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
135
+ * document.body.appendChild( editor.ui.getEditableElement() );
136
+ * } )
137
+ * .catch( err => {
138
+ * console.error( err.stack );
139
+ * } );
140
+ * ```
141
+ *
142
+ * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
143
+ * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
144
+ *
145
+ * # Using an existing DOM element (and data provided in `config.root.initialData`)
146
+ *
147
+ * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
148
+ *
149
+ * ```ts
150
+ * DecoupledEditor
151
+ * .create( {
152
+ * root: {
153
+ * element: document.querySelector( '#editor' ),
154
+ * initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
155
+ * }
156
+ * } )
157
+ * .then( editor => {
158
+ * console.log( 'Editor was initialized', editor );
159
+ *
160
+ * // Append the toolbar to the <body> element.
161
+ * document.body.appendChild( editor.ui.view.toolbar.element );
162
+ * } )
163
+ * .catch( err => {
164
+ * console.error( err.stack );
165
+ * } );
166
+ * ```
167
+ *
168
+ * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
169
+ * makes it difficult to set the content of the source element.
170
+ *
171
+ * # Configuring the editor
172
+ *
173
+ * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
174
+ * customizing plugins, toolbar and more.
175
+ *
176
+ * @param config The editor configuration.
177
+ * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
178
+ */
179
+ static override create(config: EditorConfig): Promise<DecoupledEditor>;
180
+ /**
181
+ * Creates a new decoupled editor instance.
182
+ *
183
+ * **Note**: This method signature is deprecated and will be removed in the future release.
184
+ *
185
+ * **Note:** remember that `DecoupledEditor` does not append the toolbar element to your web page, so you have to do it manually
186
+ * after the editor has been initialized.
187
+ *
188
+ * There are two ways how the editor can be initialized.
189
+ *
190
+ * # Using an existing DOM element (and loading data from it)
191
+ *
192
+ * You can initialize the editor using an existing DOM element:
193
+ *
194
+ * ```ts
195
+ * DecoupledEditor
196
+ * .create( document.querySelector( '#editor' ) )
197
+ * .then( editor => {
198
+ * console.log( 'Editor was initialized', editor );
199
+ *
200
+ * // Append the toolbar to the <body> element.
201
+ * document.body.appendChild( editor.ui.view.toolbar.element );
202
+ * } )
203
+ * .catch( err => {
204
+ * console.error( err.stack );
205
+ * } );
206
+ * ```
207
+ *
208
+ * The element's content will be used as the editor data and the element will become the editable element.
209
+ *
210
+ * # Creating a detached editor
211
+ *
212
+ * Alternatively, you can initialize the editor by passing the initial data directly as a string.
213
+ * In this case, you will have to manually append both the toolbar element and the editable element to your web page.
214
+ *
215
+ * ```ts
216
+ * DecoupledEditor
217
+ * .create( '<p>Hello world!</p>' )
218
+ * .then( editor => {
219
+ * console.log( 'Editor was initialized', editor );
220
+ *
221
+ * // Append the toolbar to the <body> element.
222
+ * document.body.appendChild( editor.ui.view.toolbar.element );
223
+ *
224
+ * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
225
+ * document.body.appendChild( editor.ui.getEditableElement() );
226
+ * } )
227
+ * .catch( err => {
228
+ * console.error( err.stack );
229
+ * } );
230
+ * ```
231
+ *
232
+ * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
233
+ * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
234
+ *
235
+ * # Using an existing DOM element (and data provided in `config.root.initialData`)
236
+ *
237
+ * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
238
+ *
239
+ * ```ts
240
+ * DecoupledEditor
241
+ * .create( document.querySelector( '#editor' ), {
242
+ * root: {
243
+ * initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
244
+ * }
245
+ * } )
246
+ * .then( editor => {
247
+ * console.log( 'Editor was initialized', editor );
248
+ *
249
+ * // Append the toolbar to the <body> element.
250
+ * document.body.appendChild( editor.ui.view.toolbar.element );
251
+ * } )
252
+ * .catch( err => {
253
+ * console.error( err.stack );
254
+ * } );
255
+ * ```
256
+ *
257
+ * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
258
+ * makes it difficult to set the content of the source element.
259
+ *
260
+ * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
261
+ *
262
+ * # Configuring the editor
263
+ *
264
+ * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
265
+ * customizing plugins, toolbar and more.
266
+ *
267
+ * @deprecated
268
+ * @param sourceElementOrData The DOM element that will be the source for the created editor
269
+ * or the editor's initial data.
270
+ *
271
+ * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.
272
+ * The editor data will be set back to the original element once the editor is destroyed only if the
273
+ * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
274
+ * option is set to `true`.
275
+ *
276
+ * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
277
+ * It is available via
278
+ * {@link module:editor-decoupled/decouplededitorui~DecoupledEditorUI#getEditableElement `editor.ui.getEditableElement()`}.
279
+ *
280
+ * @param config The editor configuration.
281
+ * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
282
+ */
283
+ static override create(sourceElementOrData: HTMLElement | string, config: EditorConfig): Promise<DecoupledEditor>;
284
284
  }
285
285
  export {};
@@ -1,42 +1,42 @@
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-decoupled/decouplededitorui
7
- */
8
- import { type Editor } from '@ckeditor/ckeditor5-core';
9
- import { EditorUI } from '@ckeditor/ckeditor5-ui';
10
- import { type DecoupledEditorUIView } from './decouplededitoruiview.js';
6
+ * @module editor-decoupled/decouplededitorui
7
+ */
8
+ import { type Editor } from "@ckeditor/ckeditor5-core";
9
+ import { EditorUI } from "@ckeditor/ckeditor5-ui";
10
+ import { type DecoupledEditorUIView } from "./decouplededitoruiview.js";
11
11
  /**
12
- * The decoupled editor UI class.
13
- */
12
+ * The decoupled editor UI class.
13
+ */
14
14
  export declare class DecoupledEditorUI extends EditorUI {
15
- /**
16
- * The main (top–most) view of the editor UI.
17
- */
18
- readonly view: DecoupledEditorUIView;
19
- /**
20
- * Creates an instance of the decoupled editor UI class.
21
- *
22
- * @param editor The editor instance.
23
- * @param view The view of the UI.
24
- */
25
- constructor(editor: Editor, view: DecoupledEditorUIView);
26
- /**
27
- * Initializes the UI.
28
- */
29
- init(): void;
30
- /**
31
- * @inheritDoc
32
- */
33
- destroy(): void;
34
- /**
35
- * Initializes the inline editor toolbar and its panel.
36
- */
37
- private _initToolbar;
38
- /**
39
- * Enable the placeholder text on the editing root.
40
- */
41
- private _initPlaceholder;
15
+ /**
16
+ * The main (top–most) view of the editor UI.
17
+ */
18
+ readonly view: DecoupledEditorUIView;
19
+ /**
20
+ * Creates an instance of the decoupled editor UI class.
21
+ *
22
+ * @param editor The editor instance.
23
+ * @param view The view of the UI.
24
+ */
25
+ constructor(editor: Editor, view: DecoupledEditorUIView);
26
+ /**
27
+ * Initializes the UI.
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ override destroy(): void;
34
+ /**
35
+ * Initializes the inline editor toolbar and its panel.
36
+ */
37
+ private _initToolbar;
38
+ /**
39
+ * Enable the placeholder text on the editing root.
40
+ */
41
+ private _initPlaceholder;
42
42
  }