@ckeditor/ckeditor5-code-block 0.0.0-nightly-next-20260118.0 → 0.0.0-nightly-20260119.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.
Files changed (173) hide show
  1. package/build/code-block.js +5 -0
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/ast.js +1 -0
  5. package/build/translations/az.js +1 -0
  6. package/build/translations/be.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/bn.js +1 -0
  9. package/build/translations/bs.js +1 -0
  10. package/build/translations/ca.js +1 -0
  11. package/build/translations/cs.js +1 -0
  12. package/build/translations/da.js +1 -0
  13. package/build/translations/de-ch.js +1 -0
  14. package/build/translations/de.js +1 -0
  15. package/build/translations/el.js +1 -0
  16. package/build/translations/en-au.js +1 -0
  17. package/build/translations/en-gb.js +1 -0
  18. package/build/translations/eo.js +1 -0
  19. package/build/translations/es-co.js +1 -0
  20. package/build/translations/es.js +1 -0
  21. package/build/translations/et.js +1 -0
  22. package/build/translations/eu.js +1 -0
  23. package/build/translations/fa.js +1 -0
  24. package/build/translations/fi.js +1 -0
  25. package/build/translations/fr.js +1 -0
  26. package/build/translations/gl.js +1 -0
  27. package/build/translations/gu.js +1 -0
  28. package/build/translations/he.js +1 -0
  29. package/build/translations/hi.js +1 -0
  30. package/build/translations/hr.js +1 -0
  31. package/build/translations/hu.js +1 -0
  32. package/build/translations/hy.js +1 -0
  33. package/build/translations/id.js +1 -0
  34. package/build/translations/it.js +1 -0
  35. package/build/translations/ja.js +1 -0
  36. package/build/translations/jv.js +1 -0
  37. package/build/translations/kk.js +1 -0
  38. package/build/translations/km.js +1 -0
  39. package/build/translations/kn.js +1 -0
  40. package/build/translations/ko.js +1 -0
  41. package/build/translations/ku.js +1 -0
  42. package/build/translations/lt.js +1 -0
  43. package/build/translations/lv.js +1 -0
  44. package/build/translations/ms.js +1 -0
  45. package/build/translations/nb.js +1 -0
  46. package/build/translations/ne.js +1 -0
  47. package/build/translations/nl.js +1 -0
  48. package/build/translations/no.js +1 -0
  49. package/build/translations/oc.js +1 -0
  50. package/build/translations/pl.js +1 -0
  51. package/build/translations/pt-br.js +1 -0
  52. package/build/translations/pt.js +1 -0
  53. package/build/translations/ro.js +1 -0
  54. package/build/translations/ru.js +1 -0
  55. package/build/translations/si.js +1 -0
  56. package/build/translations/sk.js +1 -0
  57. package/build/translations/sl.js +1 -0
  58. package/build/translations/sq.js +1 -0
  59. package/build/translations/sr-latn.js +1 -0
  60. package/build/translations/sr.js +1 -0
  61. package/build/translations/sv.js +1 -0
  62. package/build/translations/th.js +1 -0
  63. package/build/translations/ti.js +1 -0
  64. package/build/translations/tk.js +1 -0
  65. package/build/translations/tr.js +1 -0
  66. package/build/translations/tt.js +1 -0
  67. package/build/translations/ug.js +1 -0
  68. package/build/translations/uk.js +1 -0
  69. package/build/translations/ur.js +1 -0
  70. package/build/translations/uz.js +1 -0
  71. package/build/translations/vi.js +1 -0
  72. package/build/translations/zh-cn.js +1 -0
  73. package/build/translations/zh.js +1 -0
  74. package/ckeditor5-metadata.json +1 -1
  75. package/dist/index.js.map +1 -1
  76. package/lang/contexts.json +9 -0
  77. package/lang/translations/af.po +40 -0
  78. package/lang/translations/ar.po +40 -0
  79. package/lang/translations/ast.po +40 -0
  80. package/lang/translations/az.po +40 -0
  81. package/lang/translations/be.po +40 -0
  82. package/lang/translations/bg.po +40 -0
  83. package/lang/translations/bn.po +40 -0
  84. package/lang/translations/bs.po +40 -0
  85. package/lang/translations/ca.po +40 -0
  86. package/lang/translations/cs.po +40 -0
  87. package/lang/translations/da.po +40 -0
  88. package/lang/translations/de-ch.po +40 -0
  89. package/lang/translations/de.po +40 -0
  90. package/lang/translations/el.po +40 -0
  91. package/lang/translations/en-au.po +40 -0
  92. package/lang/translations/en-gb.po +40 -0
  93. package/lang/translations/en.po +40 -0
  94. package/lang/translations/eo.po +40 -0
  95. package/lang/translations/es-co.po +40 -0
  96. package/lang/translations/es.po +40 -0
  97. package/lang/translations/et.po +40 -0
  98. package/lang/translations/eu.po +40 -0
  99. package/lang/translations/fa.po +40 -0
  100. package/lang/translations/fi.po +40 -0
  101. package/lang/translations/fr.po +40 -0
  102. package/lang/translations/gl.po +40 -0
  103. package/lang/translations/gu.po +40 -0
  104. package/lang/translations/he.po +40 -0
  105. package/lang/translations/hi.po +40 -0
  106. package/lang/translations/hr.po +40 -0
  107. package/lang/translations/hu.po +40 -0
  108. package/lang/translations/hy.po +40 -0
  109. package/lang/translations/id.po +40 -0
  110. package/lang/translations/it.po +40 -0
  111. package/lang/translations/ja.po +40 -0
  112. package/lang/translations/jv.po +40 -0
  113. package/lang/translations/kk.po +40 -0
  114. package/lang/translations/km.po +40 -0
  115. package/lang/translations/kn.po +40 -0
  116. package/lang/translations/ko.po +40 -0
  117. package/lang/translations/ku.po +40 -0
  118. package/lang/translations/lt.po +40 -0
  119. package/lang/translations/lv.po +40 -0
  120. package/lang/translations/ms.po +40 -0
  121. package/lang/translations/nb.po +40 -0
  122. package/lang/translations/ne.po +40 -0
  123. package/lang/translations/nl.po +40 -0
  124. package/lang/translations/no.po +40 -0
  125. package/lang/translations/oc.po +40 -0
  126. package/lang/translations/pl.po +40 -0
  127. package/lang/translations/pt-br.po +40 -0
  128. package/lang/translations/pt.po +40 -0
  129. package/lang/translations/ro.po +40 -0
  130. package/lang/translations/ru.po +40 -0
  131. package/lang/translations/si.po +40 -0
  132. package/lang/translations/sk.po +40 -0
  133. package/lang/translations/sl.po +40 -0
  134. package/lang/translations/sq.po +40 -0
  135. package/lang/translations/sr-latn.po +40 -0
  136. package/lang/translations/sr.po +40 -0
  137. package/lang/translations/sv.po +40 -0
  138. package/lang/translations/th.po +40 -0
  139. package/lang/translations/ti.po +40 -0
  140. package/lang/translations/tk.po +40 -0
  141. package/lang/translations/tr.po +40 -0
  142. package/lang/translations/tt.po +40 -0
  143. package/lang/translations/ug.po +40 -0
  144. package/lang/translations/uk.po +40 -0
  145. package/lang/translations/ur.po +40 -0
  146. package/lang/translations/uz.po +40 -0
  147. package/lang/translations/vi.po +40 -0
  148. package/lang/translations/zh-cn.po +40 -0
  149. package/lang/translations/zh.po +40 -0
  150. package/package.json +49 -25
  151. package/src/augmentation.js +5 -0
  152. package/{dist → src}/codeblock.d.ts +1 -1
  153. package/src/codeblock.js +39 -0
  154. package/{dist → src}/codeblockcommand.d.ts +1 -1
  155. package/src/codeblockcommand.js +142 -0
  156. package/src/codeblockconfig.js +5 -0
  157. package/{dist → src}/codeblockediting.d.ts +2 -2
  158. package/src/codeblockediting.js +430 -0
  159. package/{dist → src}/codeblockui.d.ts +1 -1
  160. package/src/codeblockui.js +134 -0
  161. package/{dist → src}/converters.d.ts +2 -2
  162. package/src/converters.js +285 -0
  163. package/{dist → src}/indentcodeblockcommand.d.ts +1 -1
  164. package/src/indentcodeblockcommand.js +82 -0
  165. package/src/index.js +16 -0
  166. package/{dist → src}/outdentcodeblockcommand.d.ts +1 -1
  167. package/src/outdentcodeblockcommand.js +137 -0
  168. package/{dist → src}/utils.d.ts +3 -3
  169. package/src/utils.js +296 -0
  170. package/theme/codeblock.css +40 -0
  171. /package/{dist → src}/augmentation.d.ts +0 -0
  172. /package/{dist → src}/codeblockconfig.d.ts +0 -0
  173. /package/{dist → src}/index.d.ts +0 -0
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: tk\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "Kod blogyna goýuň"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "Düz tekst"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr ""
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr ""
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr ""
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr ""
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr ""
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: tr\n"
11
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "Kod bloğu ekle"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "Düz metin"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr "%0 kod parçacığından ayrılınıyor"
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr "%0 kod parçacığına girmek"
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr "Kod parçacığına girmek"
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr "Kod parçacığından ayrılma"
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr "Kod bloku"
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: tt\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr ""
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr ""
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr ""
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr ""
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr ""
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr ""
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr ""
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: ug\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "كود بۆلىكى قىستۇر"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "ساپ تېكىست"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr ""
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr ""
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr ""
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr ""
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr ""
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: uk\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "Вставте блок коду"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "Простий текст"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr "Вихід з фрагменту коду %0"
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr "Вхід у фрагмент коду %0"
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr "Вхід у фрагмент коду"
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr "Вихід з фрагменту коду"
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr "Блок коду"
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: ur\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "کوڈ خانہ نصب کیرں"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "سادہ متن"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr ""
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr ""
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr ""
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr ""
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr ""
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: uz\n"
11
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "Kodni kiritish"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "Oddiy matn"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr ""
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr ""
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr ""
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr ""
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr ""
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: vi\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "Chèn khối mã"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "Văn bản thuần"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr "Đang rời khỏi đoạn mã snippet %0"
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr "Đang nhập đoạn mã snippet %0"
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr "Đang nhập đoạn mã snippet"
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr "Đang rời khỏi đoạn mã snippet"
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr "Khối mã"
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: zh_CN\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "插入代码块"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "纯文本"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr "正在退出 %0 代码片段"
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr "正在输入 %0 代码片段"
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr "正在输入代码片段"
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr "正在退出代码片段"
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr "代码块"
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: zh_TW\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button that allows inserting a new code block into the editor content."
15
+ msgid "Insert code block"
16
+ msgstr "插入程式碼區塊"
17
+
18
+ msgctxt "A language of the code block in the editor content when no specific programming language is associated with it."
19
+ msgid "Plain text"
20
+ msgstr "純文字"
21
+
22
+ msgctxt "Assistive technologies label for leaving the code block with a specified programming language. Example: 'Leaving JavaScript code snippet'"
23
+ msgid "Leaving %0 code snippet"
24
+ msgstr "離開 %0 程式碼片段"
25
+
26
+ msgctxt "Assistive technologies label for entering the code block with a specified programming language. Example: 'Entering JavaScript code snippet'"
27
+ msgid "Entering %0 code snippet"
28
+ msgstr "進入 %0 程式碼片段"
29
+
30
+ msgctxt "Assistive technologies label for entering the code block with unspecified programming language."
31
+ msgid "Entering code snippet"
32
+ msgstr "進入程式碼片段"
33
+
34
+ msgctxt "Assistive technologies label for leaving the code block with unspecified programming language."
35
+ msgid "Leaving code snippet"
36
+ msgstr "離開程式碼片段"
37
+
38
+ msgctxt "The accessible label of the menu bar button that inserts a code block into editor content."
39
+ msgid "Code block"
40
+ msgstr "程式碼區塊"
package/package.json CHANGED
@@ -1,43 +1,67 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-code-block",
3
- "version": "0.0.0-nightly-next-20260118.0",
3
+ "version": "0.0.0-nightly-20260119.0",
4
4
  "description": "Code block feature for CKEditor 5.",
