@ckeditor/ckeditor5-editor-balloon 41.3.0-alpha.0 → 41.3.0-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,3 +1,7 @@
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
+ */
1
5
  /**
2
6
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-editor-balloon",
3
- "version": "41.3.0-alpha.0",
3
+ "version": "41.3.0-alpha.2",
4
4
  "description": "Balloon 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": "41.3.0-alpha.0",
15
+ "ckeditor5": "41.3.0-alpha.2",
16
16
  "lodash-es": "4.17.21"
17
17
  },
18
18
  "author": "CKSource (http://cksource.com/)",
package/dist/index.js DELETED
@@ -1,363 +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
- import { ElementApiMixin, Editor, secureSourceElement, attachToForm, Context } from '@ckeditor/ckeditor5-core/dist/index.js';
6
- import { EditorUI, EditorUIView, InlineEditableUIView, BalloonToolbar } from '@ckeditor/ckeditor5-ui/dist/index.js';
7
- import { CKEditorError, getDataFromElement } from '@ckeditor/ckeditor5-utils/dist/index.js';
8
- import { EditorWatchdog, ContextWatchdog } from '@ckeditor/ckeditor5-watchdog/dist/index.js';
9
- import { enablePlaceholder } from '@ckeditor/ckeditor5-engine/dist/index.js';
10
- import { isElement as isElement$1 } from 'lodash-es';
11
-
12
- /**
13
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
14
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
15
- */
16
- /**
17
- * The balloon editor UI class.
18
- */
19
- class BalloonEditorUI extends EditorUI {
20
- /**
21
- * Creates an instance of the balloon editor UI class.
22
- *
23
- * @param editor The editor instance.
24
- * @param view The view of the UI.
25
- */
26
- constructor(editor, view) {
27
- super(editor);
28
- this.view = view;
29
- }
30
- /**
31
- * @inheritDoc
32
- */
33
- get element() {
34
- return this.view.editable.element;
35
- }
36
- /**
37
- * Initializes the UI.
38
- */
39
- init() {
40
- const editor = this.editor;
41
- const view = this.view;
42
- const editingView = editor.editing.view;
43
- const editable = view.editable;
44
- const editingRoot = editingView.document.getRoot();
45
- // The editable UI and editing root should share the same name. Then name is used
46
- // to recognize the particular editable, for instance in ARIA attributes.
47
- editable.name = editingRoot.rootName;
48
- view.render();
49
- // The editable UI element in DOM is available for sure only after the editor UI view has been rendered.
50
- // But it can be available earlier if a DOM element has been passed to BalloonEditor.create().
51
- const editableElement = editable.element;
52
- // Register the editable UI view in the editor. A single editor instance can aggregate multiple
53
- // editable areas (roots) but the balloon editor has only one.
54
- this.setEditableElement(editable.name, editableElement);
55
- // Let the editable UI element respond to the changes in the global editor focus
56
- // tracker. It has been added to the same tracker a few lines above but, in reality, there are
57
- // many focusable areas in the editor, like balloons, toolbars or dropdowns and as long
58
- // as they have focus, the editable should act like it is focused too (although technically
59
- // it isn't), e.g. by setting the proper CSS class, visually announcing focus to the user.
60
- // Doing otherwise will result in editable focus styles disappearing, once e.g. the
61
- // toolbar gets focused.
62
- editable.bind('isFocused').to(this.focusTracker);
63
- // Bind the editable UI element to the editing view, making it an end– and entry–point
64
- // of the editor's engine. This is where the engine meets the UI.
65
- editingView.attachDomRoot(editableElement);
66
- this._initPlaceholder();
67
- this.fire('ready');
68
- }
69
- /**
70
- * @inheritDoc
71
- */
72
- destroy() {
73
- super.destroy();
74
- const view = this.view;
75
- const editingView = this.editor.editing.view;
76
- editingView.detachDomRoot(view.editable.name);
77
- view.destroy();
78
- }
79
- /**
80
- * Enable the placeholder text on the editing root.
81
- */
82
- _initPlaceholder() {
83
- const editor = this.editor;
84
- const editingView = editor.editing.view;
85
- const editingRoot = editingView.document.getRoot();
86
- const placeholder = editor.config.get('placeholder');
87
- if (placeholder) {
88
- const placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[editingRoot.rootName];
89
- if (placeholderText) {
90
- editingRoot.placeholder = placeholderText;
91
- }
92
- }
93
- enablePlaceholder({
94
- view: editingView,
95
- element: editingRoot,
96
- isDirectHost: false,
97
- keepOnFocus: true
98
- });
99
- }
100
- }
101
-
102
- /**
103
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
104
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
105
- */
106
- /**
107
- * @module editor-balloon/ballooneditoruiview
108
- */
109
- /**
110
- * Contextual editor UI view. Uses the {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}.
111
- */
112
- class BalloonEditorUIView extends EditorUIView {
113
- /**
114
- * Creates an instance of the balloon editor UI view.
115
- *
116
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
117
- * @param editingView The editing view instance this view is related to.
118
- * @param editableElement The editable element. If not specified, it will be automatically created by
119
- * {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used.
120
- */
121
- constructor(locale, editingView, editableElement) {
122
- super(locale);
123
- const t = locale.t;
124
- this.editable = new InlineEditableUIView(locale, editingView, editableElement, {
125
- label: editableView => {
126
- return t('Rich Text Editor. Editing area: %0', editableView.name);
127
- }
128
- });
129
- }
130
- /**
131
- * @inheritDoc
132
- */
133
- render() {
134
- super.render();
135
- this.registerChild(this.editable);
136
- }
137
- }
138
-
139
- /**
140
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
141
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
142
- */
143
- /**
144
- * @module editor-balloon/ballooneditor
145
- */
146
- /**
147
- * The {@glink installation/getting-started/predefined-builds#balloon-editor balloon editor}
148
- * implementation (Medium-like editor).
149
- * It uses an inline editable and a toolbar based on the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}.
150
- * See the {@glink examples/builds/balloon-editor demo}.
151
- *
152
- * In order to create a balloon editor instance, use the static
153
- * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method.
154
- *
155
- * # Balloon editor and balloon build
156
- *
157
- * The balloon editor can be used directly from source (if you installed the
158
- * [`@ckeditor/ckeditor5-editor-balloon/dist/index.js`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-balloon/dist/index.js) package)
159
- * but it is also available in the {@glink installation/getting-started/predefined-builds#balloon-editor balloon build}.
160
- *
161
- * {@glink installation/getting-started/predefined-builds Builds}
162
- * are ready-to-use editors with plugins bundled in. When using the editor from
163
- * source you need to take care of loading all plugins by yourself
164
- * (through the {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`} option).
165
- * Using the editor from source gives much better flexibility and allows easier customization.
166
- *
167
- * Read more about initializing the editor from source or as a build in
168
- * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.
169
- */
170
- class BalloonEditor extends ElementApiMixin(Editor) {
171
- /**
172
- * Creates an instance of the balloon editor.
173
- *
174
- * **Note:** do not use the constructor to create editor instances. Use the static
175
- * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method instead.
176
- *
177
- * @param sourceElementOrData The DOM element that will be the source for the created editor
178
- * (on which the editor will be initialized) or initial data for the editor. For more information see
179
- * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.
180
- * @param config The editor configuration.
181
- */
182
- constructor(sourceElementOrData, config = {}) {
183
- // If both `config.initialData` is set and initial data is passed as the constructor parameter, then throw.
184
- if (!isElement(sourceElementOrData) && config.initialData !== undefined) {
185
- // Documented in core/editor/editorconfig.jsdoc.
186
- // eslint-disable-next-line ckeditor5-rules/ckeditor-error-message
187
- throw new CKEditorError('editor-create-initial-data', null);
188
- }
189
- super(config);
190
- if (this.config.get('initialData') === undefined) {
191
- this.config.set('initialData', getInitialData(sourceElementOrData));
192
- }
193
- if (isElement(sourceElementOrData)) {
194
- this.sourceElement = sourceElementOrData;
195
- secureSourceElement(this, sourceElementOrData);
196
- }
197
- const plugins = this.config.get('plugins');
198
- plugins.push(BalloonToolbar);
199
- this.config.set('plugins', plugins);
200
- this.config.define('balloonToolbar', this.config.get('toolbar'));
201
- this.model.document.createRoot();
202
- const view = new BalloonEditorUIView(this.locale, this.editing.view, this.sourceElement);
203
- this.ui = new BalloonEditorUI(this, view);
204
- attachToForm(this);
205
- }
206
- /**
207
- * Destroys the editor instance, releasing all resources used by it.
208
- *
209
- * Updates the original editor element with the data if the
210
- * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
211
- * configuration option is set to `true`.
212
- */
213
- destroy() {
214
- // Cache the data, then destroy.
215
- // It's safe to assume that the model->view conversion will not work after super.destroy().
216
- const data = this.getData();
217
- this.ui.destroy();
218
- return super.destroy()
219
- .then(() => {
220
- if (this.sourceElement) {
221
- this.updateSourceElement(data);
222
- }
223
- });
224
- }
225
- /**
226
- * Creates a new balloon editor instance.
227
- *
228
- * There are three general ways how the editor can be initialized.
229
- *
230
- * # Using an existing DOM element (and loading data from it)
231
- *
232
- * You can initialize the editor using an existing DOM element:
233
- *
234
- * ```ts
235
- * BalloonEditor
236
- * .create( document.querySelector( '#editor' ) )
237
- * .then( editor => {
238
- * console.log( 'Editor was initialized', editor );
239
- * } )
240
- * .catch( err => {
241
- * console.error( err.stack );
242
- * } );
243
- * ```
244
- *
245
- * The element's content will be used as the editor data and the element will become the editable element.
246
- *
247
- * # Creating a detached editor
248
- *
249
- * Alternatively, you can initialize the editor by passing the initial data directly as a string.
250
- * In this case, the editor will render an element that must be inserted into the DOM for the editor to work properly:
251
- *
252
- * ```ts
253
- * BalloonEditor
254
- * .create( '<p>Hello world!</p>' )
255
- * .then( editor => {
256
- * console.log( 'Editor was initialized', editor );
257
- *
258
- * // Initial data was provided so the editor UI element needs to be added manually to the DOM.
259
- * document.body.appendChild( editor.ui.element );
260
- * } )
261
- * .catch( err => {
262
- * console.error( err.stack );
263
- * } );
264
- * ```
265
- *
266
- * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
267
- * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
268
- *
269
- * # Using an existing DOM element (and data provided in `config.initialData`)
270
- *
271
- * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
272
- *
273
- * ```ts
274
- * BalloonEditor
275
- * .create( document.querySelector( '#editor' ), {
276
- * initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
277
- * } )
278
- * .then( editor => {
279
- * console.log( 'Editor was initialized', editor );
280
- * } )
281
- * .catch( err => {
282
- * console.error( err.stack );
283
- * } );
284
- * ```
285
- *
286
- * This method can be used to initialize the editor on an existing element with the specified content in case if your integration
287
- * makes it difficult to set the content of the source element.
288
- *
289
- * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
290
- *
291
- * # Configuring the editor
292
- *
293
- * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
294
- * customizing plugins, toolbar and more.
295
- *
296
- * # Using the editor from source
297
- *
298
- * The code samples listed in the previous sections of this documentation assume that you are using an
299
- * {@glink installation/getting-started/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-balloon/dist/index.js`).
300
- *
301
- * If you want to use the balloon editor from source (`@ckeditor/ckeditor5-editor-balloon/dist/index.js`),
302
- * you need to define the list of
303
- * {@link module:core/editor/editorconfig~EditorConfig#plugins plugins to be initialized} and
304
- * {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar items}. Read more about using the editor from
305
- * source in the {@glink installation/advanced/alternative-setups/integrating-from-source-webpack dedicated guide}.
306
- *
307
- * @param sourceElementOrData The DOM element that will be the source for the created editor
308
- * or the editor's initial data.
309
- *
310
- * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.
311
- * The editor data will be set back to the original element once the editor is destroyed only if the
312
- * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
313
- * option is set to `true`.
314
- *
315
- * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
316
- * It is available under the {@link module:editor-balloon/ballooneditorui~BalloonEditorUI#element `editor.ui.element`} property.
317
- *
318
- * @param config The editor configuration.
319
- * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
320
- */
321
- static create(sourceElementOrData, config = {}) {
322
- return new Promise(resolve => {
323
- if (isElement(sourceElementOrData) && sourceElementOrData.tagName === 'TEXTAREA') {
324
- // Documented in core/editor/editor.js
325
- // eslint-disable-next-line ckeditor5-rules/ckeditor-error-message
326
- throw new CKEditorError('editor-wrong-element', null);
327
- }
328
- const editor = new this(sourceElementOrData, config);
329
- resolve(editor.initPlugins()
330
- .then(() => editor.ui.init())
331
- .then(() => editor.data.init(editor.config.get('initialData')))
332
- .then(() => editor.fire('ready'))
333
- .then(() => editor));
334
- });
335
- }
336
- }
337
- /**
338
- * The {@link module:core/context~Context} class.
339
- *
340
- * Exposed as static editor field for easier access in editor builds.
341
- */
342
- BalloonEditor.Context = Context;
343
- /**
344
- * The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
345
- *
346
- * Exposed as static editor field for easier access in editor builds.
347
- */
348
- BalloonEditor.EditorWatchdog = EditorWatchdog;
349
- /**
350
- * The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
351
- *
352
- * Exposed as static editor field for easier access in editor builds.
353
- */
354
- BalloonEditor.ContextWatchdog = ContextWatchdog;
355
- function getInitialData(sourceElementOrData) {
356
- return isElement(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;
357
- }
358
- function isElement(value) {
359
- return isElement$1(value);
360
- }
361
-
362
- export { BalloonEditor };
363
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.js","../src/ballooneditorui.ts","../src/ballooneditoruiview.ts","../src/ballooneditor.ts"],"names":["_isElement"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC7H,MAAM,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AAA,MAAOA,CAAAA,SAAAA,CAAAA,CAAU,CAAE,KAAK,CAAE,CAAC;AAC5B,CAAA;AHsFA;AACA,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG","file":"index.js.map","sourcesContent":["import { ElementApiMixin, Editor, secureSourceElement, attachToForm, Context } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { EditorUI, EditorUIView, InlineEditableUIView, BalloonToolbar } from '@ckeditor/ckeditor5-ui/dist/index.js';\nimport { CKEditorError, getDataFromElement } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { EditorWatchdog, ContextWatchdog } from '@ckeditor/ckeditor5-watchdog/dist/index.js';\nimport { enablePlaceholder } from '@ckeditor/ckeditor5-engine/dist/index.js';\nimport { isElement as isElement$1 } from 'lodash-es';\n\n/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n/**\n * The balloon editor UI class.\n */\nclass BalloonEditorUI extends EditorUI {\n /**\n * Creates an instance of the balloon editor UI class.\n *\n * @param editor The editor instance.\n * @param view The view of the UI.\n */\n constructor(editor, view) {\n super(editor);\n this.view = view;\n }\n /**\n * @inheritDoc\n */\n get element() {\n return this.view.editable.element;\n }\n /**\n * Initializes the UI.\n */\n init() {\n const editor = this.editor;\n const view = this.view;\n const editingView = editor.editing.view;\n const editable = view.editable;\n const editingRoot = editingView.document.getRoot();\n // The editable UI and editing root should share the same name. Then name is used\n // to recognize the particular editable, for instance in ARIA attributes.\n editable.name = editingRoot.rootName;\n view.render();\n // The editable UI element in DOM is available for sure only after the editor UI view has been rendered.\n // But it can be available earlier if a DOM element has been passed to BalloonEditor.create().\n const editableElement = editable.element;\n // Register the editable UI view in the editor. A single editor instance can aggregate multiple\n // editable areas (roots) but the balloon editor has only one.\n this.setEditableElement(editable.name, editableElement);\n // Let the editable UI element respond to the changes in the global editor focus\n // tracker. It has been added to the same tracker a few lines above but, in reality, there are\n // many focusable areas in the editor, like balloons, toolbars or dropdowns and as long\n // as they have focus, the editable should act like it is focused too (although technically\n // it isn't), e.g. by setting the proper CSS class, visually announcing focus to the user.\n // Doing otherwise will result in editable focus styles disappearing, once e.g. the\n // toolbar gets focused.\n editable.bind('isFocused').to(this.focusTracker);\n // Bind the editable UI element to the editing view, making it an end– and entry–point\n // of the editor's engine. This is where the engine meets the UI.\n editingView.attachDomRoot(editableElement);\n this._initPlaceholder();\n this.fire('ready');\n }\n /**\n * @inheritDoc\n */\n destroy() {\n super.destroy();\n const view = this.view;\n const editingView = this.editor.editing.view;\n editingView.detachDomRoot(view.editable.name);\n view.destroy();\n }\n /**\n * Enable the placeholder text on the editing root.\n */\n _initPlaceholder() {\n const editor = this.editor;\n const editingView = editor.editing.view;\n const editingRoot = editingView.document.getRoot();\n const placeholder = editor.config.get('placeholder');\n if (placeholder) {\n const placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[editingRoot.rootName];\n if (placeholderText) {\n editingRoot.placeholder = placeholderText;\n }\n }\n enablePlaceholder({\n view: editingView,\n element: editingRoot,\n isDirectHost: false,\n keepOnFocus: true\n });\n }\n}\n\n/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n/**\n * @module editor-balloon/ballooneditoruiview\n */\n/**\n * Contextual editor UI view. Uses the {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}.\n */\nclass BalloonEditorUIView extends EditorUIView {\n /**\n * Creates an instance of the balloon editor UI view.\n *\n * @param locale The {@link module:core/editor/editor~Editor#locale} instance.\n * @param editingView The editing view instance this view is related to.\n * @param editableElement The editable element. If not specified, it will be automatically created by\n * {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used.\n */\n constructor(locale, editingView, editableElement) {\n super(locale);\n const t = locale.t;\n this.editable = new InlineEditableUIView(locale, editingView, editableElement, {\n label: editableView => {\n return t('Rich Text Editor. Editing area: %0', editableView.name);\n }\n });\n }\n /**\n * @inheritDoc\n */\n render() {\n super.render();\n this.registerChild(this.editable);\n }\n}\n\n/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n/**\n * @module editor-balloon/ballooneditor\n */\n/**\n * The {@glink installation/getting-started/predefined-builds#balloon-editor balloon editor}\n * implementation (Medium-like editor).\n * It uses an inline editable and a toolbar based on the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}.\n * See the {@glink examples/builds/balloon-editor demo}.\n *\n * In order to create a balloon editor instance, use the static\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method.\n *\n * # Balloon editor and balloon build\n *\n * The balloon editor can be used directly from source (if you installed the\n * [`@ckeditor/ckeditor5-editor-balloon/dist/index.js`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-balloon/dist/index.js) package)\n * but it is also available in the {@glink installation/getting-started/predefined-builds#balloon-editor balloon build}.\n *\n * {@glink installation/getting-started/predefined-builds Builds}\n * are ready-to-use editors with plugins bundled in. When using the editor from\n * source you need to take care of loading all plugins by yourself\n * (through the {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`} option).\n * Using the editor from source gives much better flexibility and allows easier customization.\n *\n * Read more about initializing the editor from source or as a build in\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.\n */\nclass BalloonEditor extends ElementApiMixin(Editor) {\n /**\n * Creates an instance of the balloon editor.\n *\n * **Note:** do not use the constructor to create editor instances. Use the static\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method instead.\n *\n * @param sourceElementOrData The DOM element that will be the source for the created editor\n * (on which the editor will be initialized) or initial data for the editor. For more information see\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.\n * @param config The editor configuration.\n */\n constructor(sourceElementOrData, config = {}) {\n // If both `config.initialData` is set and initial data is passed as the constructor parameter, then throw.\n if (!isElement(sourceElementOrData) && config.initialData !== undefined) {\n // Documented in core/editor/editorconfig.jsdoc.\n // eslint-disable-next-line ckeditor5-rules/ckeditor-error-message\n throw new CKEditorError('editor-create-initial-data', null);\n }\n super(config);\n if (this.config.get('initialData') === undefined) {\n this.config.set('initialData', getInitialData(sourceElementOrData));\n }\n if (isElement(sourceElementOrData)) {\n this.sourceElement = sourceElementOrData;\n secureSourceElement(this, sourceElementOrData);\n }\n const plugins = this.config.get('plugins');\n plugins.push(BalloonToolbar);\n this.config.set('plugins', plugins);\n this.config.define('balloonToolbar', this.config.get('toolbar'));\n this.model.document.createRoot();\n const view = new BalloonEditorUIView(this.locale, this.editing.view, this.sourceElement);\n this.ui = new BalloonEditorUI(this, view);\n attachToForm(this);\n }\n /**\n * Destroys the editor instance, releasing all resources used by it.\n *\n * Updates the original editor element with the data if the\n * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}\n * configuration option is set to `true`.\n */\n destroy() {\n // Cache the data, then destroy.\n // It's safe to assume that the model->view conversion will not work after super.destroy().\n const data = this.getData();\n this.ui.destroy();\n return super.destroy()\n .then(() => {\n if (this.sourceElement) {\n this.updateSourceElement(data);\n }\n });\n }\n /**\n * Creates a new balloon editor instance.\n *\n * There are three general ways how the editor can be initialized.\n *\n * # Using an existing DOM element (and loading data from it)\n *\n * You can initialize the editor using an existing DOM element:\n *\n * ```ts\n * BalloonEditor\n * \t.create( document.querySelector( '#editor' ) )\n * \t.then( editor => {\n * \t\tconsole.log( 'Editor was initialized', editor );\n * \t} )\n * \t.catch( err => {\n * \t\tconsole.error( err.stack );\n * \t} );\n * ```\n *\n * The element's content will be used as the editor data and the element will become the editable element.\n *\n * # Creating a detached editor\n *\n * Alternatively, you can initialize the editor by passing the initial data directly as a string.\n * In this case, the editor will render an element that must be inserted into the DOM for the editor to work properly:\n *\n * ```ts\n * BalloonEditor\n * \t.create( '<p>Hello world!</p>' )\n * \t.then( editor => {\n * \t\tconsole.log( 'Editor was initialized', editor );\n *\n * \t\t// Initial data was provided so the editor UI element needs to be added manually to the DOM.\n * \t\tdocument.body.appendChild( editor.ui.element );\n * \t} )\n * \t.catch( err => {\n * \t\tconsole.error( err.stack );\n * \t} );\n * ```\n *\n * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your\n * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.\n *\n * # Using an existing DOM element (and data provided in `config.initialData`)\n *\n * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:\n *\n * ```ts\n * BalloonEditor\n * \t.create( document.querySelector( '#editor' ), {\n * \t\tinitialData: '<h2>Initial data</h2><p>Foo bar.</p>'\n * \t} )\n * \t.then( editor => {\n * \t\tconsole.log( 'Editor was initialized', editor );\n * \t} )\n * \t.catch( err => {\n * \t\tconsole.error( err.stack );\n * \t} );\n * ```\n *\n * This method can be used to initialize the editor on an existing element with the specified content in case if your integration\n * makes it difficult to set the content of the source element.\n *\n * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.\n *\n * # Configuring the editor\n *\n * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about\n * customizing plugins, toolbar and more.\n *\n * # Using the editor from source\n *\n * The code samples listed in the previous sections of this documentation assume that you are using an\n * {@glink installation/getting-started/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-balloon/dist/index.js`).\n *\n * If you want to use the balloon editor from source (`@ckeditor/ckeditor5-editor-balloon/dist/index.js`),\n * you need to define the list of\n * {@link module:core/editor/editorconfig~EditorConfig#plugins plugins to be initialized} and\n * {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar items}. Read more about using the editor from\n * source in the {@glink installation/advanced/alternative-setups/integrating-from-source-webpack dedicated guide}.\n *\n * @param sourceElementOrData The DOM element that will be the source for the created editor\n * or the editor's initial data.\n *\n * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.\n * The editor data will be set back to the original element once the editor is destroyed only if the\n * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}\n * option is set to `true`.\n *\n * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.\n * It is available under the {@link module:editor-balloon/ballooneditorui~BalloonEditorUI#element `editor.ui.element`} property.\n *\n * @param config The editor configuration.\n * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.\n */\n static create(sourceElementOrData, config = {}) {\n return new Promise(resolve => {\n if (isElement(sourceElementOrData) && sourceElementOrData.tagName === 'TEXTAREA') {\n // Documented in core/editor/editor.js\n // eslint-disable-next-line ckeditor5-rules/ckeditor-error-message\n throw new CKEditorError('editor-wrong-element', null);\n }\n const editor = new this(sourceElementOrData, config);\n resolve(editor.initPlugins()\n .then(() => editor.ui.init())\n .then(() => editor.data.init(editor.config.get('initialData')))\n .then(() => editor.fire('ready'))\n .then(() => editor));\n });\n }\n}\n/**\n * The {@link module:core/context~Context} class.\n *\n * Exposed as static editor field for easier access in editor builds.\n */\nBalloonEditor.Context = Context;\n/**\n * The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.\n *\n * Exposed as static editor field for easier access in editor builds.\n */\nBalloonEditor.EditorWatchdog = EditorWatchdog;\n/**\n * The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.\n *\n * Exposed as static editor field for easier access in editor builds.\n */\nBalloonEditor.ContextWatchdog = ContextWatchdog;\nfunction getInitialData(sourceElementOrData) {\n return isElement(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;\n}\nfunction isElement(value) {\n return isElement$1(value);\n}\n\nexport { BalloonEditor };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module editor-balloon/ballooneditorui\n */\n\nimport {\n\ttype Editor\n} from 'ckeditor5/src/core.js';\n\nimport {\n\tEditorUI,\n\ttype EditorUIReadyEvent\n} from 'ckeditor5/src/ui.js';\n\nimport { enablePlaceholder } from 'ckeditor5/src/engine.js';\n\nimport type BalloonEditorUIView from './ballooneditoruiview.js';\n\n/**\n * The balloon editor UI class.\n */\nexport default class BalloonEditorUI extends EditorUI {\n\t/**\n\t * The main (top–most) view of the editor UI.\n\t */\n\tpublic readonly view: BalloonEditorUIView;\n\n\t/**\n\t * Creates an instance of the balloon editor UI class.\n\t *\n\t * @param editor The editor instance.\n\t * @param view The view of the UI.\n\t */\n\tconstructor( editor: Editor, view: BalloonEditorUIView ) {\n\t\tsuper( editor );\n\n\t\tthis.view = view;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override get element(): HTMLElement | null {\n\t\treturn this.view.editable.element;\n\t}\n\n\t/**\n\t * Initializes the UI.\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst view = this.view;\n\t\tconst editingView = editor.editing.view;\n\t\tconst editable = view.editable;\n\t\tconst editingRoot = editingView.document.getRoot()!;\n\n\t\t// The editable UI and editing root should share the same name. Then name is used\n\t\t// to recognize the particular editable, for instance in ARIA attributes.\n\t\teditable.name = editingRoot.rootName;\n\n\t\tview.render();\n\n\t\t// The editable UI element in DOM is available for sure only after the editor UI view has been rendered.\n\t\t// But it can be available earlier if a DOM element has been passed to BalloonEditor.create().\n\t\tconst editableElement = editable.element!;\n\n\t\t// Register the editable UI view in the editor. A single editor instance can aggregate multiple\n\t\t// editable areas (roots) but the balloon editor has only one.\n\t\tthis.setEditableElement( editable.name, editableElement );\n\n\t\t// Let the editable UI element respond to the changes in the global editor focus\n\t\t// tracker. It has been added to the same tracker a few lines above but, in reality, there are\n\t\t// many focusable areas in the editor, like balloons, toolbars or dropdowns and as long\n\t\t// as they have focus, the editable should act like it is focused too (although technically\n\t\t// it isn't), e.g. by setting the proper CSS class, visually announcing focus to the user.\n\t\t// Doing otherwise will result in editable focus styles disappearing, once e.g. the\n\t\t// toolbar gets focused.\n\t\teditable.bind( 'isFocused' ).to( this.focusTracker );\n\n\t\t// Bind the editable UI element to the editing view, making it an end– and entry–point\n\t\t// of the editor's engine. This is where the engine meets the UI.\n\t\teditingView.attachDomRoot( editableElement );\n\n\t\tthis._initPlaceholder();\n\t\tthis.fire<EditorUIReadyEvent>( 'ready' );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tconst view = this.view;\n\t\tconst editingView = this.editor.editing.view;\n\n\t\teditingView.detachDomRoot( view.editable.name! );\n\t\tview.destroy();\n\t}\n\n\t/**\n\t * Enable the placeholder text on the editing root.\n\t */\n\tprivate _initPlaceholder(): void {\n\t\tconst editor = this.editor;\n\t\tconst editingView = editor.editing.view;\n\t\tconst editingRoot = editingView.document.getRoot()!;\n\t\tconst placeholder = editor.config.get( 'placeholder' );\n\n\t\tif ( placeholder ) {\n\t\t\tconst placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[ editingRoot.rootName ];\n\n\t\t\tif ( placeholderText ) {\n\t\t\t\teditingRoot.placeholder = placeholderText;\n\t\t\t}\n\t\t}\n\n\t\tenablePlaceholder( {\n\t\t\tview: editingView,\n\t\t\telement: editingRoot,\n\t\t\tisDirectHost: false,\n\t\t\tkeepOnFocus: true\n\t\t} );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module editor-balloon/ballooneditoruiview\n */\n\nimport { EditorUIView, InlineEditableUIView } from 'ckeditor5/src/ui.js';\nimport type { Locale } from 'ckeditor5/src/utils.js';\nimport type { EditingView } from 'ckeditor5/src/engine.js';\n\n/**\n * Contextual editor UI view. Uses the {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}.\n */\nexport default class BalloonEditorUIView extends EditorUIView {\n\t/**\n\t * Editable UI view.\n\t */\n\tpublic readonly editable: InlineEditableUIView;\n\n\t/**\n\t * Creates an instance of the balloon editor UI view.\n\t *\n\t * @param locale The {@link module:core/editor/editor~Editor#locale} instance.\n\t * @param editingView The editing view instance this view is related to.\n\t * @param editableElement The editable element. If not specified, it will be automatically created by\n\t * {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used.\n\t */\n\tconstructor(\n\t\tlocale: Locale,\n\t\teditingView: EditingView,\n\t\teditableElement?: HTMLElement\n\t) {\n\t\tsuper( locale );\n\n\t\tconst t = locale.t;\n\n\t\tthis.editable = new InlineEditableUIView( locale, editingView, editableElement, {\n\t\t\tlabel: editableView => {\n\t\t\t\treturn t( 'Rich Text Editor. Editing area: %0', editableView.name! );\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis.registerChild( this.editable );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module editor-balloon/ballooneditor\n */\n\nimport {\n\tEditor,\n\tContext,\n\tElementApiMixin,\n\tattachToForm,\n\tsecureSourceElement,\n\ttype EditorConfig,\n\ttype EditorReadyEvent\n} from 'ckeditor5/src/core.js';\n\nimport { BalloonToolbar } from 'ckeditor5/src/ui.js';\nimport { CKEditorError, getDataFromElement } from 'ckeditor5/src/utils.js';\n\nimport { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';\n\nimport BalloonEditorUI from './ballooneditorui.js';\nimport BalloonEditorUIView from './ballooneditoruiview.js';\n\nimport { isElement as _isElement } from 'lodash-es';\n\n/**\n * The {@glink installation/getting-started/predefined-builds#balloon-editor balloon editor}\n * implementation (Medium-like editor).\n * It uses an inline editable and a toolbar based on the {@link module:ui/toolbar/balloon/balloontoolbar~BalloonToolbar}.\n * See the {@glink examples/builds/balloon-editor demo}.\n *\n * In order to create a balloon editor instance, use the static\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method.\n *\n * # Balloon editor and balloon build\n *\n * The balloon editor can be used directly from source (if you installed the\n * [`@ckeditor/ckeditor5-editor-balloon`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-balloon) package)\n * but it is also available in the {@glink installation/getting-started/predefined-builds#balloon-editor balloon build}.\n *\n * {@glink installation/getting-started/predefined-builds Builds}\n * are ready-to-use editors with plugins bundled in. When using the editor from\n * source you need to take care of loading all plugins by yourself\n * (through the {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`} option).\n * Using the editor from source gives much better flexibility and allows easier customization.\n *\n * Read more about initializing the editor from source or as a build in\n * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.\n */\nexport default class BalloonEditor extends ElementApiMixin( Editor ) {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic readonly ui: BalloonEditorUI;\n\n\t/**\n\t * Creates an instance of the balloon editor.\n\t *\n\t * **Note:** do not use the constructor to create editor instances. Use the static\n\t * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method instead.\n\t *\n\t * @param sourceElementOrData The DOM element that will be the source for the created editor\n\t * (on which the editor will be initialized) or initial data for the editor. For more information see\n\t * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.\n\t * @param config The editor configuration.\n\t */\n\tprotected constructor( sourceElementOrData: HTMLElement | string, config: EditorConfig = {} ) {\n\t\t// If both `config.initialData` is set and initial data is passed as the constructor parameter, then throw.\n\t\tif ( !isElement( sourceElementOrData ) && config.initialData !== undefined ) {\n\t\t\t// Documented in core/editor/editorconfig.jsdoc.\n\t\t\t// eslint-disable-next-line ckeditor5-rules/ckeditor-error-message\n\t\t\tthrow new CKEditorError( 'editor-create-initial-data', null );\n\t\t}\n\n\t\tsuper( config );\n\n\t\tif ( this.config.get( 'initialData' ) === undefined ) {\n\t\t\tthis.config.set( 'initialData', getInitialData( sourceElementOrData ) );\n\t\t}\n\n\t\tif ( isElement( sourceElementOrData ) ) {\n\t\t\tthis.sourceElement = sourceElementOrData;\n\t\t\tsecureSourceElement( this, sourceElementOrData );\n\t\t}\n\n\t\tconst plugins = this.config.get( 'plugins' )!;\n\t\tplugins.push( BalloonToolbar );\n\n\t\tthis.config.set( 'plugins', plugins );\n\n\t\tthis.config.define( 'balloonToolbar', this.config.get( 'toolbar' ) );\n\n\t\tthis.model.document.createRoot();\n\n\t\tconst view = new BalloonEditorUIView( this.locale, this.editing.view, this.sourceElement );\n\t\tthis.ui = new BalloonEditorUI( this, view );\n\n\t\tattachToForm( this );\n\t}\n\n\t/**\n\t * Destroys the editor instance, releasing all resources used by it.\n\t *\n\t * Updates the original editor element with the data if the\n\t * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}\n\t * configuration option is set to `true`.\n\t */\n\tpublic override destroy(): Promise<unknown> {\n\t\t// Cache the data, then destroy.\n\t\t// It's safe to assume that the model->view conversion will not work after super.destroy().\n\t\tconst data = this.getData();\n\n\t\tthis.ui.destroy();\n\n\t\treturn super.destroy()\n\t\t\t.then( () => {\n\t\t\t\tif ( this.sourceElement ) {\n\t\t\t\t\tthis.updateSourceElement( data );\n\t\t\t\t}\n\t\t\t} );\n\t}\n\n\t/**\n\t * Creates a new balloon editor instance.\n\t *\n\t * There are three general ways how the editor can be initialized.\n\t *\n\t * # Using an existing DOM element (and loading data from it)\n\t *\n\t * You can initialize the editor using an existing DOM element:\n\t *\n\t * ```ts\n\t * BalloonEditor\n\t * \t.create( document.querySelector( '#editor' ) )\n\t * \t.then( editor => {\n\t * \t\tconsole.log( 'Editor was initialized', editor );\n\t * \t} )\n\t * \t.catch( err => {\n\t * \t\tconsole.error( err.stack );\n\t * \t} );\n\t * ```\n\t *\n\t * The element's content will be used as the editor data and the element will become the editable element.\n\t *\n\t * # Creating a detached editor\n\t *\n\t * Alternatively, you can initialize the editor by passing the initial data directly as a string.\n\t * In this case, the editor will render an element that must be inserted into the DOM for the editor to work properly:\n\t *\n\t * ```ts\n\t * BalloonEditor\n\t * \t.create( '<p>Hello world!</p>' )\n\t * \t.then( editor => {\n\t * \t\tconsole.log( 'Editor was initialized', editor );\n\t *\n\t * \t\t// Initial data was provided so the editor UI element needs to be added manually to the DOM.\n\t * \t\tdocument.body.appendChild( editor.ui.element );\n\t * \t} )\n\t * \t.catch( err => {\n\t * \t\tconsole.error( err.stack );\n\t * \t} );\n\t * ```\n\t *\n\t * This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your\n\t * web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.\n\t *\n\t * # Using an existing DOM element (and data provided in `config.initialData`)\n\t *\n\t * You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:\n\t *\n\t * ```ts\n\t * BalloonEditor\n\t * \t.create( document.querySelector( '#editor' ), {\n\t * \t\tinitialData: '<h2>Initial data</h2><p>Foo bar.</p>'\n\t * \t} )\n\t * \t.then( editor => {\n\t * \t\tconsole.log( 'Editor was initialized', editor );\n\t * \t} )\n\t * \t.catch( err => {\n\t * \t\tconsole.error( err.stack );\n\t * \t} );\n\t * ```\n\t *\n\t * This method can be used to initialize the editor on an existing element with the specified content in case if your integration\n\t * makes it difficult to set the content of the source element.\n\t *\n\t * Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.\n\t *\n\t * # Configuring the editor\n\t *\n\t * See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about\n\t * customizing plugins, toolbar and more.\n\t *\n\t * # Using the editor from source\n\t *\n\t * The code samples listed in the previous sections of this documentation assume that you are using an\n\t * {@glink installation/getting-started/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-balloon`).\n\t *\n\t * If you want to use the balloon editor from source (`@ckeditor/ckeditor5-editor-balloon/src/ballooneditor`),\n\t * you need to define the list of\n\t * {@link module:core/editor/editorconfig~EditorConfig#plugins plugins to be initialized} and\n\t * {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar items}. Read more about using the editor from\n\t * source in the {@glink installation/advanced/alternative-setups/integrating-from-source-webpack dedicated guide}.\n\t *\n\t * @param sourceElementOrData The DOM element that will be the source for the created editor\n\t * or the editor's initial data.\n\t *\n\t * If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.\n\t * The editor data will be set back to the original element once the editor is destroyed only if the\n\t * {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}\n\t * option is set to `true`.\n\t *\n\t * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.\n\t * It is available under the {@link module:editor-balloon/ballooneditorui~BalloonEditorUI#element `editor.ui.element`} property.\n\t *\n\t * @param config The editor configuration.\n\t * @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.\n\t */\n\tpublic static override create( sourceElementOrData: HTMLElement | string, config: EditorConfig = {} ): Promise<BalloonEditor> {\n\t\treturn new Promise( resolve => {\n\t\t\tif ( isElement( sourceElementOrData ) && sourceElementOrData.tagName === 'TEXTAREA' ) {\n\t\t\t\t// Documented in core/editor/editor.js\n\t\t\t\t// eslint-disable-next-line ckeditor5-rules/ckeditor-error-message\n\t\t\t\tthrow new CKEditorError( 'editor-wrong-element', null );\n\t\t\t}\n\n\t\t\tconst editor = new this( sourceElementOrData, config );\n\n\t\t\tresolve(\n\t\t\t\teditor.initPlugins()\n\t\t\t\t\t.then( () => editor.ui.init() )\n\t\t\t\t\t.then( () => editor.data.init( editor.config.get( 'initialData' )! ) )\n\t\t\t\t\t.then( () => editor.fire<EditorReadyEvent>( 'ready' ) )\n\t\t\t\t\t.then( () => editor )\n\t\t\t);\n\t\t} );\n\t}\n\n\t/**\n\t * The {@link module:core/context~Context} class.\n\t *\n\t * Exposed as static editor field for easier access in editor builds.\n\t */\n\tpublic static Context = Context;\n\n\t/**\n\t * The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.\n\t *\n\t * Exposed as static editor field for easier access in editor builds.\n\t */\n\tpublic static EditorWatchdog = EditorWatchdog;\n\n\t/**\n\t * The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.\n\t *\n\t * Exposed as static editor field for easier access in editor builds.\n\t */\n\tpublic static ContextWatchdog = ContextWatchdog;\n}\n\nfunction getInitialData( sourceElementOrData: HTMLElement | string ): string {\n\treturn isElement( sourceElementOrData ) ? getDataFromElement( sourceElementOrData ) : sourceElementOrData;\n}\n\nfunction isElement( value: any ): value is Element {\n\treturn _isElement( value );\n}\n"]}