@ckeditor/ckeditor5-autoformat 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.
Files changed (162) hide show
  1. package/ckeditor5-metadata.json +1 -1
  2. package/{src → dist}/autoformat.d.ts +2 -2
  3. package/{src → dist}/blockautoformatediting.d.ts +1 -1
  4. package/dist/index.css +3 -0
  5. package/dist/index.css.map +1 -0
  6. package/dist/index.js.map +1 -1
  7. package/{src → dist}/inlineautoformatediting.d.ts +2 -2
  8. package/package.json +23 -46
  9. package/build/autoformat.js +0 -5
  10. package/build/translations/af.js +0 -1
  11. package/build/translations/ar.js +0 -1
  12. package/build/translations/ast.js +0 -1
  13. package/build/translations/az.js +0 -1
  14. package/build/translations/be.js +0 -1
  15. package/build/translations/bg.js +0 -1
  16. package/build/translations/bn.js +0 -1
  17. package/build/translations/bs.js +0 -1
  18. package/build/translations/ca.js +0 -1
  19. package/build/translations/cs.js +0 -1
  20. package/build/translations/da.js +0 -1
  21. package/build/translations/de-ch.js +0 -1
  22. package/build/translations/de.js +0 -1
  23. package/build/translations/el.js +0 -1
  24. package/build/translations/en-au.js +0 -1
  25. package/build/translations/en-gb.js +0 -1
  26. package/build/translations/eo.js +0 -1
  27. package/build/translations/es-co.js +0 -1
  28. package/build/translations/es.js +0 -1
  29. package/build/translations/et.js +0 -1
  30. package/build/translations/eu.js +0 -1
  31. package/build/translations/fa.js +0 -1
  32. package/build/translations/fi.js +0 -1
  33. package/build/translations/fr.js +0 -1
  34. package/build/translations/gl.js +0 -1
  35. package/build/translations/gu.js +0 -1
  36. package/build/translations/he.js +0 -1
  37. package/build/translations/hi.js +0 -1
  38. package/build/translations/hr.js +0 -1
  39. package/build/translations/hu.js +0 -1
  40. package/build/translations/hy.js +0 -1
  41. package/build/translations/id.js +0 -1
  42. package/build/translations/it.js +0 -1
  43. package/build/translations/ja.js +0 -1
  44. package/build/translations/jv.js +0 -1
  45. package/build/translations/kk.js +0 -1
  46. package/build/translations/km.js +0 -1
  47. package/build/translations/kn.js +0 -1
  48. package/build/translations/ko.js +0 -1
  49. package/build/translations/ku.js +0 -1
  50. package/build/translations/lt.js +0 -1
  51. package/build/translations/lv.js +0 -1
  52. package/build/translations/ms.js +0 -1
  53. package/build/translations/nb.js +0 -1
  54. package/build/translations/ne.js +0 -1
  55. package/build/translations/nl.js +0 -1
  56. package/build/translations/no.js +0 -1
  57. package/build/translations/oc.js +0 -1
  58. package/build/translations/pl.js +0 -1
  59. package/build/translations/pt-br.js +0 -1
  60. package/build/translations/pt.js +0 -1
  61. package/build/translations/ro.js +0 -1
  62. package/build/translations/ru.js +0 -1
  63. package/build/translations/si.js +0 -1
  64. package/build/translations/sk.js +0 -1
  65. package/build/translations/sl.js +0 -1
  66. package/build/translations/sq.js +0 -1
  67. package/build/translations/sr-latn.js +0 -1
  68. package/build/translations/sr.js +0 -1
  69. package/build/translations/sv.js +0 -1
  70. package/build/translations/th.js +0 -1
  71. package/build/translations/ti.js +0 -1
  72. package/build/translations/tk.js +0 -1
  73. package/build/translations/tr.js +0 -1
  74. package/build/translations/tt.js +0 -1
  75. package/build/translations/ug.js +0 -1
  76. package/build/translations/uk.js +0 -1
  77. package/build/translations/ur.js +0 -1
  78. package/build/translations/uz.js +0 -1
  79. package/build/translations/vi.js +0 -1
  80. package/build/translations/zh-cn.js +0 -1
  81. package/build/translations/zh.js +0 -1
  82. package/lang/contexts.json +0 -3
  83. package/lang/translations/af.po +0 -16
  84. package/lang/translations/ar.po +0 -16
  85. package/lang/translations/ast.po +0 -16
  86. package/lang/translations/az.po +0 -16
  87. package/lang/translations/be.po +0 -16
  88. package/lang/translations/bg.po +0 -16
  89. package/lang/translations/bn.po +0 -16
  90. package/lang/translations/bs.po +0 -16
  91. package/lang/translations/ca.po +0 -16
  92. package/lang/translations/cs.po +0 -16
  93. package/lang/translations/da.po +0 -16
  94. package/lang/translations/de-ch.po +0 -16
  95. package/lang/translations/de.po +0 -16
  96. package/lang/translations/el.po +0 -16
  97. package/lang/translations/en-au.po +0 -16
  98. package/lang/translations/en-gb.po +0 -16
  99. package/lang/translations/en.po +0 -16
  100. package/lang/translations/eo.po +0 -16
  101. package/lang/translations/es-co.po +0 -16
  102. package/lang/translations/es.po +0 -16
  103. package/lang/translations/et.po +0 -16
  104. package/lang/translations/eu.po +0 -16
  105. package/lang/translations/fa.po +0 -16
  106. package/lang/translations/fi.po +0 -16
  107. package/lang/translations/fr.po +0 -16
  108. package/lang/translations/gl.po +0 -16
  109. package/lang/translations/gu.po +0 -16
  110. package/lang/translations/he.po +0 -16
  111. package/lang/translations/hi.po +0 -16
  112. package/lang/translations/hr.po +0 -16
  113. package/lang/translations/hu.po +0 -16
  114. package/lang/translations/hy.po +0 -16
  115. package/lang/translations/id.po +0 -16
  116. package/lang/translations/it.po +0 -16
  117. package/lang/translations/ja.po +0 -16
  118. package/lang/translations/jv.po +0 -16
  119. package/lang/translations/kk.po +0 -16
  120. package/lang/translations/km.po +0 -16
  121. package/lang/translations/kn.po +0 -16
  122. package/lang/translations/ko.po +0 -16
  123. package/lang/translations/ku.po +0 -16
  124. package/lang/translations/lt.po +0 -16
  125. package/lang/translations/lv.po +0 -16
  126. package/lang/translations/ms.po +0 -16
  127. package/lang/translations/nb.po +0 -16
  128. package/lang/translations/ne.po +0 -16
  129. package/lang/translations/nl.po +0 -16
  130. package/lang/translations/no.po +0 -16
  131. package/lang/translations/oc.po +0 -16
  132. package/lang/translations/pl.po +0 -16
  133. package/lang/translations/pt-br.po +0 -16
  134. package/lang/translations/pt.po +0 -16
  135. package/lang/translations/ro.po +0 -16
  136. package/lang/translations/ru.po +0 -16
  137. package/lang/translations/si.po +0 -16
  138. package/lang/translations/sk.po +0 -16
  139. package/lang/translations/sl.po +0 -16
  140. package/lang/translations/sq.po +0 -16
  141. package/lang/translations/sr-latn.po +0 -16
  142. package/lang/translations/sr.po +0 -16
  143. package/lang/translations/sv.po +0 -16
  144. package/lang/translations/th.po +0 -16
  145. package/lang/translations/ti.po +0 -16
  146. package/lang/translations/tk.po +0 -16
  147. package/lang/translations/tr.po +0 -16
  148. package/lang/translations/tt.po +0 -16
  149. package/lang/translations/ug.po +0 -16
  150. package/lang/translations/uk.po +0 -16
  151. package/lang/translations/ur.po +0 -16
  152. package/lang/translations/uz.po +0 -16
  153. package/lang/translations/vi.po +0 -16
  154. package/lang/translations/zh-cn.po +0 -16
  155. package/lang/translations/zh.po +0 -16
  156. package/src/augmentation.js +0 -5
  157. package/src/autoformat.js +0 -206
  158. package/src/blockautoformatediting.js +0 -158
  159. package/src/index.js +0 -11
  160. package/src/inlineautoformatediting.js +0 -174
  161. /package/{src → dist}/augmentation.d.ts +0 -0
  162. /package/{src → dist}/index.d.ts +0 -0
