@ckeditor/ckeditor5-editor-classic 48.2.0 → 48.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,55 +1,55 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module editor-classic/classiceditoruiview
7
- */
8
- import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from '@ckeditor/ckeditor5-ui';
9
- import type { Locale } from '@ckeditor/ckeditor5-utils';
10
- import type { EditingView } from '@ckeditor/ckeditor5-engine';
11
- import type { ViewRootElementDefinition } from '@ckeditor/ckeditor5-core';
12
- import '../theme/classiceditor.css';
6
+ * @module editor-classic/classiceditoruiview
7
+ */
8
+ import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from "@ckeditor/ckeditor5-ui";
9
+ import type { Locale } from "@ckeditor/ckeditor5-utils";
10
+ import type { EditingView } from "@ckeditor/ckeditor5-engine";
11
+ import type { ViewRootElementDefinition } from "@ckeditor/ckeditor5-core";
12
+ import "../theme/classiceditor.css";
13
13
  /**
14
- * Classic editor UI view. Uses an inline editable and a sticky toolbar, all
15
- * enclosed in a boxed UI view.
16
- */
14
+ * Classic editor UI view. Uses an inline editable and a sticky toolbar, all
15
+ * enclosed in a boxed UI view.
16
+ */
17
17
  export declare class ClassicEditorUIView extends BoxedEditorUIView {
18
- /**
19
- * Sticky panel view instance. This is a parent view of a {@link #toolbar}
20
- * that makes toolbar sticky.
21
- */
22
- readonly stickyPanel: StickyPanelView;
23
- /**
24
- * Toolbar view instance.
25
- */
26
- readonly toolbar: ToolbarView;
27
- /**
28
- * Editable UI view.
29
- */
30
- readonly editable: InlineEditableUIView;
31
- /**
32
- * Creates an instance of the classic editor UI view.
33
- *
34
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
35
- * @param editingView The editing view instance this view is related to.
36
- * @param options Configuration options for the view instance.
37
- * @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping
38
- * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
39
- * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
40
- * @param options.editableElement A {@link module:core/editor/editorconfig~ViewRootElementDefinition}
41
- * describing the editable element to create inside the UI box. When omitted, a default `<div>` is used.
42
- * @param options.label When set, this value will be used as an accessible `aria-label` of the
43
- * {@link module:ui/editableui/editableuiview~EditableUIView editable view}.
44
- */
45
- constructor(locale: Locale, editingView: EditingView, options?: {
46
- shouldToolbarGroupWhenFull?: boolean;
47
- useMenuBar?: boolean;
48
- editableElement?: ViewRootElementDefinition;
49
- label?: string | Record<string, string>;
50
- });
51
- /**
52
- * @inheritDoc
53
- */
54
- render(): void;
18
+ /**
19
+ * Sticky panel view instance. This is a parent view of a {@link #toolbar}
20
+ * that makes toolbar sticky.
21
+ */
22
+ readonly stickyPanel: StickyPanelView;
23
+ /**
24
+ * Toolbar view instance.
25
+ */
26
+ override readonly toolbar: ToolbarView;
27
+ /**
28
+ * Editable UI view.
29
+ */
30
+ readonly editable: InlineEditableUIView;
31
+ /**
32
+ * Creates an instance of the classic editor UI view.
33
+ *
34
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
35
+ * @param editingView The editing view instance this view is related to.
36
+ * @param options Configuration options for the view instance.
37
+ * @param options.shouldToolbarGroupWhenFull When set `true` enables automatic items grouping
38
+ * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
39
+ * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
40
+ * @param options.editableElement A {@link module:core/editor/editorconfig~ViewRootElementDefinition}
41
+ * describing the editable element to create inside the UI box. When omitted, a default `<div>` is used.
42
+ * @param options.label When set, this value will be used as an accessible `aria-label` of the
43
+ * {@link module:ui/editableui/editableuiview~EditableUIView editable view}.
44
+ */
45
+ constructor(locale: Locale, editingView: EditingView, options?: {
46
+ shouldToolbarGroupWhenFull?: boolean;
47
+ useMenuBar?: boolean;
48
+ editableElement?: ViewRootElementDefinition;
49
+ label?: string | Record<string, string>;
50
+ });
51
+ /**
52
+ * @inheritDoc
53
+ */
54
+ override render(): void;
55
55
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/classiceditor.css","index.css"],"names":[],"mappings":";;;;AAOA,CAAA,EAAA,CAAA,EAAA,CAAA,YAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,gBAAA,CAAA;ACNA,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;AAC7C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AACjD,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5B;;ADSC,CAAA,EAAA,CAAA,EAAA,CAAA,YAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA;ACND,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAC3C;;ADUA,CAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA;ACPA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;ADYC,CAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA;ACTD,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AAC5B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */\n\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5/issues/3384 */\n\tbackground: var(--ck-color-base-background);\n\tborder-radius: var(--ck-rounded-corners-radius);\n\tborder-top-left-radius: 0;\n\tborder-top-right-radius: 0;\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\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",".ck.ck-editor__main > .ck-editor__editable {\n background: var(--ck-color-base-background);\n border-radius: var(--ck-rounded-corners-radius);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {\n border-color: var(--ck-color-base-border);\n}\n\n.ck.ck-editor {\n position: relative;\n}\n\n.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar {\n z-index: var(--ck-z-panel);\n}\n\n/*# sourceMappingURL=index.css.map */"]}
1
+ {"version":3,"sources":["../theme/classiceditor.css","index.css"],"names":[],"mappings":";;;;AAOA,CAAA,EAAA,CAAA,EAAA,CAAA,YAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,gBAAA,CAAA;ACNA,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;AAC7C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AACjD,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5B;;ADSC,CAAA,EAAA,CAAA,EAAA,CAAA,YAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA;ACND,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAC3C;;ADUA,CAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA;ACPA,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ;AACpB;;ADYC,CAAA,EAAA,CAAA,EAAA,CAAA,MAAA,CAAA,CAAA,EAAA,CAAA,WAAA,CAAA,CAAA,EAAA,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA;ACTD,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AAC5B;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */\n\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5/issues/3384 */\n\tbackground: var(--ck-color-base-background);\n\tborder-radius: var(--ck-rounded-corners-radius);\n\tborder-top-left-radius: 0;\n\tborder-top-right-radius: 0;\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\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",".ck.ck-editor__main > .ck-editor__editable {\n background: var(--ck-color-base-background);\n border-radius: var(--ck-rounded-corners-radius);\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {\n border-color: var(--ck-color-base-border);\n}\n\n.ck.ck-editor {\n position: relative;\n}\n\n.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar {\n z-index: var(--ck-z-panel);\n}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module editor-classic
7
- */
8
- export { ClassicEditor } from './classiceditor.js';
9
- export { ClassicEditorUI } from './classiceditorui.js';
10
- export { ClassicEditorUIView } from './classiceditoruiview.js';
6
+ * @module editor-classic
7
+ */
8
+ export { ClassicEditor } from "./classiceditor.js";
9
+ export { ClassicEditorUI } from "./classiceditorui.js";
10
+ export { ClassicEditorUIView } from "./classiceditoruiview.js";