5
- "license": "SEE LICENSE IN LICENSE.md",
6
- "author": "CKSource (http://cksource.com/)",
7
- "homepage": "https://ckeditor.com/ckeditor-5",
8
- "bugs": "https://github.com/ckeditor/ckeditor5/issues",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/ckeditor/ckeditor5.git",
12
- "directory": "packages/ckeditor5-code-block"
13
- },
14
5
  "keywords": [
15
6
  "ckeditor",
16
7
  "ckeditor5",
17
8
  "ckeditor 5",
18
9
  "ckeditor5-feature",
19
- "ckeditor5-plugin"
10
+ "ckeditor5-plugin",
11
+ "ckeditor5-dll"
20
12
  ],
21
13
  "type": "module",
22
- "main": "./dist/index.js",
23
- "exports": {
24
- ".": "./dist/index.js",
25
- "./dist/*": "./dist/*",
26
- "./package.json": "./package.json"
27
- },
14
+ "main": "src/index.js",
28
15
  "dependencies": {
29
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20260118.0",
30
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20260118.0",
31
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20260118.0",
32
- "@ckeditor/ckeditor5-enter": "0.0.0-nightly-next-20260118.0",
33
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20260118.0",
34
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20260118.0",
35
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20260118.0"
16
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20260119.0",
17
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20260119.0",
18
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20260119.0",
19
+ "@ckeditor/ckeditor5-enter": "0.0.0-nightly-20260119.0",
20
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260119.0",
21
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260119.0",
22
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260119.0",
23
+ "ckeditor5": "0.0.0-nightly-20260119.0"
24
+ },
25
+ "author": "CKSource (http://cksource.com/)",
26
+ "license": "SEE LICENSE IN LICENSE.md",
27
+ "homepage": "https://ckeditor.com/ckeditor-5",
28
+ "bugs": "https://github.com/ckeditor/ckeditor5/issues",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/ckeditor/ckeditor5.git",
32
+ "directory": "packages/ckeditor5-code-block"
36
33
  },
