@ckeditor/ckeditor5-editor-inline 41.3.0-alpha.1 → 41.3.0-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
package/dist/types/index.d.ts
CHANGED
@@ -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-inline",
|
3
|
-
"version": "41.3.0-alpha.
|
3
|
+
"version": "41.3.0-alpha.2",
|
4
4
|
"description": "Inline 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.
|
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,483 +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 { toUnit, ResizeObserver, Rect, CKEditorError, getDataFromElement } from '@ckeditor/ckeditor5-utils/dist/index.js';
|
7
|
-
import { EditorWatchdog, ContextWatchdog } from '@ckeditor/ckeditor5-watchdog/dist/index.js';
|
8
|
-
import { EditorUI, normalizeToolbarConfig, EditorUIView, ToolbarView, BalloonPanelView, InlineEditableUIView } from '@ckeditor/ckeditor5-ui/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 inline editor UI class.
|
18
|
-
*
|
19
|
-
* @extends module:ui/editorui/editorui~EditorUI
|
20
|
-
*/
|
21
|
-
class InlineEditorUI extends EditorUI {
|
22
|
-
/**
|
23
|
-
* Creates an instance of the inline editor UI class.
|
24
|
-
*
|
25
|
-
* @param editor The editor instance.
|
26
|
-
* @param view The view of the UI.
|
27
|
-
*/
|
28
|
-
constructor(editor, view) {
|
29
|
-
super(editor);
|
30
|
-
this.view = view;
|
31
|
-
this._toolbarConfig = normalizeToolbarConfig(editor.config.get('toolbar'));
|
32
|
-
}
|
33
|
-
/**
|
34
|
-
* @inheritDoc
|
35
|
-
*/
|
36
|
-
get element() {
|
37
|
-
return this.view.editable.element;
|
38
|
-
}
|
39
|
-
/**
|
40
|
-
* Initializes the UI.
|
41
|
-
*/
|
42
|
-
init() {
|
43
|
-
const editor = this.editor;
|
44
|
-
const view = this.view;
|
45
|
-
const editingView = editor.editing.view;
|
46
|
-
const editable = view.editable;
|
47
|
-
const editingRoot = editingView.document.getRoot();
|
48
|
-
// The editable UI and editing root should share the same name. Then name is used
|
49
|
-
// to recognize the particular editable, for instance in ARIA attributes.
|
50
|
-
editable.name = editingRoot.rootName;
|
51
|
-
view.render();
|
52
|
-
// The editable UI element in DOM is available for sure only after the editor UI view has been rendered.
|
53
|
-
// But it can be available earlier if a DOM element has been passed to InlineEditor.create().
|
54
|
-
const editableElement = editable.element;
|
55
|
-
// Register the editable UI view in the editor. A single editor instance can aggregate multiple
|
56
|
-
// editable areas (roots) but the inline editor has only one.
|
57
|
-
this.setEditableElement(editable.name, editableElement);
|
58
|
-
// Let the editable UI element respond to the changes in the global editor focus
|
59
|
-
// tracker. It has been added to the same tracker a few lines above but, in reality, there are
|
60
|
-
// many focusable areas in the editor, like balloons, toolbars or dropdowns and as long
|
61
|
-
// as they have focus, the editable should act like it is focused too (although technically
|
62
|
-
// it isn't), e.g. by setting the proper CSS class, visually announcing focus to the user.
|
63
|
-
// Doing otherwise will result in editable focus styles disappearing, once e.g. the
|
64
|
-
// toolbar gets focused.
|
65
|
-
editable.bind('isFocused').to(this.focusTracker);
|
66
|
-
// Bind the editable UI element to the editing view, making it an end– and entry–point
|
67
|
-
// of the editor's engine. This is where the engine meets the UI.
|
68
|
-
editingView.attachDomRoot(editableElement);
|
69
|
-
this._initPlaceholder();
|
70
|
-
this._initToolbar();
|
71
|
-
this.fire('ready');
|
72
|
-
}
|
73
|
-
/**
|
74
|
-
* @inheritDoc
|
75
|
-
*/
|
76
|
-
destroy() {
|
77
|
-
super.destroy();
|
78
|
-
const view = this.view;
|
79
|
-
const editingView = this.editor.editing.view;
|
80
|
-
editingView.detachDomRoot(view.editable.name);
|
81
|
-
view.destroy();
|
82
|
-
}
|
83
|
-
/**
|
84
|
-
* Initializes the inline editor toolbar and its panel.
|
85
|
-
*/
|
86
|
-
_initToolbar() {
|
87
|
-
const editor = this.editor;
|
88
|
-
const view = this.view;
|
89
|
-
const editableElement = view.editable.element;
|
90
|
-
const toolbar = view.toolbar;
|
91
|
-
// Set–up the view#panel.
|
92
|
-
view.panel.bind('isVisible').to(this.focusTracker, 'isFocused');
|
93
|
-
view.bind('viewportTopOffset').to(this, 'viewportOffset', ({ top }) => top || 0);
|
94
|
-
// https://github.com/ckeditor/ckeditor5-editor-inline/issues/4
|
95
|
-
view.listenTo(editor.ui, 'update', () => {
|
96
|
-
// Don't pin if the panel is not already visible. It prevents the panel
|
97
|
-
// showing up when there's no focus in the UI.
|
98
|
-
if (view.panel.isVisible) {
|
99
|
-
view.panel.pin({
|
100
|
-
target: editableElement,
|
101
|
-
positions: view.panelPositions
|
102
|
-
});
|
103
|
-
}
|
104
|
-
});
|
105
|
-
toolbar.fillFromConfig(this._toolbarConfig, this.componentFactory);
|
106
|
-
// Register the toolbar so it becomes available for Alt+F10 and Esc navigation.
|
107
|
-
this.addToolbar(toolbar);
|
108
|
-
}
|
109
|
-
/**
|
110
|
-
* Enable the placeholder text on the editing root.
|
111
|
-
*/
|
112
|
-
_initPlaceholder() {
|
113
|
-
const editor = this.editor;
|
114
|
-
const editingView = editor.editing.view;
|
115
|
-
const editingRoot = editingView.document.getRoot();
|
116
|
-
const placeholder = editor.config.get('placeholder');
|
117
|
-
if (placeholder) {
|
118
|
-
const placeholderText = typeof placeholder === 'string' ? placeholder : placeholder[editingRoot.rootName];
|
119
|
-
if (placeholderText) {
|
120
|
-
editingRoot.placeholder = placeholderText;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
enablePlaceholder({
|
124
|
-
view: editingView,
|
125
|
-
element: editingRoot,
|
126
|
-
isDirectHost: false,
|
127
|
-
keepOnFocus: true
|
128
|
-
});
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
/**
|
133
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
134
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
135
|
-
*/
|
136
|
-
/**
|
137
|
-
* @module editor-inline/inlineeditoruiview
|
138
|
-
*/
|
139
|
-
const toPx = toUnit('px');
|
140
|
-
/**
|
141
|
-
* Inline editor UI view. Uses an nline editable and a floating toolbar.
|
142
|
-
*/
|
143
|
-
class InlineEditorUIView extends EditorUIView {
|
144
|
-
/**
|
145
|
-
* Creates an instance of the inline editor UI view.
|
146
|
-
*
|
147
|
-
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
148
|
-
* @param editingView The editing view instance this view is related to.
|
149
|
-
* @param editableElement The editable element. If not specified, it will be automatically created by
|
150
|
-
* {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used.
|
151
|
-
* @param options Configuration options for the view instance.
|
152
|
-
* @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping
|
153
|
-
* in the main {@link module:editor-inline/inlineeditoruiview~InlineEditorUIView#toolbar toolbar}.
|
154
|
-
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
155
|
-
*/
|
156
|
-
constructor(locale, editingView, editableElement, options = {}) {
|
157
|
-
super(locale);
|
158
|
-
const t = locale.t;
|
159
|
-
this.toolbar = new ToolbarView(locale, {
|
160
|
-
shouldGroupWhenFull: options.shouldToolbarGroupWhenFull,
|
161
|
-
isFloating: true
|
162
|
-
});
|
163
|
-
this.set('viewportTopOffset', 0);
|
164
|
-
this.panel = new BalloonPanelView(locale);
|
165
|
-
this.panelPositions = this._getPanelPositions();
|
166
|
-
this.panel.extendTemplate({
|
167
|
-
attributes: {
|
168
|
-
class: 'ck-toolbar-container'
|
169
|
-
}
|
170
|
-
});
|
171
|
-
this.editable = new InlineEditableUIView(locale, editingView, editableElement, {
|
172
|
-
label: editableView => {
|
173
|
-
return t('Rich Text Editor. Editing area: %0', editableView.name);
|
174
|
-
}
|
175
|
-
});
|
176
|
-
this._resizeObserver = null;
|
177
|
-
}
|
178
|
-
/**
|
179
|
-
* @inheritDoc
|
180
|
-
*/
|
181
|
-
render() {
|
182
|
-
super.render();
|
183
|
-
this.body.add(this.panel);
|
184
|
-
this.registerChild(this.editable);
|
185
|
-
this.panel.content.add(this.toolbar);
|
186
|
-
const options = this.toolbar.options;
|
187
|
-
// Set toolbar's max-width on the initialization and update it on the editable resize,
|
188
|
-
// if 'shouldToolbarGroupWhenFull' in config is set to 'true'.
|
189
|
-
if (options.shouldGroupWhenFull) {
|
190
|
-
const editableElement = this.editable.element;
|
191
|
-
this._resizeObserver = new ResizeObserver(editableElement, () => {
|
192
|
-
this.toolbar.maxWidth = toPx(new Rect(editableElement).width);
|
193
|
-
});
|
194
|
-
}
|
195
|
-
}
|
196
|
-
/**
|
197
|
-
* @inheritDoc
|
198
|
-
*/
|
199
|
-
destroy() {
|
200
|
-
super.destroy();
|
201
|
-
if (this._resizeObserver) {
|
202
|
-
this._resizeObserver.destroy();
|
203
|
-
}
|
204
|
-
}
|
205
|
-
/**
|
206
|
-
* Determines the panel top position of the {@link #panel} in {@link #panelPositions}.
|
207
|
-
*
|
208
|
-
* @param editableRect Rect of the {@link #element}.
|
209
|
-
* @param panelRect Rect of the {@link #panel}.
|
210
|
-
*/
|
211
|
-
_getPanelPositionTop(editableRect, panelRect) {
|
212
|
-
let top;
|
213
|
-
if (editableRect.top > panelRect.height + this.viewportTopOffset) {
|
214
|
-
top = editableRect.top - panelRect.height;
|
215
|
-
}
|
216
|
-
else if (editableRect.bottom > panelRect.height + this.viewportTopOffset + 50) {
|
217
|
-
top = this.viewportTopOffset;
|
218
|
-
}
|
219
|
-
else {
|
220
|
-
top = editableRect.bottom;
|
221
|
-
}
|
222
|
-
return top;
|
223
|
-
}
|
224
|
-
/**
|
225
|
-
* Returns the positions for {@link #panelPositions}.
|
226
|
-
*
|
227
|
-
* See: {@link module:utils/dom/position~Options#positions}.
|
228
|
-
*/
|
229
|
-
_getPanelPositions() {
|
230
|
-
const positions = [
|
231
|
-
(editableRect, panelRect) => {
|
232
|
-
return {
|
233
|
-
top: this._getPanelPositionTop(editableRect, panelRect),
|
234
|
-
left: editableRect.left,
|
235
|
-
name: 'toolbar_west',
|
236
|
-
config: {
|
237
|
-
withArrow: false
|
238
|
-
}
|
239
|
-
};
|
240
|
-
},
|
241
|
-
(editableRect, panelRect) => {
|
242
|
-
return {
|
243
|
-
top: this._getPanelPositionTop(editableRect, panelRect),
|
244
|
-
left: editableRect.left + editableRect.width - panelRect.width,
|
245
|
-
name: 'toolbar_east',
|
246
|
-
config: {
|
247
|
-
withArrow: false
|
248
|
-
}
|
249
|
-
};
|
250
|
-
}
|
251
|
-
];
|
252
|
-
if (this.locale.uiLanguageDirection === 'ltr') {
|
253
|
-
return positions;
|
254
|
-
}
|
255
|
-
else {
|
256
|
-
return positions.reverse();
|
257
|
-
}
|
258
|
-
}
|
259
|
-
}
|
260
|
-
|
261
|
-
/**
|
262
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
263
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
264
|
-
*/
|
265
|
-
/**
|
266
|
-
* @module editor-inline/inlineeditor
|
267
|
-
*/
|
268
|
-
/**
|
269
|
-
* The {@glink installation/getting-started/predefined-builds#inline-editor inline editor} implementation.
|
270
|
-
* It uses an inline editable and a floating toolbar.
|
271
|
-
* See the {@glink examples/builds/inline-editor demo}.
|
272
|
-
*
|
273
|
-
* In order to create a inline editor instance, use the static
|
274
|
-
* {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} method.
|
275
|
-
*
|
276
|
-
* # Inline editor and inline build
|
277
|
-
*
|
278
|
-
* The inline editor can be used directly from source (if you installed the
|
279
|
-
* [`@ckeditor/ckeditor5-editor-inline/dist/index.js`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-inline/dist/index.js) package)
|
280
|
-
* but it is also available in the {@glink installation/getting-started/predefined-builds#inline-editor inline build}.
|
281
|
-
*
|
282
|
-
* {@glink installation/getting-started/predefined-builds Builds}
|
283
|
-
* are ready-to-use editors with plugins bundled in. When using the editor from
|
284
|
-
* source you need to take care of loading all plugins by yourself
|
285
|
-
* (through the {@link module:core/editor/editorconfig~EditorConfig#plugins `config.plugins`} option).
|
286
|
-
* Using the editor from source gives much better flexibility and allows easier customization.
|
287
|
-
*
|
288
|
-
* Read more about initializing the editor from source or as a build in
|
289
|
-
* {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.
|
290
|
-
*/
|
291
|
-
class InlineEditor extends ElementApiMixin(Editor) {
|
292
|
-
/**
|
293
|
-
* Creates an instance of the inline editor.
|
294
|
-
*
|
295
|
-
* **Note:** Do not use the constructor to create editor instances. Use the static
|
296
|
-
* {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} method instead.
|
297
|
-
*
|
298
|
-
* @param sourceElementOrData The DOM element that will be the source for the created editor
|
299
|
-
* (on which the editor will be initialized) or initial data for the editor. For more information see
|
300
|
-
* {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.
|
301
|
-
* @param config The editor configuration.
|
302
|
-
*/
|
303
|
-
constructor(sourceElementOrData, config = {}) {
|
304
|
-
// If both `config.initialData` and initial data parameter in `create()` are set, then throw.
|
305
|
-
if (!isElement(sourceElementOrData) && config.initialData !== undefined) {
|
306
|
-
// Documented in core/editor/editorconfig.jsdoc.
|
307
|
-
// eslint-disable-next-line ckeditor5-rules/ckeditor-error-message
|
308
|
-
throw new CKEditorError('editor-create-initial-data', null);
|
309
|
-
}
|
310
|
-
super(config);
|
311
|
-
if (this.config.get('initialData') === undefined) {
|
312
|
-
this.config.set('initialData', getInitialData(sourceElementOrData));
|
313
|
-
}
|
314
|
-
this.model.document.createRoot();
|
315
|
-
if (isElement(sourceElementOrData)) {
|
316
|
-
this.sourceElement = sourceElementOrData;
|
317
|
-
secureSourceElement(this, sourceElementOrData);
|
318
|
-
}
|
319
|
-
const shouldToolbarGroupWhenFull = !this.config.get('toolbar.shouldNotGroupWhenFull');
|
320
|
-
const view = new InlineEditorUIView(this.locale, this.editing.view, this.sourceElement, {
|
321
|
-
shouldToolbarGroupWhenFull
|
322
|
-
});
|
323
|
-
this.ui = new InlineEditorUI(this, view);
|
324
|
-
attachToForm(this);
|
325
|
-
}
|
326
|
-
/**
|
327
|
-
* Destroys the editor instance, releasing all resources used by it.
|
328
|
-
*
|
329
|
-
* Updates the original editor element with the data if the
|
330
|
-
* {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
|
331
|
-
* configuration option is set to `true`.
|
332
|
-
*/
|
333
|
-
destroy() {
|
334
|
-
// Cache the data, then destroy.
|
335
|
-
// It's safe to assume that the model->view conversion will not work after super.destroy().
|
336
|
-
const data = this.getData();
|
337
|
-
this.ui.destroy();
|
338
|
-
return super.destroy()
|
339
|
-
.then(() => {
|
340
|
-
if (this.sourceElement) {
|
341
|
-
this.updateSourceElement(data);
|
342
|
-
}
|
343
|
-
});
|
344
|
-
}
|
345
|
-
/**
|
346
|
-
* Creates a new inline editor instance.
|
347
|
-
*
|
348
|
-
* There are three general ways how the editor can be initialized.
|
349
|
-
*
|
350
|
-
* # Using an existing DOM element (and loading data from it)
|
351
|
-
*
|
352
|
-
* You can initialize the editor using an existing DOM element:
|
353
|
-
*
|
354
|
-
* ```ts
|
355
|
-
* InlineEditor
|
356
|
-
* .create( document.querySelector( '#editor' ) )
|
357
|
-
* .then( editor => {
|
358
|
-
* console.log( 'Editor was initialized', editor );
|
359
|
-
* } )
|
360
|
-
* .catch( err => {
|
361
|
-
* console.error( err.stack );
|
362
|
-
* } );
|
363
|
-
* ```
|
364
|
-
*
|
365
|
-
* The element's content will be used as the editor data and the element will become the editable element.
|
366
|
-
*
|
367
|
-
* # Creating a detached editor
|
368
|
-
*
|
369
|
-
* Alternatively, you can initialize the editor by passing the initial data directly as a `String`.
|
370
|
-
* In this case, the editor will render an element that must be inserted into the DOM for the editor to work properly:
|
371
|
-
*
|
372
|
-
* ```ts
|
373
|
-
* InlineEditor
|
374
|
-
* .create( '<p>Hello world!</p>' )
|
375
|
-
* .then( editor => {
|
376
|
-
* console.log( 'Editor was initialized', editor );
|
377
|
-
*
|
378
|
-
* // Initial data was provided so the editor UI element needs to be added manually to the DOM.
|
379
|
-
* document.body.appendChild( editor.ui.element );
|
380
|
-
* } )
|
381
|
-
* .catch( err => {
|
382
|
-
* console.error( err.stack );
|
383
|
-
* } );
|
384
|
-
* ```
|
385
|
-
*
|
386
|
-
* This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
|
387
|
-
* web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
|
388
|
-
*
|
389
|
-
* # Using an existing DOM element (and data provided in `config.initialData`)
|
390
|
-
*
|
391
|
-
* You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
|
392
|
-
*
|
393
|
-
* ```ts
|
394
|
-
* InlineEditor
|
395
|
-
* .create( document.querySelector( '#editor' ), {
|
396
|
-
* initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
|
397
|
-
* } )
|
398
|
-
* .then( editor => {
|
399
|
-
* console.log( 'Editor was initialized', editor );
|
400
|
-
* } )
|
401
|
-
* .catch( err => {
|
402
|
-
* console.error( err.stack );
|
403
|
-
* } );
|
404
|
-
* ```
|
405
|
-
*
|
406
|
-
* This method can be used to initialize the editor on an existing element with the specified content in case if your integration
|
407
|
-
* makes it difficult to set the content of the source element.
|
408
|
-
*
|
409
|
-
* Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
|
410
|
-
*
|
411
|
-
* # Configuring the editor
|
412
|
-
*
|
413
|
-
* See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
|
414
|
-
* customizing plugins, toolbar and more.
|
415
|
-
*
|
416
|
-
* # Using the editor from source
|
417
|
-
*
|
418
|
-
* The code samples listed in the previous sections of this documentation assume that you are using an
|
419
|
-
* {@glink installation/getting-started/predefined-builds editor build} (for example – `@ckeditor/ckeditor5-build-inline/dist/index.js`).
|
420
|
-
*
|
421
|
-
* If you want to use the inline editor from source (`@ckeditor/ckeditor5-editor-inline/dist/index.js`),
|
422
|
-
* you need to define the list of
|
423
|
-
* {@link module:core/editor/editorconfig~EditorConfig#plugins plugins to be initialized} and
|
424
|
-
* {@link module:core/editor/editorconfig~EditorConfig#toolbar toolbar items}. Read more about using the editor from
|
425
|
-
* source in the {@glink installation/advanced/alternative-setups/integrating-from-source-webpack dedicated guide}.
|
426
|
-
*
|
427
|
-
* @param sourceElementOrData The DOM element that will be the source for the created editor
|
428
|
-
* or the editor's initial data.
|
429
|
-
*
|
430
|
-
* If a DOM element is passed, its content will be automatically loaded to the editor upon initialization.
|
431
|
-
* The editor data will be set back to the original element once the editor is destroyed only if the
|
432
|
-
* {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
|
433
|
-
* option is set to `true`.
|
434
|
-
*
|
435
|
-
* If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
|
436
|
-
* It is available under the {@link module:editor-inline/inlineeditorui~InlineEditorUI#element `editor.ui.element`} property.
|
437
|
-
*
|
438
|
-
* @param config The editor configuration.
|
439
|
-
* @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
|
440
|
-
*/
|
441
|
-
static create(sourceElementOrData, config = {}) {
|
442
|
-
return new Promise(resolve => {
|
443
|
-
if (isElement(sourceElementOrData) && sourceElementOrData.tagName === 'TEXTAREA') {
|
444
|
-
// Documented in core/editor/editor.js
|
445
|
-
// eslint-disable-next-line ckeditor5-rules/ckeditor-error-message
|
446
|
-
throw new CKEditorError('editor-wrong-element', null);
|
447
|
-
}
|
448
|
-
const editor = new this(sourceElementOrData, config);
|
449
|
-
resolve(editor.initPlugins()
|
450
|
-
.then(() => editor.ui.init())
|
451
|
-
.then(() => editor.data.init(editor.config.get('initialData')))
|
452
|
-
.then(() => editor.fire('ready'))
|
453
|
-
.then(() => editor));
|
454
|
-
});
|
455
|
-
}
|
456
|
-
}
|
457
|
-
/**
|
458
|
-
* The {@link module:core/context~Context} class.
|
459
|
-
*
|
460
|
-
* Exposed as static editor field for easier access in editor builds.
|
461
|
-
*/
|
462
|
-
InlineEditor.Context = Context;
|
463
|
-
/**
|
464
|
-
* The {@link module:watchdog/editorwatchdog~EditorWatchdog} class.
|
465
|
-
*
|
466
|
-
* Exposed as static editor field for easier access in editor builds.
|
467
|
-
*/
|
468
|
-
InlineEditor.EditorWatchdog = EditorWatchdog;
|
469
|
-
/**
|
470
|
-
* The {@link module:watchdog/contextwatchdog~ContextWatchdog} class.
|
471
|
-
*
|
472
|
-
* Exposed as static editor field for easier access in editor builds.
|
473
|
-
*/
|
474
|
-
InlineEditor.ContextWatchdog = ContextWatchdog;
|
475
|
-
function getInitialData(sourceElementOrData) {
|
476
|
-
return isElement(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;
|
477
|
-
}
|
478
|
-
function isElement(value) {
|
479
|
-
return isElement$1(value);
|
480
|
-
}
|
481
|
-
|
482
|
-
export { InlineEditor };
|
483
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["index.js","../src/inlineeditorui.ts","../src/inlineeditoruiview.ts","../src/inlineeditor.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,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC1H,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC7F,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,sBAAsB,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC3J,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAA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CAAA,eAAA,CAAG,CAAA,CAAA,eAAe,CAAC;AAGjD,QAAS,CAAA,cAAc,CAAE,mBAAyC,CAAA,CAAA,CAAA;AACjE,CAAA,CAAA,CAAA,CAAA,MAAO,CAAA,SAAS,CAAE,mBAAmB,CAAE,CAAA,CAAA,CAAG,kBAAkB,CAAE,mBAAmB,CAAE,CAAG,CAAA,CAAA,mBAAmB,CAAC;AAC3G,CAAC;AAED,QAAS,CAAA,SAAS,CAAE,KAAU,CAAA,CAAA,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,MAAOA,CAAAA,SAAAA,CAAAA,CAAU,CAAE,KAAK,CAAE,CAAC;AAC5B,CAAA;AHoNA;AACA,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;AACxB,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 { toUnit, ResizeObserver, Rect, CKEditorError, getDataFromElement } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { EditorWatchdog, ContextWatchdog } from '@ckeditor/ckeditor5-watchdog/dist/index.js';\nimport { EditorUI, normalizeToolbarConfig, EditorUIView, ToolbarView, BalloonPanelView, InlineEditableUIView } from '@ckeditor/ckeditor5-ui/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 inline editor UI class.\n *\n * @extends module:ui/editorui/editorui~EditorUI\n */\nclass InlineEditorUI extends EditorUI {\n /**\n * Creates an instance of the inline 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 this._toolbarConfig = normalizeToolbarConfig(editor.config.get('toolbar'));\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 InlineEditor.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 inline 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._initToolbar();\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 * Initializes the inline editor toolbar and its panel.\n */\n _initToolbar() {\n const editor = this.editor;\n const view = this.view;\n const editableElement = view.editable.element;\n const toolbar = view.toolbar;\n // Set–up the view#panel.\n view.panel.bind('isVisible').to(this.focusTracker, 'isFocused');\n view.bind('viewportTopOffset').to(this, 'viewportOffset', ({ top }) => top || 0);\n // https://github.com/ckeditor/ckeditor5-editor-inline/issues/4\n view.listenTo(editor.ui, 'update', () => {\n // Don't pin if the panel is not already visible. It prevents the panel\n // showing up when there's no focus in the UI.\n if (view.panel.isVisible) {\n view.panel.pin({\n target: editableElement,\n positions: view.panelPositions\n });\n }\n });\n toolbar.fillFromConfig(this._toolbarConfig, this.componentFactory);\n // Register the toolbar so it becomes available for Alt+F10 and Esc navigation.\n this.addToolbar(toolbar);\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-inline/inlineeditoruiview\n */\nconst toPx = toUnit('px');\n/**\n * Inline editor UI view. Uses an nline editable and a floating toolbar.\n */\nclass InlineEditorUIView extends EditorUIView {\n /**\n * Creates an instance of the inline 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 * @param options Configuration options for the view instance.\n * @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping\n * in the main {@link module:editor-inline/inlineeditoruiview~InlineEditorUIView#toolbar toolbar}.\n * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.\n */\n constructor(locale, editingView, editableElement, options = {}) {\n super(locale);\n const t = locale.t;\n this.toolbar = new ToolbarView(locale, {\n shouldGroupWhenFull: options.shouldToolbarGroupWhenFull,\n isFloating: true\n });\n this.set('viewportTopOffset', 0);\n this.panel = new BalloonPanelView(locale);\n this.panelPositions = this._getPanelPositions();\n this.panel.extendTemplate({\n attributes: {\n class: 'ck-toolbar-container'\n }\n });\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 this._resizeObserver = null;\n }\n /**\n * @inheritDoc\n */\n render() {\n super.render();\n this.body.add(this.panel);\n this.registerChild(this.editable);\n this.panel.content.add(this.toolbar);\n const options = this.toolbar.options;\n // Set toolbar's max-width on the initialization and update it on the editable resize,\n // if 'shouldToolbarGroupWhenFull' in config is set to 'true'.\n if (options.shouldGroupWhenFull) {\n const editableElement = this.editable.element;\n this._resizeObserver = new ResizeObserver(editableElement, () => {\n this.toolbar.maxWidth = toPx(new Rect(editableElement).width);\n });\n }\n }\n /**\n * @inheritDoc\n */\n destroy() {\n super.destroy();\n if (this._resizeObserver) {\n this._resizeObserver.destroy();\n }\n }\n /**\n * Determines the panel top position of the {@link #panel} in {@link #panelPositions}.\n *\n * @param editableRect Rect of the {@link #element}.\n * @param panelRect Rect of the {@link #panel}.\n */\n _getPanelPositionTop(editableRect, panelRect) {\n let top;\n if (editableRect.top > panelRect.height + this.viewportTopOffset) {\n top = editableRect.top - panelRect.height;\n }\n else if (editableRect.bottom > panelRect.height + this.viewportTopOffset + 50) {\n top = this.viewportTopOffset;\n }\n else {\n top = editableRect.bottom;\n }\n return top;\n }\n /**\n * Returns the positions for {@link #panelPositions}.\n *\n * See: {@link module:utils/dom/position~Options#positions}.\n */\n _getPanelPositions() {\n const positions = [\n (editableRect, panelRect) => {\n return {\n top: this._getPanelPositionTop(editableRect, panelRect),\n left: editableRect.left,\n name: 'toolbar_west',\n config: {\n withArrow: false\n }\n };\n },\n (editableRect, panelRect) => {\n return {\n top: this._getPanelPositionTop(editableRect, panelRect),\n left: editableRect.left + editableRect.width - panelRect.width,\n name: 'toolbar_east',\n config: {\n withArrow: false\n }\n };\n }\n ];\n if (this.locale.uiLanguageDirection === 'ltr') {\n return positions;\n }\n else {\n return positions.reverse();\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-inline/inlineeditor\n */\n/**\n * The {@glink installation/getting-started/predefined-builds#inline-editor inline editor} implementation.\n * It uses an inline editable and a floating toolbar.\n * See the {@glink examples/builds/inline-editor demo}.\n *\n * In order to create a inline editor instance, use the static\n * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} method.\n *\n * # Inline editor and inline build\n *\n * The inline editor can be used directly from source (if you installed the\n * [`@ckeditor/ckeditor5-editor-inline/dist/index.js`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-inline/dist/index.js) package)\n * but it is also available in the {@glink installation/getting-started/predefined-builds#inline-editor inline 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-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.\n */\nclass InlineEditor extends ElementApiMixin(Editor) {\n /**\n * Creates an instance of the inline editor.\n *\n * **Note:** Do not use the constructor to create editor instances. Use the static\n * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.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-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.\n * @param config The editor configuration.\n */\n constructor(sourceElementOrData, config = {}) {\n // If both `config.initialData` and initial data parameter in `create()` are set, 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 this.model.document.createRoot();\n if (isElement(sourceElementOrData)) {\n this.sourceElement = sourceElementOrData;\n secureSourceElement(this, sourceElementOrData);\n }\n const shouldToolbarGroupWhenFull = !this.config.get('toolbar.shouldNotGroupWhenFull');\n const view = new InlineEditorUIView(this.locale, this.editing.view, this.sourceElement, {\n shouldToolbarGroupWhenFull\n });\n this.ui = new InlineEditorUI(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 inline 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 * InlineEditor\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 * InlineEditor\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 * InlineEditor\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-inline/dist/index.js`).\n *\n * If you want to use the inline editor from source (`@ckeditor/ckeditor5-editor-inline/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-inline/inlineeditorui~InlineEditorUI#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 */\nInlineEditor.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 */\nInlineEditor.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 */\nInlineEditor.ContextWatchdog = ContextWatchdog;\nfunction getInitialData(sourceElementOrData) {\n return isElement(sourceElementOrData) ? getDataFromElement(sourceElementOrData) : sourceElementOrData;\n}\nfunction isElement(value) {\n return isElement$1(value);\n}\n\nexport { InlineEditor };\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-inline/inlineeditorui\n */\n\nimport {\n\ttype Editor\n} from 'ckeditor5/src/core.js';\n\nimport {\n\tEditorUI,\n\tnormalizeToolbarConfig,\n\ttype EditorUIReadyEvent,\n\ttype EditorUIUpdateEvent\n} from 'ckeditor5/src/ui.js';\n\nimport { enablePlaceholder } from 'ckeditor5/src/engine.js';\n\nimport type InlineEditorUIView from './inlineeditoruiview.js';\n\n/**\n * The inline editor UI class.\n *\n * @extends module:ui/editorui/editorui~EditorUI\n */\nexport default class InlineEditorUI extends EditorUI {\n\t/**\n\t * The main (top–most) view of the editor UI.\n\t */\n\tpublic readonly view: InlineEditorUIView;\n\n\t/**\n\t * A normalized `config.toolbar` object.\n\t */\n\tprivate readonly _toolbarConfig: ReturnType<typeof normalizeToolbarConfig>;\n\n\t/**\n\t * Creates an instance of the inline 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: InlineEditorUIView ) {\n\t\tsuper( editor );\n\n\t\tthis.view = view;\n\t\tthis._toolbarConfig = normalizeToolbarConfig( editor.config.get( 'toolbar' ) );\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 InlineEditor.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 inline 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._initToolbar();\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 * Initializes the inline editor toolbar and its panel.\n\t */\n\tprivate _initToolbar(): void {\n\t\tconst editor = this.editor;\n\t\tconst view = this.view;\n\t\tconst editableElement = view.editable.element!;\n\t\tconst toolbar = view.toolbar;\n\n\t\t// Set–up the view#panel.\n\t\tview.panel.bind( 'isVisible' ).to( this.focusTracker, 'isFocused' );\n\n\t\tview.bind( 'viewportTopOffset' ).to( this, 'viewportOffset', ( { top } ) => top || 0 );\n\n\t\t// https://github.com/ckeditor/ckeditor5-editor-inline/issues/4\n\t\tview.listenTo<EditorUIUpdateEvent>( editor.ui, 'update', () => {\n\t\t\t// Don't pin if the panel is not already visible. It prevents the panel\n\t\t\t// showing up when there's no focus in the UI.\n\t\t\tif ( view.panel.isVisible ) {\n\t\t\t\tview.panel.pin( {\n\t\t\t\t\ttarget: editableElement,\n\t\t\t\t\tpositions: view.panelPositions\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\n\t\ttoolbar.fillFromConfig( this._toolbarConfig, this.componentFactory );\n\n\t\t// Register the toolbar so it becomes available for Alt+F10 and Esc navigation.\n\t\tthis.addToolbar( toolbar );\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-inline/inlineeditoruiview\n */\n\nimport {\n\tBalloonPanelView,\n\tEditorUIView,\n\tInlineEditableUIView,\n\tToolbarView\n} from 'ckeditor5/src/ui.js';\nimport {\n\tRect,\n\tResizeObserver,\n\ttoUnit,\n\ttype PositioningFunction,\n\ttype Locale\n} from 'ckeditor5/src/utils.js';\nimport type { EditingView } from 'ckeditor5/src/engine.js';\n\nconst toPx = toUnit( 'px' );\n\n/**\n * Inline editor UI view. Uses an nline editable and a floating toolbar.\n */\nexport default class InlineEditorUIView extends EditorUIView {\n\t/**\n\t * A floating toolbar view instance.\n\t */\n\tpublic readonly toolbar: ToolbarView;\n\n\t/**\n\t * The offset from the top edge of the web browser's viewport which makes the\n\t * UI become sticky. The default value is `0`, which means that the UI becomes\n\t * sticky when its upper edge touches the top of the page viewport.\n\t *\n\t * This attribute is useful when the web page has UI elements positioned to the top\n\t * either using `position: fixed` or `position: sticky`, which would cover the\n\t * UI or vice–versa (depending on the `z-index` hierarchy).\n\t *\n\t * Bound to {@link module:ui/editorui/editorui~EditorUI#viewportOffset `EditorUI#viewportOffset`}.\n\t *\n\t * If {@link module:core/editor/editorconfig~EditorConfig#ui `EditorConfig#ui.viewportOffset.top`} is defined, then\n\t * it will override the default value.\n\t *\n\t * @observable\n\t * @default 0\n\t */\n\tdeclare public viewportTopOffset: number;\n\n\t/**\n\t * A balloon panel view instance.\n\t */\n\tpublic readonly panel: BalloonPanelView;\n\n\t/**\n\t * A set of positioning functions used by the {@link #panel} to float around\n\t * {@link #element editableElement}.\n\t *\n\t * The positioning functions are as follows:\n\t *\n\t * * West:\n\t *\n\t * ```\n\t * [ Panel ]\n\t * +------------------+\n\t * | #editableElement |\n\t * +------------------+\n\t *\n\t * +------------------+\n\t * | #editableElement |\n\t * |[ Panel ] |\n\t * | |\n\t * +------------------+\n\t *\n\t * +------------------+\n\t * | #editableElement |\n\t * +------------------+\n\t * [ Panel ]\n\t * ```\n\t *\n\t * * East:\n\t *\n\t * ```\n\t * [ Panel ]\n\t * +------------------+\n\t * | #editableElement |\n\t * +------------------+\n\t *\n\t * +------------------+\n\t * | #editableElement |\n\t * | [ Panel ]|\n\t * | |\n\t * +------------------+\n\t *\n\t * +------------------+\n\t * | #editableElement |\n\t * +------------------+\n\t * [ Panel ]\n\t * ```\n\t *\n\t * See: {@link module:utils/dom/position~Options#positions}.\n\t */\n\tpublic readonly panelPositions: Array<PositioningFunction>;\n\n\t/**\n\t * Editable UI view.\n\t */\n\tpublic readonly editable: InlineEditableUIView;\n\n\t/**\n\t * An instance of the resize observer that helps dynamically determine the geometry of the toolbar\n\t * and manage items that do not fit into a single row.\n\t *\n\t * **Note:** Created in {@link #render}.\n\t */\n\tprivate _resizeObserver: ResizeObserver | null;\n\n\t/**\n\t * Creates an instance of the inline 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 * @param options Configuration options for the view instance.\n\t * @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping\n\t * in the main {@link module:editor-inline/inlineeditoruiview~InlineEditorUIView#toolbar toolbar}.\n\t * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.\n\t */\n\tconstructor(\n\t\tlocale: Locale,\n\t\teditingView: EditingView,\n\t\teditableElement?: HTMLElement,\n\t\toptions: {\n\t\t\tshouldToolbarGroupWhenFull?: boolean;\n\t\t} = {}\n\t) {\n\t\tsuper( locale );\n\n\t\tconst t = locale.t;\n\n\t\tthis.toolbar = new ToolbarView( locale, {\n\t\t\tshouldGroupWhenFull: options.shouldToolbarGroupWhenFull,\n\t\t\tisFloating: true\n\t\t} );\n\n\t\tthis.set( 'viewportTopOffset', 0 );\n\n\t\tthis.panel = new BalloonPanelView( locale );\n\t\tthis.panelPositions = this._getPanelPositions();\n\n\t\tthis.panel.extendTemplate( {\n\t\t\tattributes: {\n\t\t\t\tclass: 'ck-toolbar-container'\n\t\t\t}\n\t\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\n\t\tthis._resizeObserver = null;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis.body.add( this.panel );\n\t\tthis.registerChild( this.editable );\n\t\tthis.panel.content.add( this.toolbar );\n\n\t\tconst options = this.toolbar.options;\n\n\t\t// Set toolbar's max-width on the initialization and update it on the editable resize,\n\t\t// if 'shouldToolbarGroupWhenFull' in config is set to 'true'.\n\t\tif ( options.shouldGroupWhenFull ) {\n\t\t\tconst editableElement = this.editable.element!;\n\n\t\t\tthis._resizeObserver = new ResizeObserver( editableElement, () => {\n\t\t\t\tthis.toolbar.maxWidth = toPx( new Rect( editableElement ).width );\n\t\t\t} );\n\t\t}\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tif ( this._resizeObserver ) {\n\t\t\tthis._resizeObserver.destroy();\n\t\t}\n\t}\n\n\t/**\n\t * Determines the panel top position of the {@link #panel} in {@link #panelPositions}.\n\t *\n\t * @param editableRect Rect of the {@link #element}.\n\t * @param panelRect Rect of the {@link #panel}.\n\t */\n\tprivate _getPanelPositionTop( editableRect: Rect, panelRect: Rect ): number {\n\t\tlet top;\n\n\t\tif ( editableRect.top > panelRect.height + this.viewportTopOffset ) {\n\t\t\ttop = editableRect.top - panelRect.height;\n\t\t} else if ( editableRect.bottom > panelRect.height + this.viewportTopOffset + 50 ) {\n\t\t\ttop = this.viewportTopOffset;\n\t\t} else {\n\t\t\ttop = editableRect.bottom;\n\t\t}\n\n\t\treturn top;\n\t}\n\n\t/**\n\t * Returns the positions for {@link #panelPositions}.\n\t *\n\t * See: {@link module:utils/dom/position~Options#positions}.\n\t */\n\tprivate _getPanelPositions(): Array<PositioningFunction> {\n\t\tconst positions: Array<PositioningFunction> = [\n\t\t\t( editableRect, panelRect ) => {\n\t\t\t\treturn {\n\t\t\t\t\ttop: this._getPanelPositionTop( editableRect, panelRect ),\n\t\t\t\t\tleft: editableRect.left,\n\t\t\t\t\tname: 'toolbar_west',\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\twithArrow: false\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t},\n\t\t\t( editableRect, panelRect ) => {\n\t\t\t\treturn {\n\t\t\t\t\ttop: this._getPanelPositionTop( editableRect, panelRect ),\n\t\t\t\t\tleft: editableRect.left + editableRect.width - panelRect.width,\n\t\t\t\t\tname: 'toolbar_east',\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\twithArrow: false\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t];\n\n\t\tif ( this.locale.uiLanguageDirection === 'ltr' ) {\n\t\t\treturn positions;\n\t\t} else {\n\t\t\treturn positions.reverse();\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-inline/inlineeditor\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';\nimport { getDataFromElement, CKEditorError } from 'ckeditor5/src/utils.js';\n\nimport { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';\n\nimport InlineEditorUI from './inlineeditorui.js';\nimport InlineEditorUIView from './inlineeditoruiview.js';\n\nimport { isElement as _isElement } from 'lodash-es';\n\n/**\n * The {@glink installation/getting-started/predefined-builds#inline-editor inline editor} implementation.\n * It uses an inline editable and a floating toolbar.\n * See the {@glink examples/builds/inline-editor demo}.\n *\n * In order to create a inline editor instance, use the static\n * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`} method.\n *\n * # Inline editor and inline build\n *\n * The inline editor can be used directly from source (if you installed the\n * [`@ckeditor/ckeditor5-editor-inline`](https://www.npmjs.com/package/@ckeditor/ckeditor5-editor-inline) package)\n * but it is also available in the {@glink installation/getting-started/predefined-builds#inline-editor inline 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-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.\n */\nexport default class InlineEditor extends ElementApiMixin( Editor ) {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic readonly ui: InlineEditorUI;\n\n\t/**\n\t * Creates an instance of the inline editor.\n\t *\n\t * **Note:** Do not use the constructor to create editor instances. Use the static\n\t * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.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-inline/inlineeditor~InlineEditor.create `InlineEditor.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` and initial data parameter in `create()` are set, 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\tthis.model.document.createRoot();\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 shouldToolbarGroupWhenFull = !this.config.get( 'toolbar.shouldNotGroupWhenFull' );\n\n\t\tconst view = new InlineEditorUIView( this.locale, this.editing.view, this.sourceElement, {\n\t\t\tshouldToolbarGroupWhenFull\n\t\t} );\n\t\tthis.ui = new InlineEditorUI( 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 inline 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 * InlineEditor\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 * InlineEditor\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 * InlineEditor\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-inline`).\n\t *\n\t * If you want to use the inline editor from source (`@ckeditor/ckeditor5-editor-inline/src/inlineeditor`),\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-inline/inlineeditorui~InlineEditorUI#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<InlineEditor> {\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"]}
|