@ckeditor/ckeditor5-html-embed 36.0.0 → 37.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module html-embed/htmlembedediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import '../theme/htmlembed.css';
10
+ /**
11
+ * The HTML embed editing feature.
12
+ */
13
+ export default class HtmlEmbedEditing extends Plugin {
14
+ /**
15
+ * Keeps references to {@link module:ui/button/buttonview~ButtonView edit, save, and cancel} button instances created for
16
+ * each widget so they can be destroyed if they are no longer in DOM after the editing view was re-rendered.
17
+ */
18
+ private _widgetButtonViewReferences;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName(): 'HtmlEmbedEditing';
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ constructor(editor: Editor);
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ init(): void;
31
+ /**
32
+ * Prepares converters for the feature.
33
+ */
34
+ private _setupConversion;
35
+ }
36
+ export interface RawHtmlApi {
37
+ makeEditable(): void;
38
+ save(newValue: string): void;
39
+ cancel(): void;
40
+ }
41
+ declare module '@ckeditor/ckeditor5-core' {
42
+ interface PLuginsMap {
43
+ [HtmlEmbedEditing.pluginName]: HtmlEmbedEditing;
44
+ }
45
+ }