@ckeditor/ckeditor5-code-block 47.6.1 → 48.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.
- package/ckeditor5-metadata.json +2 -2
- package/{src → dist}/codeblock.d.ts +1 -1
- package/{src → dist}/codeblockcommand.d.ts +1 -1
- package/{src → dist}/codeblockconfig.d.ts +6 -3
- package/{src → dist}/codeblockediting.d.ts +2 -2
- package/{src → dist}/codeblockui.d.ts +1 -1
- package/{src → dist}/converters.d.ts +2 -2
- package/{src → dist}/indentcodeblockcommand.d.ts +1 -1
- package/dist/index-content.css +15 -16
- package/dist/index-editor.css +24 -6
- package/dist/index.css +37 -31
- package/dist/index.css.map +1 -1
- package/dist/index.js.map +1 -1
- package/{src → dist}/outdentcodeblockcommand.d.ts +1 -1
- package/{src → dist}/utils.d.ts +3 -3
- package/package.json +25 -49
- package/build/code-block.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -9
- package/lang/translations/af.po +0 -40
- package/lang/translations/ar.po +0 -40
- package/lang/translations/ast.po +0 -40
- package/lang/translations/az.po +0 -40
- package/lang/translations/be.po +0 -40
- package/lang/translations/bg.po +0 -40
- package/lang/translations/bn.po +0 -40
- package/lang/translations/bs.po +0 -40
- package/lang/translations/ca.po +0 -40
- package/lang/translations/cs.po +0 -40
- package/lang/translations/da.po +0 -40
- package/lang/translations/de-ch.po +0 -40
- package/lang/translations/de.po +0 -40
- package/lang/translations/el.po +0 -40
- package/lang/translations/en-au.po +0 -40
- package/lang/translations/en-gb.po +0 -40
- package/lang/translations/en.po +0 -40
- package/lang/translations/eo.po +0 -40
- package/lang/translations/es-co.po +0 -40
- package/lang/translations/es.po +0 -40
- package/lang/translations/et.po +0 -40
- package/lang/translations/eu.po +0 -40
- package/lang/translations/fa.po +0 -40
- package/lang/translations/fi.po +0 -40
- package/lang/translations/fr.po +0 -40
- package/lang/translations/gl.po +0 -40
- package/lang/translations/gu.po +0 -40
- package/lang/translations/he.po +0 -40
- package/lang/translations/hi.po +0 -40
- package/lang/translations/hr.po +0 -40
- package/lang/translations/hu.po +0 -40
- package/lang/translations/hy.po +0 -40
- package/lang/translations/id.po +0 -40
- package/lang/translations/it.po +0 -40
- package/lang/translations/ja.po +0 -40
- package/lang/translations/jv.po +0 -40
- package/lang/translations/kk.po +0 -40
- package/lang/translations/km.po +0 -40
- package/lang/translations/kn.po +0 -40
- package/lang/translations/ko.po +0 -40
- package/lang/translations/ku.po +0 -40
- package/lang/translations/lt.po +0 -40
- package/lang/translations/lv.po +0 -40
- package/lang/translations/ms.po +0 -40
- package/lang/translations/nb.po +0 -40
- package/lang/translations/ne.po +0 -40
- package/lang/translations/nl.po +0 -40
- package/lang/translations/no.po +0 -40
- package/lang/translations/oc.po +0 -40
- package/lang/translations/pl.po +0 -40
- package/lang/translations/pt-br.po +0 -40
- package/lang/translations/pt.po +0 -40
- package/lang/translations/ro.po +0 -40
- package/lang/translations/ru.po +0 -40
- package/lang/translations/si.po +0 -40
- package/lang/translations/sk.po +0 -40
- package/lang/translations/sl.po +0 -40
- package/lang/translations/sq.po +0 -40
- package/lang/translations/sr-latn.po +0 -40
- package/lang/translations/sr.po +0 -40
- package/lang/translations/sv.po +0 -40
- package/lang/translations/th.po +0 -40
- package/lang/translations/ti.po +0 -40
- package/lang/translations/tk.po +0 -40
- package/lang/translations/tr.po +0 -40
- package/lang/translations/tt.po +0 -40
- package/lang/translations/ug.po +0 -40
- package/lang/translations/uk.po +0 -40
- package/lang/translations/ur.po +0 -40
- package/lang/translations/uz.po +0 -40
- package/lang/translations/vi.po +0 -40
- package/lang/translations/zh-cn.po +0 -40
- package/lang/translations/zh.po +0 -40
- package/src/augmentation.js +0 -5
- package/src/codeblock.js +0 -39
- package/src/codeblockcommand.js +0 -142
- package/src/codeblockconfig.js +0 -5
- package/src/codeblockediting.js +0 -430
- package/src/codeblockui.js +0 -134
- package/src/converters.js +0 -285
- package/src/indentcodeblockcommand.js +0 -82
- package/src/index.js +0 -16
- package/src/outdentcodeblockcommand.js +0 -137
- package/src/utils.js +0 -296
- package/theme/codeblock.css +0 -40
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"className": "CodeBlock",
|
|
6
6
|
"description": "Allows for inserting and editing of blocks of pre–formatted code with the programming language assigned.",
|
|
7
7
|
"docs": "features/code-blocks.html",
|
|
8
|
-
"path": "src/codeblock.
|
|
8
|
+
"path": "src/codeblock.ts",
|
|
9
9
|
"uiComponents": [
|
|
10
10
|
{
|
|
11
11
|
"type": "Button",
|
|
12
12
|
"name": "codeBlock",
|
|
13
|
-
"
|
|
13
|
+
"iconName": "IconCodeBlock"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
16
|
"htmlOutput": [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Command, type Editor } from 'ckeditor5
|
|
5
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
/**
|
|
7
7
|
* The code block command plugin.
|
|
8
8
|
*/
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* ```ts
|
|
12
12
|
* ClassicEditor
|
|
13
|
-
* .create(
|
|
13
|
+
* .create( {
|
|
14
|
+
* attachTo: editorElement,
|
|
14
15
|
* codeBlock: ... // The code block feature configuration.
|
|
15
16
|
* } )
|
|
16
17
|
* .then( ... )
|
|
@@ -31,7 +32,8 @@ export interface CodeBlockConfig {
|
|
|
31
32
|
*
|
|
32
33
|
* ```ts
|
|
33
34
|
* ClassicEditor
|
|
34
|
-
* .create(
|
|
35
|
+
* .create( {
|
|
36
|
+
* attachTo: document.querySelector( '#editor' ),
|
|
35
37
|
* codeBlock: {
|
|
36
38
|
* languages: [
|
|
37
39
|
* // ...
|
|
@@ -55,7 +57,8 @@ export interface CodeBlockConfig {
|
|
|
55
57
|
*
|
|
56
58
|
* ```ts
|
|
57
59
|
* ClassicEditor
|
|
58
|
-
* .create(
|
|
60
|
+
* .create( {
|
|
61
|
+
* attachTo: document.querySelector( '#editor' ),
|
|
59
62
|
* codeBlock: {
|
|
60
63
|
* languages: [
|
|
61
64
|
* // Do not render the CSS class for the plain text code blocks.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module code-block/codeblockediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
-
import { ShiftEnter } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { ShiftEnter } from '@ckeditor/ckeditor5-enter';
|
|
10
10
|
/**
|
|
11
11
|
* The editing part of the code block feature.
|
|
12
12
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module code-block/converters
|
|
7
7
|
*/
|
|
8
|
-
import type { GetCallback } from 'ckeditor5
|
|
9
|
-
import type { DowncastInsertEvent, Model, UpcastElementEvent, UpcastTextEvent, EditingView } from 'ckeditor5
|
|
8
|
+
import type { GetCallback } from '@ckeditor/ckeditor5-utils';
|
|
9
|
+
import type { DowncastInsertEvent, Model, UpcastElementEvent, UpcastTextEvent, EditingView } from '@ckeditor/ckeditor5-engine';
|
|
10
10
|
import type { CodeBlockLanguageDefinition } from './codeblockconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* A model-to-view (both editing and data) converter for the `codeBlock` element.
|
package/dist/index-content.css
CHANGED
|
@@ -3,22 +3,21 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
.ck-content pre{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
min-width:200px;
|
|
6
|
+
color:#353535;
|
|
7
|
+
text-align:left;
|
|
8
|
+
tab-size:4;
|
|
9
|
+
white-space:pre-wrap;
|
|
10
|
+
direction:ltr;
|
|
11
|
+
background:#c7c7c74d;
|
|
12
|
+
border:1px solid #c4c4c4;
|
|
13
|
+
border-radius:2px;
|
|
14
|
+
min-width:200px;
|
|
15
|
+
padding:1em;
|
|
16
|
+
font-style:normal;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
.ck-content pre code{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
background:unset;
|
|
21
|
+
border-radius:0;
|
|
22
|
+
padding:0;
|
|
23
|
+
}
|
package/dist/index-editor.css
CHANGED
|
@@ -2,11 +2,29 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
:root{
|
|
6
|
+
--ck-color-code-block-label-background:#757575;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ck.ck-editor__editable pre[data-language]:after{
|
|
10
|
+
content:attr(data-language);
|
|
11
|
+
background:var(--ck-color-code-block-label-background);
|
|
12
|
+
font-size:10px;
|
|
13
|
+
font-family:var(--ck-font-face);
|
|
14
|
+
padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
15
|
+
color:#fff;
|
|
16
|
+
white-space:nowrap;
|
|
17
|
+
line-height:16px;
|
|
18
|
+
position:absolute;
|
|
19
|
+
top:-1px;
|
|
20
|
+
right:10px;
|
|
7
21
|
}
|
|
8
22
|
|
|
9
|
-
.ck.ck-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
.ck.ck-code-block-dropdown .ck-dropdown__panel{
|
|
24
|
+
max-height:250px;
|
|
25
|
+
overflow:hidden auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ck.ck-editor__editable pre{
|
|
29
|
+
position:relative;
|
|
30
|
+
}
|
package/dist/index.css
CHANGED
|
@@ -2,45 +2,51 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
.ck-content pre {
|
|
11
|
-
padding: 1em;
|
|
12
|
-
color: hsl(0, 0%, 20.8%);
|
|
13
|
-
background: hsla(0, 0%, 78%, 0.3);
|
|
14
|
-
border: 1px solid hsl(0, 0%, 77%);
|
|
15
|
-
border-radius: 2px;
|
|
16
|
-
|
|
17
|
-
/* Code block are language direction–agnostic. */
|
|
18
|
-
text-align: left;
|
|
19
|
-
direction: ltr;
|
|
5
|
+
:root {
|
|
6
|
+
--ck-color-code-block-label-background: #757575;
|
|
7
|
+
}
|
|
20
8
|
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
.ck.ck-editor__editable pre[data-language]:after {
|
|
10
|
+
content: attr(data-language);
|
|
11
|
+
background: var(--ck-color-code-block-label-background);
|
|
12
|
+
font-size: 10px;
|
|
13
|
+
font-family: var(--ck-font-face);
|
|
14
|
+
padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
15
|
+
color: #fff;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
line-height: 16px;
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: -1px;
|
|
20
|
+
right: 10px;
|
|
21
|
+
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
.ck.ck-code-block-dropdown .ck-dropdown__panel {
|
|
24
|
+
max-height: 250px;
|
|
25
|
+
overflow: hidden auto;
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
.ck-content pre {
|
|
29
|
+
color: #353535;
|
|
30
|
+
text-align: left;
|
|
31
|
+
tab-size: 4;
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
direction: ltr;
|
|
34
|
+
background: #c7c7c74d;
|
|
35
|
+
border: 1px solid #c4c4c4;
|
|
36
|
+
border-radius: 2px;
|
|
37
|
+
min-width: 200px;
|
|
38
|
+
padding: 1em;
|
|
39
|
+
font-style: normal;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
.ck-content pre code {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
background: unset;
|
|
44
|
+
border-radius: 0;
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
36
47
|
|
|
37
48
|
.ck.ck-editor__editable pre {
|
|
38
|
-
|
|
49
|
+
position: relative;
|
|
39
50
|
}
|
|
40
51
|
|
|
41
|
-
.ck.ck-editor__editable pre[data-language]::after {
|
|
42
|
-
content: attr(data-language);
|
|
43
|
-
position: absolute;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
52
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../theme/codeblock.css","index.css"],"names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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:root {\n\t--ck-color-code-block-label-background: hsl(0, 0%, 46%);\n}\n\n.ck.ck-editor__editable pre[data-language]::after {\n\tcontent: attr(data-language);\n\tposition: absolute;\n\ttop: -1px;\n\tright: 10px;\n\tbackground: var(--ck-color-code-block-label-background);\n\n\tfont-size: 10px;\n\tfont-family: var(--ck-font-face);\n\tline-height: 16px;\n\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\tcolor: hsl(0, 0%, 100%);\n\twhite-space: nowrap;\n}\n\n.ck.ck-code-block-dropdown .ck-dropdown__panel {\n\t/* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */\n\tmax-height: 250px;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n}\n\n.ck-content pre {\n\tpadding: 1em;\n\tcolor: hsl(0, 0%, 20.8%);\n\tbackground: hsla(0, 0%, 78%, 0.3);\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\n\t/* Code block are language direction–agnostic. */\n\ttext-align: left;\n\tdirection: ltr;\n\n\ttab-size: 4;\n\twhite-space: pre-wrap;\n\n\t/* Don't inherit the style, e.g. when in a block quote. */\n\tfont-style: normal;\n\n\t/* Don't let the code be squashed e.g. when in a table cell. */\n\tmin-width: 200px;\n\n\t& code {\n\t\tbackground: unset;\n\t\tpadding: 0;\n\t\tborder-radius: 0;\n\t}\n}\n\n.ck.ck-editor__editable pre {\n\tposition: relative;\n}\n",":root {\n --ck-color-code-block-label-background: #757575;\n}\n\n.ck.ck-editor__editable pre[data-language]:after {\n content: attr(data-language);\n background: var(--ck-color-code-block-label-background);\n font-size: 10px;\n font-family: var(--ck-font-face);\n padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n color: #fff;\n white-space: nowrap;\n line-height: 16px;\n position: absolute;\n top: -1px;\n right: 10px;\n}\n\n.ck.ck-code-block-dropdown .ck-dropdown__panel {\n max-height: 250px;\n overflow: hidden auto;\n}\n\n.ck-content pre {\n color: #353535;\n text-align: left;\n tab-size: 4;\n white-space: pre-wrap;\n direction: ltr;\n background: #c7c7c74d;\n border: 1px solid #c4c4c4;\n border-radius: 2px;\n min-width: 200px;\n padding: 1em;\n font-style: normal;\n}\n\n.ck-content pre code {\n background: unset;\n border-radius: 0;\n padding: 0;\n}\n\n.ck.ck-editor__editable pre {\n position: relative;\n}\n\n/*# sourceMappingURL=index.css.map */"]}
|