@@ -1,16 +0,0 @@
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: oc\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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: pl\n"
11
- "Plural-Forms: nplurals=3; plural=(n == 1 ? 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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Cofa automatyczne formatowanie"
@@ -1,16 +0,0 @@
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: pt_BR\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Reverter ação de autoformatação"
@@ -1,16 +0,0 @@
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: pt\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Reverter ação de formatação automática"
@@ -1,16 +0,0 @@
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: ro\n"
11
- "Plural-Forms: nplurals=3; plural=(n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Anulează acțiunea de formatare automată"
@@ -1,16 +0,0 @@
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: ru\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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Отменить действие автоформатирования"
@@ -1,16 +0,0 @@
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: si_LK\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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: sk\n"
11
- "Plural-Forms: nplurals=3; plural=(n == 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Vrátiť späť automatické formátovanie"
@@ -1,16 +0,0 @@
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: sl\n"
11
- "Plural-Forms: nplurals=4; plural=(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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: sq\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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: sr@latin\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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Vrati radnju automatskog formatiranja"
@@ -1,16 +0,0 @@
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: sr\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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Vrati na automatsko formatiranje"
@@ -1,16 +0,0 @@
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: sv\n"
11
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Ångra automatisk formatering"
@@ -1,16 +0,0 @@
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: th\n"
11
- "Plural-Forms: nplurals=1; plural=0;\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "ยกเลิกการดำเนินการจัดรูปแบบอัตโนมัติ"
@@ -1,16 +0,0 @@
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: ti\n"
11
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
-
14
- msgctxt "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Otomatik biçimlendirme işlemini geri al"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Автоматик форматлау гамәлләрен бетер"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "ئۆزلۈكىدىن پىچىم مەشغۇلاتىنى ئەسلىگە قايتۇرىدۇ"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Скасувати дію автоформатування"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr ""
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "Hoàn nguyên thao tác tự động định dạng"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "恢复自动格式化操作"
@@ -1,16 +0,0 @@
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 "Keystroke description for assistive technologies: keystroke for reverting autoformatting action."
15
- msgid "Revert autoformatting action"
16
- msgstr "復原自動格式化操作"
@@ -1,5 +0,0 @@
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 {};
package/src/autoformat.js DELETED
@@ -1,206 +0,0 @@
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
- import { Plugin } from 'ckeditor5/src/core.js';
6
- import { Delete } from 'ckeditor5/src/typing.js';
7
- import { blockAutoformatEditing } from './blockautoformatediting.js';
8
- import { inlineAutoformatEditing } from './inlineautoformatediting.js';
9
- /**
10
- * Enables a set of predefined autoformatting actions.
11
- *
12
- * For a detailed overview, check the {@glink features/autoformat Autoformatting} feature guide
13
- * and the {@glink api/autoformat package page}.
14
- */
15
- export class Autoformat extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get requires() {
20
- return [Delete];
21
- }
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName() {
26
- return 'Autoformat';
27
- }
28
- /**
29
- * @inheritDoc
30
- */
31
- static get isOfficialPlugin() {
32
- return true;
33
- }
34
- /**
35
- * @inheritDoc
36
- */
37
- afterInit() {
38
- const editor = this.editor;
39
- const t = this.editor.t;
40
- this._addListAutoformats();
41
- this._addBasicStylesAutoformats();
42
- this._addHeadingAutoformats();
43
- this._addBlockQuoteAutoformats();
44
- this._addCodeBlockAutoformats();
45
- this._addHorizontalLineAutoformats();
46
- // Add the information about the keystroke to the accessibility database.
47
- editor.accessibility.addKeystrokeInfos({
48
- keystrokes: [
49
- {
50
- label: t('Revert autoformatting action'),
51
- keystroke: 'Backspace'
52
- }
53
- ]
54
- });
55
- }
56
- /**
57
- * Adds autoformatting related to the {@link module:list/list~List}.
58
- *
59
- * When typed:
60
- * - `* ` or `- ` &ndash; A paragraph will be changed into a bulleted list.
61
- * - `1. ` or `1) ` &ndash; A paragraph will be changed into a numbered list ("1" can be any digit or a list of digits).
62
- * - `[] ` or `[ ] ` &ndash; A paragraph will be changed into a to-do list.
63
- * - `[x] ` or `[ x ] ` &ndash; A paragraph will be changed into a checked to-do list.
64
- */
65
- _addListAutoformats() {
66
- const commands = this.editor.commands;
67
- if (commands.get('bulletedList')) {
68
- blockAutoformatEditing(this.editor, this, /^[*-]\s$/, 'bulletedList');
69
- }
70
- if (commands.get('numberedList')) {
71
- blockAutoformatEditing(this.editor, this, /^1[.|)]\s$/, 'numberedList');
72
- }
73
- if (commands.get('todoList')) {
74
- blockAutoformatEditing(this.editor, this, /^\[\s?\]\s$/, 'todoList');
75
- }
76
- if (commands.get('checkTodoList')) {
77
- blockAutoformatEditing(this.editor, this, /^\[\s?x\s?\]\s$/, () => {
78
- this.editor.execute('todoList');
79
- this.editor.execute('checkTodoList');
80
- });
81
- }
82
- }
83
- /**
84
- * Adds autoformatting related to the {@link module:basic-styles/bold~Bold},
85
- * {@link module:basic-styles/italic~Italic}, {@link module:basic-styles/code~Code}
86
- * and {@link module:basic-styles/strikethrough~Strikethrough}
87
- *
88
- * When typed:
89
- * - `**foobar**` &ndash; `**` characters are removed and `foobar` is set to bold,
90
- * - `__foobar__` &ndash; `__` characters are removed and `foobar` is set to bold,
91
- * - `*foobar*` &ndash; `*` characters are removed and `foobar` is set to italic,
92
- * - `_foobar_` &ndash; `_` characters are removed and `foobar` is set to italic,
93
- * - ``` `foobar` &ndash; ``` ` ``` characters are removed and `foobar` is set to code,
94
- * - `~~foobar~~` &ndash; `~~` characters are removed and `foobar` is set to strikethrough.
95
- */
96
- _addBasicStylesAutoformats() {
97
- const commands = this.editor.commands;
98
- if (commands.get('bold')) {
99
- const boldCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'bold');
100
- inlineAutoformatEditing(this.editor, this, /(?:^|\s)(\*\*)([^*]+)(\*\*)$/g, boldCallback);
101
- inlineAutoformatEditing(this.editor, this, /(?:^|\s)(__)([^_]+)(__)$/g, boldCallback);
102
- }
103
- if (commands.get('italic')) {
104
- const italicCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'italic');
105
- // The italic autoformatter cannot be triggered by the bold markers, so we need to check the
106
- // text before the pattern (e.g. `(?:^|[^\*])`).
107
- inlineAutoformatEditing(this.editor, this, /(?:^|\s)(\*)([^*_]+)(\*)$/g, italicCallback);
108
- inlineAutoformatEditing(this.editor, this, /(?:^|\s)(_)([^_]+)(_)$/g, italicCallback);
109
- }
110
- if (commands.get('code')) {
111
- const codeCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'code');
112
- inlineAutoformatEditing(this.editor, this, /(`)([^`]+)(`)$/g, codeCallback);
113
- }
114
- if (commands.get('strikethrough')) {
115
- const strikethroughCallback = getCallbackFunctionForInlineAutoformat(this.editor, 'strikethrough');
116
- inlineAutoformatEditing(this.editor, this, /(~~)([^~]+)(~~)$/g, strikethroughCallback);
117
- }
118
- }
119
- /**
120
- * Adds autoformatting related to {@link module:heading/heading~Heading}.
121
- *
122
- * It is using a number at the end of the command name to associate it with the proper trigger:
123
- *
124
- * * `heading` with a `heading1` value will be executed when typing `#`,
125
- * * `heading` with a `heading2` value will be executed when typing `##`,
126
- * * ... up to `heading6` for `######`.
127
- */
128
- _addHeadingAutoformats() {
129
- const command = this.editor.commands.get('heading');
130
- if (command) {
131
- command.modelElements
132
- .filter(name => name.match(/^heading[1-6]$/))
133
- .forEach(modelName => {
134
- const level = modelName[7];
135
- const pattern = new RegExp(`^(#{${level}})\\s$`);
136
- blockAutoformatEditing(this.editor, this, pattern, () => {
137
- // Should only be active if command is enabled and heading style associated with pattern is inactive.
138
- if (!command.isEnabled || command.value === modelName) {
139
- return false;
140
- }
141
- this.editor.execute('heading', { value: modelName });
142
- });
143
- });
144
- }
145
- }
146
- /**
147
- * Adds autoformatting related to {@link module:block-quote/blockquote~BlockQuote}.
148
- *
149
- * When typed:
150
- * * `> ` &ndash; A paragraph will be changed to a block quote.
151
- */
152
- _addBlockQuoteAutoformats() {
153
- if (this.editor.commands.get('blockQuote')) {
154
- blockAutoformatEditing(this.editor, this, /^>\s$/, 'blockQuote');
155
- }
156
- }
157
- /**
158
- * Adds autoformatting related to {@link module:code-block/codeblock~CodeBlock}.
159
- *
160
- * When typed:
161
- * - `` ``` `` &ndash; A paragraph will be changed to a code block.
162
- */
163
- _addCodeBlockAutoformats() {
164
- const editor = this.editor;
165
- const selection = editor.model.document.selection;
166
- if (editor.commands.get('codeBlock')) {
167
- blockAutoformatEditing(editor, this, /^```$/, () => {
168
- if (selection.getFirstPosition().parent.is('element', 'listItem')) {
169
- return false;
170
- }
171
- this.editor.execute('codeBlock', {
172
- usePreviousLanguageChoice: true
173
- });
174
- });
175
- }
176
- }
177
- /**
178
- * Adds autoformatting related to {@link module:horizontal-line/horizontalline~HorizontalLine}.
179
- *
180
- * When typed:
181
- * - `` --- `` &ndash; Will be replaced with a horizontal line.
182
- */
183
- _addHorizontalLineAutoformats() {
184
- if (this.editor.commands.get('horizontalLine')) {
185
- blockAutoformatEditing(this.editor, this, /^---$/, 'horizontalLine');
186
- }
187
- }
188
- }
189
- /**
190
- * Helper function for getting `inlineAutoformatEditing` callbacks that checks if command is enabled.
191
- */
192
- function getCallbackFunctionForInlineAutoformat(editor, attributeKey) {
193
- return (writer, rangesToFormat) => {
194
- const command = editor.commands.get(attributeKey);
195
- if (!command.isEnabled) {
196
- return false;
197
- }
198
- const validRanges = editor.model.schema.getValidRanges(rangesToFormat, attributeKey);
199
- for (const range of validRanges) {
200
- writer.setAttribute(attributeKey, true, range);
201
- }
202
- // After applying attribute to the text, remove given attribute from the selection.
203
- // This way user is able to type a text without attribute used by auto formatter.
204
- writer.removeSelectionAttribute(attributeKey);
205
- };
206
- }