ckeditor5-editor-classic-floating 47.5.2 → 47.5.5
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.
- package/dist/classiceditor.d.ts +138 -0
- package/dist/classiceditorui.d.ts +86 -0
- package/dist/classiceditoruiview.d.ts +58 -0
- package/{src/augmentation.js → dist/index-content.css} +1 -2
- package/dist/index-editor.css +22 -0
- package/dist/index.css +38 -0
- package/dist/index.css.map +1 -0
- package/{src/augmentation.d.ts → dist/index.d.ts} +8 -0
- package/dist/index.js +735 -0
- package/dist/index.js.map +1 -0
- package/dist/stickypanelview.d.ts +169 -0
- package/package.json +1 -1
- package/src/classiceditor.d.ts +2 -2
- package/src/index.d.ts +6 -1
- package/src/index.js +0 -4
- package/src/index.ts +7 -2
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module editor-classic/classiceditor
|
|
11
|
+
*/
|
|
12
|
+
import ClassicEditorUI from './classiceditorui.js';
|
|
13
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
|
|
14
|
+
declare const ClassicEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").ElementApi>;
|
|
15
|
+
/**
|
|
16
|
+
* The classic editor implementation. It uses an inline editable and a sticky toolbar, all enclosed in a boxed UI.
|
|
17
|
+
* See the {@glink examples/builds/classic-editor demo}.
|
|
18
|
+
*
|
|
19
|
+
* In order to create a classic editor instance, use the static
|
|
20
|
+
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method.
|
|
21
|
+
*/
|
|
22
|
+
export default class ClassicEditor extends /* #__PURE__ */ ClassicEditor_base {
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
readonly ui: ClassicEditorUI;
|
|
27
|
+
/**
|
|
28
|
+
* Creates an instance of the classic editor.
|
|
29
|
+
*
|
|
30
|
+
* **Note:** do not use the constructor to create editor instances. Use the static
|
|
31
|
+
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`} method instead.
|
|
32
|
+
*
|
|
33
|
+
* @param sourceElementOrData The DOM element that will be the source for the created editor
|
|
34
|
+
* or the editor's initial data. For more information see
|
|
35
|
+
* {@link module:editor-classic/classiceditor~ClassicEditor.create `ClassicEditor.create()`}.
|
|
36
|
+
* @param config The editor configuration.
|
|
37
|
+
*/
|
|
38
|
+
protected constructor(sourceElementOrData: HTMLElement | string, config?: EditorConfig);
|
|
39
|
+
/**
|
|
40
|
+
* Destroys the editor instance, releasing all resources used by it.
|
|
41
|
+
*
|
|
42
|
+
* Updates the original editor element with the data if the
|
|
43
|
+
* {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
|
|
44
|
+
* configuration option is set to `true`.
|
|
45
|
+
*/
|
|
46
|
+
destroy(): Promise<unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new classic editor instance.
|
|
49
|
+
*
|
|
50
|
+
* There are three ways how the editor can be initialized.
|
|
51
|
+
*
|
|
52
|
+
* # Replacing a DOM element (and loading data from it)
|
|
53
|
+
*
|
|
54
|
+
* You can initialize the editor using an existing DOM element:
|
|
55
|
+
*
|
|
56
|
+
* ```ts
|
|
57
|
+
* ClassicEditor
|
|
58
|
+
* .create( document.querySelector( '#editor' ) )
|
|
59
|
+
* .then( editor => {
|
|
60
|
+
* console.log( 'Editor was initialized', editor );
|
|
61
|
+
* } )
|
|
62
|
+
* .catch( err => {
|
|
63
|
+
* console.error( err.stack );
|
|
64
|
+
* } );
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* The element's content will be used as the editor data and the element will be replaced by the editor UI.
|
|
68
|
+
*
|
|
69
|
+
* # Creating a detached editor
|
|
70
|
+
*
|
|
71
|
+
* Alternatively, you can initialize the editor by passing the initial data directly as a string.
|
|
72
|
+
* In this case, the editor will render an element that must be inserted into the DOM:
|
|
73
|
+
*
|
|
74
|
+
* ```ts
|
|
75
|
+
* ClassicEditor
|
|
76
|
+
* .create( '<p>Hello world!</p>' )
|
|
77
|
+
* .then( editor => {
|
|
78
|
+
* console.log( 'Editor was initialized', editor );
|
|
79
|
+
*
|
|
80
|
+
* // Initial data was provided so the editor UI element needs to be added manually to the DOM.
|
|
81
|
+
* document.body.appendChild( editor.ui.element );
|
|
82
|
+
* } )
|
|
83
|
+
* .catch( err => {
|
|
84
|
+
* console.error( err.stack );
|
|
85
|
+
* } );
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* This lets you dynamically append the editor to your web page whenever it is convenient for you. You may use this method if your
|
|
89
|
+
* web page content is generated on the client side and the DOM structure is not ready at the moment when you initialize the editor.
|
|
90
|
+
*
|
|
91
|
+
* # Replacing a DOM element (and data provided in `config.initialData`)
|
|
92
|
+
*
|
|
93
|
+
* You can also mix these two ways by providing a DOM element to be used and passing the initial data through the configuration:
|
|
94
|
+
*
|
|
95
|
+
* ```ts
|
|
96
|
+
* ClassicEditor
|
|
97
|
+
* .create( document.querySelector( '#editor' ), {
|
|
98
|
+
* initialData: '<h2>Initial data</h2><p>Foo bar.</p>'
|
|
99
|
+
* } )
|
|
100
|
+
* .then( editor => {
|
|
101
|
+
* console.log( 'Editor was initialized', editor );
|
|
102
|
+
* } )
|
|
103
|
+
* .catch( err => {
|
|
104
|
+
* console.error( err.stack );
|
|
105
|
+
* } );
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* This method can be used to initialize the editor on an existing element with the specified content in case if your integration
|
|
109
|
+
* makes it difficult to set the content of the source element.
|
|
110
|
+
*
|
|
111
|
+
* Note that an error will be thrown if you pass the initial data both as the first parameter and also in the configuration.
|
|
112
|
+
*
|
|
113
|
+
* # Configuring the editor
|
|
114
|
+
*
|
|
115
|
+
* See the {@link module:core/editor/editorconfig~EditorConfig editor configuration documentation} to learn more about
|
|
116
|
+
* customizing plugins, toolbar and more.
|
|
117
|
+
*
|
|
118
|
+
* @param sourceElementOrData The DOM element that will be the source for the created editor
|
|
119
|
+
* or the editor's initial data.
|
|
120
|
+
*
|
|
121
|
+
* If a DOM element is passed, its content will be automatically loaded to the editor upon initialization
|
|
122
|
+
* and the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element editor element} will replace the passed element
|
|
123
|
+
* in the DOM (the original one will be hidden and the editor will be injected next to it).
|
|
124
|
+
*
|
|
125
|
+
* If the {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy updateSourceElementOnDestroy}
|
|
126
|
+
* option is set to `true`, the editor data will be set back to the original element once the editor is destroyed and when a form,
|
|
127
|
+
* in which this element is contained, is submitted (if the original element is a `<textarea>`). This ensures seamless integration
|
|
128
|
+
* with native web forms.
|
|
129
|
+
*
|
|
130
|
+
* If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
|
|
131
|
+
* It is available under the {@link module:editor-classic/classiceditorui~ClassicEditorUI#element `editor.ui.element`} property.
|
|
132
|
+
*
|
|
133
|
+
* @param config The editor configuration.
|
|
134
|
+
* @returns A promise resolved once the editor is ready. The promise resolves with the created editor instance.
|
|
135
|
+
*/
|
|
136
|
+
static create(sourceElementOrData: HTMLElement | string, config?: EditorConfig): Promise<ClassicEditor>;
|
|
137
|
+
}
|
|
138
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module editor-classic/classiceditorui
|
|
11
|
+
*/
|
|
12
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
import { EditorUI } from 'ckeditor5/src/ui.js';
|
|
14
|
+
import type ClassicEditorUIView from './classiceditoruiview.js';
|
|
15
|
+
/**
|
|
16
|
+
* The classic editor UI class.
|
|
17
|
+
*/
|
|
18
|
+
export default class ClassicEditorUI extends EditorUI {
|
|
19
|
+
/**
|
|
20
|
+
* The main (top–most) view of the editor UI.
|
|
21
|
+
*/
|
|
22
|
+
readonly view: ClassicEditorUIView;
|
|
23
|
+
/**
|
|
24
|
+
* A normalized `config.toolbar` object.
|
|
25
|
+
*/
|
|
26
|
+
private readonly _toolbarConfig;
|
|
27
|
+
/**
|
|
28
|
+
* The element replacer instance used to hide the editor's source element.
|
|
29
|
+
*/
|
|
30
|
+
private readonly _elementReplacer;
|
|
31
|
+
/**
|
|
32
|
+
* Creates an instance of the classic editor UI class.
|
|
33
|
+
*
|
|
34
|
+
* @param editor The editor instance.
|
|
35
|
+
* @param view The view of the UI.
|
|
36
|
+
*/
|
|
37
|
+
constructor(editor: Editor, view: ClassicEditorUIView);
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
get element(): HTMLElement | null;
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the UI.
|
|
44
|
+
*
|
|
45
|
+
* @param replacementElement The DOM element that will be the source for the created editor.
|
|
46
|
+
*/
|
|
47
|
+
init(replacementElement: HTMLElement | null): void;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
destroy(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Initializes the editor toolbar.
|
|
54
|
+
*/
|
|
55
|
+
private _initToolbar;
|
|
56
|
+
/**
|
|
57
|
+
* Enable the placeholder text on the editing root.
|
|
58
|
+
*/
|
|
59
|
+
private _initPlaceholder;
|
|
60
|
+
/**
|
|
61
|
+
* Provides an integration between the sticky toolbar and {@link module:ui/panel/balloon/contextualballoon contextual balloon plugin}.
|
|
62
|
+
* It allows the contextual balloon to consider the height of the
|
|
63
|
+
* {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel}. It prevents the balloon from overlapping
|
|
64
|
+
* the sticky toolbar by adjusting the balloon's position using viewport offset configuration.
|
|
65
|
+
*/
|
|
66
|
+
private _initContextualBalloonIntegration;
|
|
67
|
+
/**
|
|
68
|
+
* Provides an integration between the sticky toolbar and {@link module:utils/dom/scroll~scrollViewportToShowTarget}.
|
|
69
|
+
* It allows the UI-agnostic engine method to consider the geometry of the
|
|
70
|
+
* {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel} that pins to the
|
|
71
|
+
* edge of the viewport and can obscure the user caret after scrolling the window.
|
|
72
|
+
*
|
|
73
|
+
* @param evt The `scrollToTheSelection` event info.
|
|
74
|
+
* @param data The payload carried by the `scrollToTheSelection` event.
|
|
75
|
+
* @param originalArgs The original arguments passed to `scrollViewportToShowTarget()` method (see implementation to learn more).
|
|
76
|
+
*/
|
|
77
|
+
private _handleScrollToTheSelectionWithStickyPanel;
|
|
78
|
+
/**
|
|
79
|
+
* Provides an integration between the sticky toolbar and {@link module:ui/dialog/dialog the Dialog plugin}.
|
|
80
|
+
*
|
|
81
|
+
* It moves the dialog down to ensure that the
|
|
82
|
+
* {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#stickyPanel sticky panel}
|
|
83
|
+
* used by the editor UI will not get obscured by the dialog when the dialog uses one of its automatic positions.
|
|
84
|
+
*/
|
|
85
|
+
private _initDialogPluginIntegration;
|
|
86
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module editor-classic/classiceditoruiview
|
|
11
|
+
*/
|
|
12
|
+
import StickyPanelView from './stickypanelview.js';
|
|
13
|
+
import { BoxedEditorUIView, InlineEditableUIView, ToolbarView } from 'ckeditor5/src/ui.js';
|
|
14
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
15
|
+
import type { EditingView } from 'ckeditor5/src/engine.js';
|
|
16
|
+
import '../theme/classiceditor.css';
|
|
17
|
+
/**
|
|
18
|
+
* Classic editor UI view. Uses an inline editable and a sticky toolbar, all
|
|
19
|
+
* enclosed in a boxed UI view.
|
|
20
|
+
*/
|
|
21
|
+
export default class ClassicEditorUIView extends BoxedEditorUIView {
|
|
22
|
+
/**
|
|
23
|
+
* Sticky panel view instance. This is a parent view of a {@link #toolbar}
|
|
24
|
+
* that makes toolbar sticky.
|
|
25
|
+
*/
|
|
26
|
+
readonly stickyPanel: StickyPanelView;
|
|
27
|
+
/**
|
|
28
|
+
* Toolbar view instance.
|
|
29
|
+
*/
|
|
30
|
+
readonly toolbar: ToolbarView;
|
|
31
|
+
/**
|
|
32
|
+
* Editable UI view.
|
|
33
|
+
*/
|
|
34
|
+
readonly editable: InlineEditableUIView;
|
|
35
|
+
/**
|
|
36
|
+
* Creates an instance of the classic editor UI view.
|
|
37
|
+
*
|
|
38
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
39
|
+
* @param editingView The editing view instance this view is related to.
|
|
40
|
+
* @param options Configuration options for the view instance.
|
|
41
|
+
* @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping
|
|
42
|
+
* in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
|
|
43
|
+
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
|
44
|
+
* @param options.label When set, this value will be used as an accessible `aria-label` of the
|
|
45
|
+
* {@link module:ui/editableui/editableuiview~EditableUIView editable view}.
|
|
46
|
+
*/
|
|
47
|
+
constructor(locale: Locale, editingView: EditingView, options?: {
|
|
48
|
+
shouldToolbarGroupWhenFull?: boolean;
|
|
49
|
+
useMenuBar?: boolean;
|
|
50
|
+
label?: string | Record<string, string>;
|
|
51
|
+
containerEl?: HTMLElement;
|
|
52
|
+
panelAbsolute?: boolean;
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @inheritDoc
|
|
56
|
+
*/
|
|
57
|
+
render(): void;
|
|
58
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
5
4
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{
|
|
6
|
+
z-index:var(--ck-z-panel);
|
|
7
|
+
position:fixed;
|
|
8
|
+
top:0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{
|
|
12
|
+
top:auto;
|
|
13
|
+
position:absolute;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ck.ck-editor{
|
|
17
|
+
position:relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{
|
|
21
|
+
z-index:var(--ck-z-panel);
|
|
22
|
+
}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.ck.ck-sticky-panel .ck-sticky-panel__content_sticky {
|
|
11
|
+
z-index: var(--ck-z-panel); /* #315 */
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit {
|
|
17
|
+
top: auto;
|
|
18
|
+
position: absolute;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
23
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
.ck.ck-editor {
|
|
27
|
+
/* All the elements within `.ck-editor` are positioned relatively to it.
|
|
28
|
+
If any element needs to be positioned with respect to the <body>, etc.,
|
|
29
|
+
it must land outside of the `.ck-editor` in DOM. */
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar {
|
|
34
|
+
/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
|
|
35
|
+
z-index: var(--ck-z-panel);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../theme/stickypanel.css","index.css","../theme/classiceditor.css"],"names":[],"mappings":"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","file":"index.css.map","sourcesContent":["/*\n * 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.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-panel); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n","/*\n * 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.ck.ck-sticky-panel .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-panel); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n\n/*\n * 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.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n}\n\n.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-panel);\n\t}\n\n/*# sourceMappingURL=index.css.map */","/*\n * 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.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-panel);\n\t}\n}\n"]}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-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
|
|
4
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module editor-classic
|
|
11
|
+
*/
|
|
5
12
|
declare module '@ckeditor/ckeditor5-core' {
|
|
6
13
|
interface EditorConfig {
|
|
7
14
|
containerEl?: HTMLElement;
|
|
8
15
|
panelAbsolute?: boolean;
|
|
9
16
|
}
|
|
10
17
|
}
|
|
18
|
+
export { default as ClassicEditor } from './classiceditor.js';
|