@ckeditor/ckeditor5-source-editing-enhanced 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.
- package/dist/augmentation.d.ts +20 -20
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/dist/replacesourcecommand.d.ts +23 -23
- package/dist/sourceeditingenhanced.d.ts +42 -42
- package/dist/sourceeditingenhancedconfig.d.ts +44 -44
- package/dist/sourceeditingenhancedui.d.ts +35 -35
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/codeeditorview.d.ts +46 -46
- package/dist/ui/editsourcecommand.d.ts +21 -21
- package/dist/utils/common-translations.d.ts +6 -6
- package/dist/utils/createcodemirroreditor.d.ts +54 -54
- package/dist/utils/format.d.ts +15 -15
- package/dist/utils/getactiverootname.d.ts +6 -6
- package/package.json +6 -6
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { EditorView } from
|
|
9
|
-
import { type Extension } from
|
|
10
|
-
import type { SourceEditingEnhancedConfig } from
|
|
6
|
+
* @module source-editing-enhanced/utils/createcodemirroreditor
|
|
7
|
+
*/
|
|
8
|
+
import { EditorView } from "@codemirror/view";
|
|
9
|
+
import { type Extension } from "@codemirror/state";
|
|
10
|
+
import type { SourceEditingEnhancedConfig } from "../sourceeditingenhancedconfig.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
* Creates an instance of the CodeMirror in a specified parent element.
|
|
13
|
+
*
|
|
14
|
+
* It returns an object with the interface to interact with the editor.
|
|
15
|
+
*/
|
|
16
16
|
export declare function createCodeMirrorEditor(options: CodeMirrorEditorConfig): CodeMirrorEditorApi;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* Returns a set of keybindings for the CodeMirror editor.
|
|
19
|
+
*/
|
|
20
20
|
export declare function getKeybindings(): Array<Extension>;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
* The interface of the CodeMirror editor that allows interacting with the instance.
|
|
23
|
+
*/
|
|
24
24
|
export type CodeMirrorEditorApi = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Focuses the code editor.
|
|
27
|
+
*/
|
|
28
|
+
focus: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves data from the editor.
|
|
31
|
+
*/
|
|
32
|
+
getData: () => string;
|
|
33
|
+
/**
|
|
34
|
+
* Sets data to the editor.
|
|
35
|
+
*/
|
|
36
|
+
setData: (data: string) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Toggles the read-only state of the editor.
|
|
39
|
+
*/
|
|
40
|
+
setReadOnly: (readonly: boolean) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Destroys the editor instance.
|
|
43
|
+
*/
|
|
44
|
+
destroy: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* A reference to the CodeMirror instance. It allows for more advanced interactions with the editor.
|
|
47
|
+
*/
|
|
48
|
+
instance: EditorView;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
* The configuration of the CodeMirror instance.
|
|
52
|
+
*/
|
|
53
53
|
export type CodeMirrorEditorConfig = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
/**
|
|
55
|
+
* The parent DOM element hosting the editor.
|
|
56
|
+
*/
|
|
57
|
+
parent: HTMLElement;
|
|
58
|
+
/**
|
|
59
|
+
* The syntax highlighting language of the editor.
|
|
60
|
+
*/
|
|
61
|
+
syntaxLanguage: "html" | "markdown";
|
|
62
|
+
/**
|
|
63
|
+
* The theme of the editor.
|
|
64
|
+
*/
|
|
65
|
+
theme?: SourceEditingEnhancedConfig["theme"];
|
|
66
66
|
};
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
* Formats the content for a better readability.
|
|
7
|
+
*
|
|
8
|
+
* For a non-HTML source the unchanged input string is returned.
|
|
9
|
+
*
|
|
10
|
+
* @param input Input string to check.
|
|
11
|
+
*/
|
|
12
12
|
export declare function formatSource(input: string): string;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
* Unformats the given HTML by removing new lines and multiple whitespace characters.
|
|
15
|
+
*
|
|
16
|
+
* For a non-HTML source the unchanged input string is returned.
|
|
17
|
+
*
|
|
18
|
+
* @param input Input string to check.
|
|
19
|
+
*/
|
|
20
20
|
export declare function unformatSource(input: string): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { Editor } from
|
|
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
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* Returns the name of the currently or most recently active root (the root the selection is anchored to).
|
|
8
|
+
*/
|
|
9
9
|
export declare function getActiveRootName(editor: Editor): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.3.0-alpha.0",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dist/translations/*.umd.js"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ckeditor/ckeditor5-core": "48.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "48.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "48.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.3.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.0",
|
|
33
33
|
"@codemirror/autocomplete": "^6.7.1",
|
|
34
34
|
"@codemirror/commands": "6.8.1",
|
|
35
35
|
"@codemirror/lang-html": "^6.0.0",
|