@ckeditor/ckeditor5-core 44.1.0 → 44.2.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.
- package/LICENSE.md +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +3 -3
- package/dist/translations/af.umd.js +3 -3
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +3 -3
- package/dist/translations/ar.umd.js +3 -3
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +3 -3
- package/dist/translations/ast.umd.js +3 -3
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +3 -3
- package/dist/translations/az.umd.js +3 -3
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +3 -3
- package/dist/translations/bg.umd.js +3 -3
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +3 -3
- package/dist/translations/bn.umd.js +3 -3
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +3 -3
- package/dist/translations/bs.umd.js +3 -3
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +3 -3
- package/dist/translations/ca.umd.js +3 -3
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +3 -3
- package/dist/translations/cs.umd.js +3 -3
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +3 -3
- package/dist/translations/da.umd.js +3 -3
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +3 -3
- package/dist/translations/de-ch.umd.js +3 -3
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +3 -3
- package/dist/translations/de.umd.js +3 -3
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +3 -3
- package/dist/translations/el.umd.js +3 -3
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +3 -3
- package/dist/translations/en-au.umd.js +3 -3
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +3 -3
- package/dist/translations/en-gb.umd.js +3 -3
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +3 -3
- package/dist/translations/en.umd.js +3 -3
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +3 -3
- package/dist/translations/eo.umd.js +3 -3
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +3 -3
- package/dist/translations/es-co.umd.js +3 -3
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +3 -3
- package/dist/translations/es.umd.js +3 -3
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +3 -3
- package/dist/translations/et.umd.js +3 -3
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +3 -3
- package/dist/translations/eu.umd.js +3 -3
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +3 -3
- package/dist/translations/fa.umd.js +3 -3
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +3 -3
- package/dist/translations/fi.umd.js +3 -3
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +3 -3
- package/dist/translations/fr.umd.js +3 -3
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +3 -3
- package/dist/translations/gl.umd.js +3 -3
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +3 -3
- package/dist/translations/gu.umd.js +3 -3
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +3 -3
- package/dist/translations/he.umd.js +3 -3
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +3 -3
- package/dist/translations/hi.umd.js +3 -3
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +3 -3
- package/dist/translations/hr.umd.js +3 -3
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +3 -3
- package/dist/translations/hu.umd.js +3 -3
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +3 -3
- package/dist/translations/hy.umd.js +3 -3
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +3 -3
- package/dist/translations/id.umd.js +3 -3
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +3 -3
- package/dist/translations/it.umd.js +3 -3
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +3 -3
- package/dist/translations/ja.umd.js +3 -3
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +3 -3
- package/dist/translations/jv.umd.js +3 -3
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +3 -3
- package/dist/translations/kk.umd.js +3 -3
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +3 -3
- package/dist/translations/km.umd.js +3 -3
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +3 -3
- package/dist/translations/kn.umd.js +3 -3
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +3 -3
- package/dist/translations/ko.umd.js +3 -3
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +3 -3
- package/dist/translations/ku.umd.js +3 -3
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +3 -3
- package/dist/translations/lt.umd.js +3 -3
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +3 -3
- package/dist/translations/lv.umd.js +3 -3
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +3 -3
- package/dist/translations/ms.umd.js +3 -3
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +3 -3
- package/dist/translations/nb.umd.js +3 -3
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +3 -3
- package/dist/translations/ne.umd.js +3 -3
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +3 -3
- package/dist/translations/nl.umd.js +3 -3
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +3 -3
- package/dist/translations/no.umd.js +3 -3
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +3 -3
- package/dist/translations/oc.umd.js +3 -3
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +3 -3
- package/dist/translations/pl.umd.js +3 -3
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +3 -3
- package/dist/translations/pt-br.umd.js +3 -3
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +3 -3
- package/dist/translations/pt.umd.js +3 -3
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +3 -3
- package/dist/translations/ro.umd.js +3 -3
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +3 -3
- package/dist/translations/ru.umd.js +3 -3
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +3 -3
- package/dist/translations/si.umd.js +3 -3
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +3 -3
- package/dist/translations/sk.umd.js +3 -3
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +3 -3
- package/dist/translations/sl.umd.js +3 -3
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +3 -3
- package/dist/translations/sq.umd.js +3 -3
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +3 -3
- package/dist/translations/sr-latn.umd.js +3 -3
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +3 -3
- package/dist/translations/sr.umd.js +3 -3
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +3 -3
- package/dist/translations/sv.umd.js +3 -3
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +3 -3
- package/dist/translations/th.umd.js +3 -3
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +3 -3
- package/dist/translations/ti.umd.js +3 -3
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +3 -3
- package/dist/translations/tk.umd.js +3 -3
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +3 -3
- package/dist/translations/tr.umd.js +3 -3
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +3 -3
- package/dist/translations/tt.umd.js +3 -3
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +3 -3
- package/dist/translations/ug.umd.js +3 -3
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +3 -3
- package/dist/translations/uk.umd.js +3 -3
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +3 -3
- package/dist/translations/ur.umd.js +3 -3
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +3 -3
- package/dist/translations/uz.umd.js +3 -3
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +3 -3
- package/dist/translations/vi.umd.js +3 -3
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +3 -3
- package/dist/translations/zh-cn.umd.js +3 -3
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +3 -3
- package/dist/translations/zh.umd.js +3 -3
- package/lang/contexts.json +3 -1
- package/lang/translations/af.po +9 -1
- package/lang/translations/ar.po +9 -1
- package/lang/translations/ast.po +9 -1
- package/lang/translations/az.po +9 -1
- package/lang/translations/bg.po +9 -1
- package/lang/translations/bn.po +9 -1
- package/lang/translations/bs.po +9 -1
- package/lang/translations/ca.po +9 -1
- package/lang/translations/cs.po +9 -1
- package/lang/translations/da.po +9 -1
- package/lang/translations/de-ch.po +9 -1
- package/lang/translations/de.po +9 -1
- package/lang/translations/el.po +9 -1
- package/lang/translations/en-au.po +9 -1
- package/lang/translations/en-gb.po +9 -1
- package/lang/translations/en.po +9 -1
- package/lang/translations/eo.po +9 -1
- package/lang/translations/es-co.po +9 -1
- package/lang/translations/es.po +9 -1
- package/lang/translations/et.po +9 -1
- package/lang/translations/eu.po +9 -1
- package/lang/translations/fa.po +9 -1
- package/lang/translations/fi.po +9 -1
- package/lang/translations/fr.po +9 -1
- package/lang/translations/gl.po +9 -1
- package/lang/translations/gu.po +9 -1
- package/lang/translations/he.po +9 -1
- package/lang/translations/hi.po +9 -1
- package/lang/translations/hr.po +9 -1
- package/lang/translations/hu.po +9 -1
- package/lang/translations/hy.po +9 -1
- package/lang/translations/id.po +9 -1
- package/lang/translations/it.po +9 -1
- package/lang/translations/ja.po +9 -1
- package/lang/translations/jv.po +9 -1
- package/lang/translations/kk.po +9 -1
- package/lang/translations/km.po +9 -1
- package/lang/translations/kn.po +9 -1
- package/lang/translations/ko.po +9 -1
- package/lang/translations/ku.po +9 -1
- package/lang/translations/lt.po +9 -1
- package/lang/translations/lv.po +9 -1
- package/lang/translations/ms.po +9 -1
- package/lang/translations/nb.po +9 -1
- package/lang/translations/ne.po +9 -1
- package/lang/translations/nl.po +9 -1
- package/lang/translations/no.po +9 -1
- package/lang/translations/oc.po +9 -1
- package/lang/translations/pl.po +9 -1
- package/lang/translations/pt-br.po +9 -1
- package/lang/translations/pt.po +9 -1
- package/lang/translations/ro.po +9 -1
- package/lang/translations/ru.po +9 -1
- package/lang/translations/si.po +9 -1
- package/lang/translations/sk.po +9 -1
- package/lang/translations/sl.po +9 -1
- package/lang/translations/sq.po +9 -1
- package/lang/translations/sr-latn.po +9 -1
- package/lang/translations/sr.po +9 -1
- package/lang/translations/sv.po +9 -1
- package/lang/translations/th.po +9 -1
- package/lang/translations/ti.po +9 -1
- package/lang/translations/tk.po +9 -1
- package/lang/translations/tr.po +9 -1
- package/lang/translations/tt.po +9 -1
- package/lang/translations/ug.po +9 -1
- package/lang/translations/uk.po +9 -1
- package/lang/translations/ur.po +9 -1
- package/lang/translations/uz.po +9 -1
- package/lang/translations/vi.po +9 -1
- package/lang/translations/zh-cn.po +9 -1
- package/lang/translations/zh.po +9 -1
- package/package.json +27 -5
- package/src/accessibility.d.ts +1 -1
- package/src/accessibility.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/command.d.ts +1 -1
- package/src/command.js +1 -1
- package/src/commandcollection.d.ts +1 -1
- package/src/commandcollection.js +1 -1
- package/src/context.d.ts +1 -1
- package/src/context.js +1 -1
- package/src/contextplugin.d.ts +1 -1
- package/src/contextplugin.js +1 -1
- package/src/editingkeystrokehandler.d.ts +1 -1
- package/src/editingkeystrokehandler.js +1 -1
- package/src/editor/editor.d.ts +1 -1
- package/src/editor/editor.js +10 -4
- package/src/editor/editorconfig.d.ts +1 -1
- package/src/editor/editorconfig.js +1 -1
- package/src/editor/utils/attachtoform.d.ts +1 -1
- package/src/editor/utils/attachtoform.js +1 -1
- package/src/editor/utils/dataapimixin.d.ts +1 -1
- package/src/editor/utils/dataapimixin.js +1 -1
- package/src/editor/utils/editorusagedata.d.ts +1 -1
- package/src/editor/utils/editorusagedata.js +1 -1
- package/src/editor/utils/elementapimixin.d.ts +1 -1
- package/src/editor/utils/elementapimixin.js +1 -1
- package/src/editor/utils/securesourceelement.d.ts +1 -1
- package/src/editor/utils/securesourceelement.js +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.js +6 -2
- package/src/multicommand.d.ts +1 -1
- package/src/multicommand.js +1 -1
- package/src/pendingactions.d.ts +1 -1
- package/src/pendingactions.js +1 -1
- package/src/plugin.d.ts +1 -1
- package/src/plugin.js +1 -1
- package/src/plugincollection.d.ts +1 -1
- package/src/plugincollection.js +1 -1
- package/src/typings.d.ts +1 -1
- package/src/typings.js +1 -1
- package/theme/icons/emoji.svg +1 -0
- package/theme/icons/source.svg +1 -0
- package/dist/accessibility.d.ts +0 -365
- package/dist/augmentation.d.ts +0 -14
- package/dist/command.d.ts +0 -193
- package/dist/commandcollection.d.ts +0 -87
- package/dist/context.d.ts +0 -241
- package/dist/contextplugin.d.ts +0 -73
- package/dist/editingkeystrokehandler.d.ts +0 -60
- package/dist/editor/editor.d.ts +0 -530
- package/dist/editor/editorconfig.d.ts +0 -994
- package/dist/editor/utils/attachtoform.d.ts +0 -19
- package/dist/editor/utils/dataapimixin.d.ts +0 -83
- package/dist/editor/utils/editorusagedata.d.ts +0 -72
- package/dist/editor/utils/elementapimixin.d.ts +0 -39
- package/dist/editor/utils/securesourceelement.d.ts +0 -21
- package/dist/index.d.ts +0 -97
- package/dist/multicommand.d.ts +0 -70
- package/dist/pendingactions.d.ts +0 -126
- package/dist/plugin.d.ts +0 -300
- package/dist/plugincollection.d.ts +0 -121
- package/dist/typings.d.ts +0 -16
|
@@ -1,19 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { default as Editor } from '../editor.js';
|
|
10
|
-
import type { ElementApi } from './elementapimixin.js';
|
|
11
|
-
/**
|
|
12
|
-
* Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element
|
|
13
|
-
* content before submitting the form.
|
|
14
|
-
*
|
|
15
|
-
* This helper requires the {@link module:core/editor/utils/elementapimixin~ElementApi ElementApi interface}.
|
|
16
|
-
*
|
|
17
|
-
* @param editor Editor instance.
|
|
18
|
-
*/
|
|
19
|
-
export default function attachToForm(editor: Editor & ElementApi): void;
|
|
@@ -1,83 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module core/editor/utils/dataapimixin
|
|
11
|
-
*/
|
|
12
|
-
import type Editor from '../editor.js';
|
|
13
|
-
import type { Constructor } from '@ckeditor/ckeditor5-utils';
|
|
14
|
-
/**
|
|
15
|
-
* Implementation of the {@link module:core/editor/utils/dataapimixin~DataApi}.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated This functionality is already implemented by the `Editor` class.
|
|
18
|
-
*/
|
|
19
|
-
export default function DataApiMixin<Base extends Constructor<Editor>>(base: Base): Base;
|
|
20
|
-
/**
|
|
21
|
-
* Interface defining editor methods for setting and getting data to and from the editor's main root element
|
|
22
|
-
* using the {@link module:core/editor/editor~Editor#data data pipeline}.
|
|
23
|
-
*
|
|
24
|
-
* This interface is not a part of the {@link module:core/editor/editor~Editor} class because one may want to implement
|
|
25
|
-
* an editor with multiple root elements, in which case the methods for setting and getting data will need to be implemented
|
|
26
|
-
* differently.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated This interface is implemented by all `Editor` instances by default.
|
|
29
|
-
*/
|
|
30
|
-
export interface DataApi {
|
|
31
|
-
/**
|
|
32
|
-
* Sets the data in the editor.
|
|
33
|
-
*
|
|
34
|
-
* ```ts
|
|
35
|
-
* editor.setData( '<p>This is editor!</p>' );
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* If your editor implementation uses multiple roots, you should pass an object with keys corresponding
|
|
39
|
-
* to the editor root names and values equal to the data that should be set in each root:
|
|
40
|
-
*
|
|
41
|
-
* ```ts
|
|
42
|
-
* editor.setData( {
|
|
43
|
-
* header: '<p>Content for header part.</p>',
|
|
44
|
-
* content: '<p>Content for main part.</p>',
|
|
45
|
-
* footer: '<p>Content for footer part.</p>'
|
|
46
|
-
* } );
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* By default the editor accepts HTML. This can be controlled by injecting a different data processor.
|
|
50
|
-
* See the {@glink features/markdown Markdown output} guide for more details.
|
|
51
|
-
*
|
|
52
|
-
* @param data Input data.
|
|
53
|
-
*/
|
|
54
|
-
setData(data: string | Record<string, string>): void;
|
|
55
|
-
/**
|
|
56
|
-
* Gets the data from the editor.
|
|
57
|
-
*
|
|
58
|
-
* ```ts
|
|
59
|
-
* editor.getData(); // -> '<p>This is editor!</p>'
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* If your editor implementation uses multiple roots, you should pass root name as one of the options:
|
|
63
|
-
*
|
|
64
|
-
* ```ts
|
|
65
|
-
* editor.getData( { rootName: 'header' } ); // -> '<p>Content for header part.</p>'
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* By default, the editor outputs HTML. This can be controlled by injecting a different data processor.
|
|
69
|
-
* See the {@glink features/markdown Markdown output} guide for more details.
|
|
70
|
-
*
|
|
71
|
-
* A warning is logged when you try to retrieve data for a detached root, as most probably this is a mistake. A detached root should
|
|
72
|
-
* be treated like it is removed, and you should not save its data. Note, that the detached root data is always an empty string.
|
|
73
|
-
*
|
|
74
|
-
* @param options Additional configuration for the retrieved data.
|
|
75
|
-
* Editor features may introduce more configuration options that can be set through this parameter.
|
|
76
|
-
* @param options.rootName Root name. Default to `'main'`.
|
|
77
|
-
* @param options.trim Whether returned data should be trimmed. This option is set to `'empty'` by default,
|
|
78
|
-
* which means that whenever editor content is considered empty, an empty string is returned. To turn off trimming
|
|
79
|
-
* use `'none'`. In such cases exact content will be returned (for example `'<p> </p>'` for an empty editor).
|
|
80
|
-
* @returns Output data.
|
|
81
|
-
*/
|
|
82
|
-
getData(options?: Record<string, unknown>): string;
|
|
83
|
-
}
|
|
@@ -1,72 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type Editor from '../editor.js';
|
|
10
|
-
/**
|
|
11
|
-
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
12
|
-
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
13
|
-
* this applies to your installation, please contact our support team.
|
|
14
|
-
*
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare function getEditorUsageData(editor: Editor): EditorUsageData;
|
|
18
|
-
declare global {
|
|
19
|
-
interface Window {
|
|
20
|
-
CKEDITOR_PAGE_SESSION_ID?: string;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
export type EditorUsageData = {
|
|
27
|
-
sessionId: string;
|
|
28
|
-
pageSessionId: string;
|
|
29
|
-
hostname: string;
|
|
30
|
-
version: string;
|
|
31
|
-
type: `${string}Editor`;
|
|
32
|
-
plugins: Array<PluginUsageData>;
|
|
33
|
-
toolbar: {
|
|
34
|
-
main?: ToolbarUsageData;
|
|
35
|
-
block?: ToolbarUsageData;
|
|
36
|
-
balloon?: ToolbarUsageData;
|
|
37
|
-
};
|
|
38
|
-
menuBar: {
|
|
39
|
-
isVisible: boolean;
|
|
40
|
-
};
|
|
41
|
-
language: {
|
|
42
|
-
ui: string;
|
|
43
|
-
content: string;
|
|
44
|
-
};
|
|
45
|
-
distribution: {
|
|
46
|
-
channel: string;
|
|
47
|
-
};
|
|
48
|
-
env: EnvUsageData;
|
|
49
|
-
integration: {
|
|
50
|
-
[integrationName: string]: IntegrationUsageData;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
type IntegrationUsageData = {
|
|
54
|
-
version: string;
|
|
55
|
-
frameworkVersion?: string;
|
|
56
|
-
};
|
|
57
|
-
type EnvUsageData = {
|
|
58
|
-
os: 'mac' | 'windows' | 'ios' | 'android' | 'unknown';
|
|
59
|
-
browser: 'safari' | 'gecko' | 'blink' | 'unknown';
|
|
60
|
-
};
|
|
61
|
-
type ToolbarUsageData = {
|
|
62
|
-
items: Array<string>;
|
|
63
|
-
isMultiline: boolean;
|
|
64
|
-
shouldNotGroupWhenFull: boolean;
|
|
65
|
-
};
|
|
66
|
-
type PluginUsageData = {
|
|
67
|
-
name: string;
|
|
68
|
-
isPremium: boolean;
|
|
69
|
-
isOfficial: boolean;
|
|
70
|
-
isContext: boolean;
|
|
71
|
-
};
|
|
72
|
-
export {};
|
|
@@ -1,39 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module core/editor/utils/elementapimixin
|
|
11
|
-
*/
|
|
12
|
-
import { type Constructor, type Mixed } from '@ckeditor/ckeditor5-utils';
|
|
13
|
-
import type Editor from '../editor.js';
|
|
14
|
-
/**
|
|
15
|
-
* Implementation of the {@link module:core/editor/utils/elementapimixin~ElementApi}.
|
|
16
|
-
*/
|
|
17
|
-
export default function ElementApiMixin<Base extends Constructor<Editor>>(base: Base): Mixed<Base, ElementApi>;
|
|
18
|
-
/**
|
|
19
|
-
* Interface describing an editor that replaced a DOM element (was "initialized on an element").
|
|
20
|
-
*
|
|
21
|
-
* Such an editor should provide a method to
|
|
22
|
-
* {@link module:core/editor/utils/elementapimixin~ElementApi#updateSourceElement update the replaced element with the current data}.
|
|
23
|
-
*/
|
|
24
|
-
export interface ElementApi {
|
|
25
|
-
/**
|
|
26
|
-
* The element on which the editor has been initialized.
|
|
27
|
-
*
|
|
28
|
-
* @readonly
|
|
29
|
-
*/
|
|
30
|
-
sourceElement: HTMLElement | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Updates the {@link #sourceElement editor source element}'s content with the data if the
|
|
33
|
-
* {@link module:core/editor/editorconfig~EditorConfig#updateSourceElementOnDestroy `updateSourceElementOnDestroy`}
|
|
34
|
-
* configuration option is set to `true`.
|
|
35
|
-
*
|
|
36
|
-
* @param data Data that the {@link #sourceElement editor source element} should be updated with.
|
|
37
|
-
*/
|
|
38
|
-
updateSourceElement(data?: string): void;
|
|
39
|
-
}
|
|
@@ -1,21 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { default as Editor } from '../editor.js';
|
|
10
|
-
/**
|
|
11
|
-
* Marks the source element on which the editor was initialized. This prevents other editor instances from using this element.
|
|
12
|
-
*
|
|
13
|
-
* Running multiple editor instances on the same source element causes various issues and it is
|
|
14
|
-
* crucial this helper is called as soon as the source element is known to prevent collisions.
|
|
15
|
-
*
|
|
16
|
-
* @param editor Editor instance.
|
|
17
|
-
* @param sourceElement Element to bind with the editor instance.
|
|
18
|
-
*/
|
|
19
|
-
export default function secureSourceElement(editor: Editor, sourceElement: HTMLElement & {
|
|
20
|
-
ckeditorInstance?: Editor;
|
|
21
|
-
}): void;
|
package/dist/index.d.ts
DELETED
|
@@ -1,97 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module core
|
|
11
|
-
*/
|
|
12
|
-
export { default as Plugin, type PluginDependencies, type PluginConstructor } from './plugin.js';
|
|
13
|
-
export { default as Command, type CommandExecuteEvent } from './command.js';
|
|
14
|
-
export { default as MultiCommand } from './multicommand.js';
|
|
15
|
-
export type { CommandsMap } from './commandcollection.js';
|
|
16
|
-
export type { PluginsMap, default as PluginCollection } from './plugincollection.js';
|
|
17
|
-
export { default as Context, type ContextConfig } from './context.js';
|
|
18
|
-
export { default as ContextPlugin, type ContextPluginDependencies } from './contextplugin.js';
|
|
19
|
-
export { type EditingKeystrokeCallback } from './editingkeystrokehandler.js';
|
|
20
|
-
export type { PartialBy, NonEmptyArray, HexColor } from './typings.js';
|
|
21
|
-
export { default as Editor, type EditorReadyEvent, type EditorDestroyEvent } from './editor/editor.js';
|
|
22
|
-
export type { EditorConfig, LanguageConfig, ToolbarConfig, ToolbarConfigItem, UiConfig } from './editor/editorconfig.js';
|
|
23
|
-
export { default as attachToForm } from './editor/utils/attachtoform.js';
|
|
24
|
-
export { default as DataApiMixin, type DataApi } from './editor/utils/dataapimixin.js';
|
|
25
|
-
export { default as ElementApiMixin, type ElementApi } from './editor/utils/elementapimixin.js';
|
|
26
|
-
export { default as secureSourceElement } from './editor/utils/securesourceelement.js';
|
|
27
|
-
export { default as PendingActions, type PendingAction } from './pendingactions.js';
|
|
28
|
-
export type { KeystrokeInfos as KeystrokeInfoDefinitions, KeystrokeInfoGroup as KeystrokeInfoGroupDefinition, KeystrokeInfoCategory as KeystrokeInfoCategoryDefinition, KeystrokeInfoDefinition as KeystrokeInfoDefinition } from './accessibility.js';
|
|
29
|
-
export declare const icons: {
|
|
30
|
-
bold: string;
|
|
31
|
-
cancel: string;
|
|
32
|
-
caption: string;
|
|
33
|
-
check: string;
|
|
34
|
-
cog: string;
|
|
35
|
-
colorPalette: string;
|
|
36
|
-
eraser: string;
|
|
37
|
-
history: string;
|
|
38
|
-
image: string;
|
|
39
|
-
imageUpload: string;
|
|
40
|
-
imageAssetManager: string;
|
|
41
|
-
imageUrl: string;
|
|
42
|
-
lowVision: string;
|
|
43
|
-
textAlternative: string;
|
|
44
|
-
loupe: string;
|
|
45
|
-
previousArrow: string;
|
|
46
|
-
nextArrow: string;
|
|
47
|
-
importExport: string;
|
|
48
|
-
paragraph: string;
|
|
49
|
-
plus: string;
|
|
50
|
-
text: string;
|
|
51
|
-
alignBottom: string;
|
|
52
|
-
alignMiddle: string;
|
|
53
|
-
alignTop: string;
|
|
54
|
-
alignLeft: string;
|
|
55
|
-
alignCenter: string;
|
|
56
|
-
alignRight: string;
|
|
57
|
-
alignJustify: string;
|
|
58
|
-
objectLeft: string;
|
|
59
|
-
objectCenter: string;
|
|
60
|
-
objectRight: string;
|
|
61
|
-
objectFullWidth: string;
|
|
62
|
-
objectInline: string;
|
|
63
|
-
objectBlockLeft: string;
|
|
64
|
-
objectBlockRight: string;
|
|
65
|
-
objectSizeCustom: string;
|
|
66
|
-
objectSizeFull: string;
|
|
67
|
-
objectSizeLarge: string;
|
|
68
|
-
objectSizeSmall: string;
|
|
69
|
-
objectSizeMedium: string;
|
|
70
|
-
pencil: string;
|
|
71
|
-
pilcrow: string;
|
|
72
|
-
quote: string;
|
|
73
|
-
threeVerticalDots: string;
|
|
74
|
-
dragIndicator: string;
|
|
75
|
-
redo: string;
|
|
76
|
-
undo: string;
|
|
77
|
-
bulletedList: string;
|
|
78
|
-
numberedList: string;
|
|
79
|
-
todoList: string;
|
|
80
|
-
codeBlock: string;
|
|
81
|
-
browseFiles: string;
|
|
82
|
-
heading1: string;
|
|
83
|
-
heading2: string;
|
|
84
|
-
heading3: string;
|
|
85
|
-
heading4: string;
|
|
86
|
-
heading5: string;
|
|
87
|
-
heading6: string;
|
|
88
|
-
horizontalLine: string;
|
|
89
|
-
html: string;
|
|
90
|
-
indent: string;
|
|
91
|
-
outdent: string;
|
|
92
|
-
table: string;
|
|
93
|
-
remove: string;
|
|
94
|
-
bookmark: string;
|
|
95
|
-
bookmarkInline: string;
|
|
96
|
-
};
|
|
97
|
-
import './augmentation.js';
|
package/dist/multicommand.d.ts
DELETED
|
@@ -1,70 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module core/multicommand
|
|
11
|
-
*/
|
|
12
|
-
import Command from './command.js';
|
|
13
|
-
import { type PriorityString } from '@ckeditor/ckeditor5-utils';
|
|
14
|
-
/**
|
|
15
|
-
* A CKEditor command that aggregates other commands.
|
|
16
|
-
*
|
|
17
|
-
* This command is used to proxy multiple commands. The multi-command is enabled when
|
|
18
|
-
* at least one of its registered child commands is enabled.
|
|
19
|
-
* When executing a multi-command, the first enabled command with highest priority will be executed.
|
|
20
|
-
*
|
|
21
|
-
* ```ts
|
|
22
|
-
* const multiCommand = new MultiCommand( editor );
|
|
23
|
-
*
|
|
24
|
-
* const commandFoo = new Command( editor );
|
|
25
|
-
* const commandBar = new Command( editor );
|
|
26
|
-
*
|
|
27
|
-
* // Register a child command.
|
|
28
|
-
* multiCommand.registerChildCommand( commandFoo );
|
|
29
|
-
* // Register a child command with a low priority.
|
|
30
|
-
* multiCommand.registerChildCommand( commandBar, { priority: 'low' } );
|
|
31
|
-
*
|
|
32
|
-
* // Enable one of the commands.
|
|
33
|
-
* commandBar.isEnabled = true;
|
|
34
|
-
*
|
|
35
|
-
* multiCommand.execute(); // Will execute commandBar.
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export default class MultiCommand extends Command {
|
|
39
|
-
/**
|
|
40
|
-
* Registered child commands definitions.
|
|
41
|
-
*/
|
|
42
|
-
private _childCommandsDefinitions;
|
|
43
|
-
/**
|
|
44
|
-
* @inheritDoc
|
|
45
|
-
*/
|
|
46
|
-
refresh(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Executes the first enabled command which has the highest priority of all registered child commands.
|
|
49
|
-
*
|
|
50
|
-
* @returns The value returned by the {@link module:core/command~Command#execute `command.execute()`}.
|
|
51
|
-
*/
|
|
52
|
-
execute(...args: Array<unknown>): unknown;
|
|
53
|
-
/**
|
|
54
|
-
* Registers a child command.
|
|
55
|
-
*
|
|
56
|
-
* @param options An object with configuration options.
|
|
57
|
-
* @param options.priority Priority of a command to register.
|
|
58
|
-
*/
|
|
59
|
-
registerChildCommand(command: Command, options?: {
|
|
60
|
-
priority?: PriorityString;
|
|
61
|
-
}): void;
|
|
62
|
-
/**
|
|
63
|
-
* Checks if any of child commands is enabled.
|
|
64
|
-
*/
|
|
65
|
-
private _checkEnabled;
|
|
66
|
-
/**
|
|
67
|
-
* Returns a first enabled command with the highest priority or `undefined` if none of them is enabled.
|
|
68
|
-
*/
|
|
69
|
-
private _getFirstEnabledCommand;
|
|
70
|
-
}
|
package/dist/pendingactions.d.ts
DELETED
|
@@ -1,126 +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
|
-
/**
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module core/pendingactions
|
|
11
|
-
*/
|
|
12
|
-
import ContextPlugin from './contextplugin.js';
|
|
13
|
-
import { type CollectionAddEvent, type CollectionRemoveEvent, type Observable } from '@ckeditor/ckeditor5-utils';
|
|
14
|
-
/**
|
|
15
|
-
* The list of pending editor actions.
|
|
16
|
-
*
|
|
17
|
-
* This plugin should be used to synchronise plugins that execute long-lasting actions
|
|
18
|
-
* (e.g. file upload) with the editor integration. It gives the developer who integrates the editor
|
|
19
|
-
* an easy way to check if there are any actions pending whenever such information is needed.
|
|
20
|
-
* All plugins that register a pending action also provide a message about the action that is ongoing
|
|
21
|
-
* which can be displayed to the user. This lets them decide if they want to interrupt the action or wait.
|
|
22
|
-
*
|
|
23
|
-
* Adding and updating a pending action:
|
|
24
|
-
*
|
|
25
|
-
* ```ts
|
|
26
|
-
* const pendingActions = editor.plugins.get( 'PendingActions' );
|
|
27
|
-
* const action = pendingActions.add( 'Upload in progress: 0%.' );
|
|
28
|
-
*
|
|
29
|
-
* // You can update the message:
|
|
30
|
-
* action.message = 'Upload in progress: 10%.';
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* Removing a pending action:
|
|
34
|
-
*
|
|
35
|
-
* ```ts
|
|
36
|
-
* const pendingActions = editor.plugins.get( 'PendingActions' );
|
|
37
|
-
* const action = pendingActions.add( 'Unsaved changes.' );
|
|
38
|
-
*
|
|
39
|
-
* pendingActions.remove( action );
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* Getting pending actions:
|
|
43
|
-
*
|
|
44
|
-
* ```ts
|
|
45
|
-
* const pendingActions = editor.plugins.get( 'PendingActions' );
|
|
46
|
-
*
|
|
47
|
-
* const action1 = pendingActions.add( 'Action 1' );
|
|
48
|
-
* const action2 = pendingActions.add( 'Action 2' );
|
|
49
|
-
*
|
|
50
|
-
* pendingActions.first; // Returns action1
|
|
51
|
-
* Array.from( pendingActions ); // Returns [ action1, action2 ]
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* This plugin is used by features like {@link module:upload/filerepository~FileRepository} to register their ongoing actions
|
|
55
|
-
* and by features like {@link module:autosave/autosave~Autosave} to detect whether there are any ongoing actions.
|
|
56
|
-
* Read more about saving the data in the
|
|
57
|
-
* {@glink getting-started/setup/getting-and-setting-data Saving and getting data} guide.
|
|
58
|
-
*/
|
|
59
|
-
export default class PendingActions extends ContextPlugin implements Iterable<PendingAction> {
|
|
60
|
-
/**
|
|
61
|
-
* Defines whether there is any registered pending action.
|
|
62
|
-
*
|
|
63
|
-
* @readonly
|
|
64
|
-
* @observable
|
|
65
|
-
*/
|
|
66
|
-
hasAny: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* A list of pending actions.
|
|
69
|
-
*/
|
|
70
|
-
private _actions;
|
|
71
|
-
/**
|
|
72
|
-
* @inheritDoc
|
|
73
|
-
*/
|
|
74
|
-
static get pluginName(): "PendingActions";
|
|
75
|
-
/**
|
|
76
|
-
* @inheritDoc
|
|
77
|
-
*/
|
|
78
|
-
static get isOfficialPlugin(): true;
|
|
79
|
-
/**
|
|
80
|
-
* @inheritDoc
|
|
81
|
-
*/
|
|
82
|
-
init(): void;
|
|
83
|
-
/**
|
|
84
|
-
* Adds an action to the list of pending actions.
|
|
85
|
-
*
|
|
86
|
-
* This method returns an action object with an observable message property.
|
|
87
|
-
* The action object can be later used in the {@link #remove} method. It also allows you to change the message.
|
|
88
|
-
*
|
|
89
|
-
* @param message The action message.
|
|
90
|
-
* @returns An observable object that represents a pending action.
|
|
91
|
-
*/
|
|
92
|
-
add(message: string): PendingAction;
|
|
93
|
-
/**
|
|
94
|
-
* Removes an action from the list of pending actions.
|
|
95
|
-
*
|
|
96
|
-
* @param action An action object.
|
|
97
|
-
*/
|
|
98
|
-
remove(action: PendingAction): void;
|
|
99
|
-
/**
|
|
100
|
-
* Returns the first action from the list or null if the list is empty
|
|
101
|
-
*
|
|
102
|
-
* @returns The pending action object.
|
|
103
|
-
*/
|
|
104
|
-
get first(): PendingAction | null;
|
|
105
|
-
/**
|
|
106
|
-
* Iterable interface.
|
|
107
|
-
*/
|
|
108
|
-
[Symbol.iterator](): Iterator<PendingAction>;
|
|
109
|
-
}
|
|
110
|
-
export interface PendingAction extends Observable {
|
|
111
|
-
message: string;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Fired when an action is added to the list.
|
|
115
|
-
*
|
|
116
|
-
* @eventName ~PendingActions#add
|
|
117
|
-
* @param action The added action.
|
|
118
|
-
*/
|
|
119
|
-
export type PendingActionsAddEvent = CollectionAddEvent<PendingAction>;
|
|
120
|
-
/**
|
|
121
|
-
* Fired when an action is removed from the list.
|
|
122
|
-
*
|
|
123
|
-
* @eventName ~PendingActions#remove
|
|
124
|
-
* @param action The removed action.
|
|
125
|
-
*/
|
|
126
|
-
export type PendingActionsRemoveEvent = CollectionRemoveEvent<PendingAction>;
|