37
34
  "files": [
38
35
  "dist",
36
+ "lang",
37
+ "src/**/*.js",
38
+ "src/**/*.d.ts",
39
+ "theme",
40
+ "build",
39
41
  "ckeditor5-metadata.json",
40
42
  "CHANGELOG.md"
41
43
  ],
42
- "types": "./dist/index.d.ts"
44
+ "types": "src/index.d.ts",
45
+ "exports": {
46
+ ".": {
47
+ "types": "./src/index.d.ts",
48
+ "import": "./src/index.js",
49
+ "default": "./src/index.js"
50
+ },
51
+ "./dist/*": {
52
+ "types": "./src/index.d.ts",
53
+ "import": "./dist/*",
54
+ "default": "./dist/*"
55
+ },
56
+ "./src/*": {
57
+ "types": "./src/*.d.ts",
58
+ "import": "./src/*",
59
+ "default": "./src/*"
60
+ },
61
+ "./build/*": "./build/*",
62
+ "./lang/*": "./lang/*",
63
+ "./theme/*": "./theme/*",
64
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
65
+ "./package.json": "./package.json"
66
+ }
43
67
  }
@@ -0,0 +1,5 @@
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
+ */
5
+ export {};
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module code-block/codeblock
7
7
  */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { CodeBlockEditing } from './codeblockediting.js';
10
10
  import { CodeBlockUI } from './codeblockui.js';
11
11
  /**
@@ -0,0 +1,39 @@
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
+ */
5
+ /**
6
+ * @module code-block/codeblock
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { CodeBlockEditing } from './codeblockediting.js';
10
+ import { CodeBlockUI } from './codeblockui.js';
11
+ /**
12
+ * The code block plugin.
13
+ *
14
+ * For more information about this feature check the {@glink api/code-block package page} and the
15
+ * {@glink features/code-blocks code block} feature guide.
16
+ *
17
+ * This is a "glue" plugin that loads the {@link module:code-block/codeblockediting~CodeBlockEditing code block editing feature}
18
+ * and the {@link module:code-block/codeblockui~CodeBlockUI code block UI feature}.
19
+ */
20
+ export class CodeBlock extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires() {
25
+ return [CodeBlockEditing, CodeBlockUI];
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'CodeBlock';
32
+ }
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ static get isOfficialPlugin() {
37
+ return true;
38
+ }
39
+ }
@@ -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 '@ckeditor/ckeditor5-core';
5
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The code block command plugin.
8
8
  */