@ckeditor/ckeditor5-font 37.1.0 → 38.0.0-rc.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 (131) hide show
  1. package/LICENSE.md +6 -0
  2. package/build/font.js +2 -2
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de-ch.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/en-gb.js +1 -1
  16. package/build/translations/es.js +1 -1
  17. package/build/translations/et.js +1 -1
  18. package/build/translations/fa.js +1 -1
  19. package/build/translations/fi.js +1 -1
  20. package/build/translations/fr.js +1 -1
  21. package/build/translations/gl.js +1 -1
  22. package/build/translations/he.js +1 -1
  23. package/build/translations/hi.js +1 -1
  24. package/build/translations/hr.js +1 -1
  25. package/build/translations/hu.js +1 -1
  26. package/build/translations/id.js +1 -1
  27. package/build/translations/it.js +1 -1
  28. package/build/translations/ja.js +1 -1
  29. package/build/translations/jv.js +1 -1
  30. package/build/translations/ko.js +1 -1
  31. package/build/translations/ku.js +1 -1
  32. package/build/translations/lt.js +1 -1
  33. package/build/translations/lv.js +1 -1
  34. package/build/translations/ms.js +1 -1
  35. package/build/translations/nb.js +1 -1
  36. package/build/translations/ne.js +1 -1
  37. package/build/translations/nl.js +1 -1
  38. package/build/translations/no.js +1 -1
  39. package/build/translations/pl.js +1 -1
  40. package/build/translations/pt-br.js +1 -1
  41. package/build/translations/pt.js +1 -1
  42. package/build/translations/ro.js +1 -1
  43. package/build/translations/ru.js +1 -1
  44. package/build/translations/sk.js +1 -1
  45. package/build/translations/sl.js +1 -1
  46. package/build/translations/sq.js +1 -1
  47. package/build/translations/sr-latn.js +1 -1
  48. package/build/translations/sr.js +1 -1
  49. package/build/translations/sv.js +1 -1
  50. package/build/translations/th.js +1 -1
  51. package/build/translations/tk.js +1 -1
  52. package/build/translations/tr.js +1 -1
  53. package/build/translations/ug.js +1 -1
  54. package/build/translations/uk.js +1 -1
  55. package/build/translations/ur.js +1 -1
  56. package/build/translations/uz.js +1 -1
  57. package/build/translations/vi.js +1 -1
  58. package/build/translations/zh-cn.js +1 -1
  59. package/build/translations/zh.js +1 -1
  60. package/lang/contexts.json +2 -1
  61. package/lang/translations/ar.po +5 -1
  62. package/lang/translations/az.po +5 -1
  63. package/lang/translations/bg.po +5 -1
  64. package/lang/translations/bn.po +5 -1
  65. package/lang/translations/bs.po +5 -1
  66. package/lang/translations/ca.po +5 -1
  67. package/lang/translations/cs.po +5 -1
  68. package/lang/translations/da.po +5 -1
  69. package/lang/translations/de-ch.po +5 -1
  70. package/lang/translations/de.po +5 -1
  71. package/lang/translations/el.po +5 -1
  72. package/lang/translations/en-au.po +5 -1
  73. package/lang/translations/en-gb.po +5 -1
  74. package/lang/translations/en.po +4 -0
  75. package/lang/translations/es.po +5 -1
  76. package/lang/translations/et.po +5 -1
  77. package/lang/translations/fa.po +5 -1
  78. package/lang/translations/fi.po +5 -1
  79. package/lang/translations/fr.po +5 -1
  80. package/lang/translations/gl.po +5 -1
  81. package/lang/translations/he.po +5 -1
  82. package/lang/translations/hi.po +5 -1
  83. package/lang/translations/hr.po +5 -1
  84. package/lang/translations/hu.po +5 -1
  85. package/lang/translations/id.po +5 -1
  86. package/lang/translations/it.po +5 -1
  87. package/lang/translations/ja.po +5 -1
  88. package/lang/translations/jv.po +5 -1
  89. package/lang/translations/ko.po +5 -1
  90. package/lang/translations/ku.po +5 -1
  91. package/lang/translations/lt.po +5 -1
  92. package/lang/translations/lv.po +5 -1
  93. package/lang/translations/ms.po +5 -1
  94. package/lang/translations/nb.po +5 -1
  95. package/lang/translations/ne.po +5 -1
  96. package/lang/translations/nl.po +5 -1
  97. package/lang/translations/no.po +5 -1
  98. package/lang/translations/pl.po +5 -1
  99. package/lang/translations/pt-br.po +5 -1
  100. package/lang/translations/pt.po +5 -1
  101. package/lang/translations/ro.po +5 -1
  102. package/lang/translations/ru.po +5 -1
  103. package/lang/translations/sk.po +5 -1
  104. package/lang/translations/sl.po +5 -1
  105. package/lang/translations/sq.po +5 -1
  106. package/lang/translations/sr-latn.po +5 -1
  107. package/lang/translations/sr.po +5 -1
  108. package/lang/translations/sv.po +5 -1
  109. package/lang/translations/th.po +5 -1
  110. package/lang/translations/tk.po +5 -1
  111. package/lang/translations/tr.po +5 -1
  112. package/lang/translations/ug.po +5 -1
  113. package/lang/translations/uk.po +5 -1
  114. package/lang/translations/ur.po +5 -1
  115. package/lang/translations/uz.po +5 -1
  116. package/lang/translations/vi.po +5 -1
  117. package/lang/translations/zh-cn.po +5 -1
  118. package/lang/translations/zh.po +5 -1
  119. package/package.json +12 -11
  120. package/src/fontcommand.d.ts +2 -0
  121. package/src/fontcommand.js +14 -2
  122. package/src/fontconfig.d.ts +7 -1
  123. package/src/fontfamily/fontfamilyui.js +7 -2
  124. package/src/fontsize/fontsizeui.js +7 -2
  125. package/src/ui/colortableview.d.ts +326 -34
  126. package/src/ui/colortableview.js +432 -47
  127. package/src/ui/colorui.d.ts +5 -1
  128. package/src/ui/colorui.js +40 -8
  129. package/src/utils.d.ts +4 -2
  130. package/src/utils.js +10 -3
  131. package/theme/fontcolor.css +62 -1
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
15
+ "Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Cor de Fundo"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Cores do documento"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Portuguese (https://www.transifex.com/ckeditor/teams/11143/pt/)\n"
15
+ "Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
16
16
  "Language: pt\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Cor de Fundo da Fonte"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Cores do documento"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Romanian (https://www.transifex.com/ckeditor/teams/11143/ro/)\n"
15
+ "Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
16
16
  "Language: ro\n"
17
17
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Culoarea de fundal a fontului"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Culorile din document"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Russian (https://www.transifex.com/ckeditor/teams/11143/ru/)\n"
15
+ "Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
16
16
  "Language: ru\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Цвет фона"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Цвет страницы"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Slovak (https://www.transifex.com/ckeditor/teams/11143/sk/)\n"
15
+ "Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
16
16
  "Language: sk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Farba zvýraznenia textu"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Farby dokumentu"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Slovenian (https://www.transifex.com/ckeditor/teams/11143/sl/)\n"
15
+ "Language-Team: Slovenian (https://app.transifex.com/ckeditor/teams/11143/sl/)\n"
16
16
  "Language: sl\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Barva ozadja pisave"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Barve dokumenta"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Albanian (https://www.transifex.com/ckeditor/teams/11143/sq/)\n"
15
+ "Language-Team: Albanian (https://app.transifex.com/ckeditor/teams/11143/sq/)\n"
16
16
  "Language: sq\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr ""
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr ""
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Serbian (Latin) (https://www.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
15
+ "Language-Team: Serbian (Latin) (https://app.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
16
16
  "Language: sr@latin\n"
17
17
  "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"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Boja pozadine slova"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Boje dokumenta"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Serbian (https://www.transifex.com/ckeditor/teams/11143/sr/)\n"
15
+ "Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
16
16
  "Language: sr\n"
17
17
  "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"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Боја позадине слова"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Боје документа"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Swedish (https://www.transifex.com/ckeditor/teams/11143/sv/)\n"
15
+ "Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
16
16
  "Language: sv\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Tecknens bakgrundsfärg"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Dokumentfärger"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Thai (https://www.transifex.com/ckeditor/teams/11143/th/)\n"
15
+ "Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
16
16
  "Language: th\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "สีพื้นหลังข้อความ"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "สีเอกสาร"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Turkmen (https://www.transifex.com/ckeditor/teams/11143/tk/)\n"
15
+ "Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
16
16
  "Language: tk\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Şriftiň fon reňki"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Resminamanyň reňkleri"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Turkish (https://www.transifex.com/ckeditor/teams/11143/tr/)\n"
15
+ "Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
16
16
  "Language: tr\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Yazı Tipi Arkaplan Rengi"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Belge Rengi"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Uyghur (https://www.transifex.com/ckeditor/teams/11143/ug/)\n"
15
+ "Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
16
16
  "Language: ug\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "خەت تەگلىك رەڭگى"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr ""
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Ukrainian (https://www.transifex.com/ckeditor/teams/11143/uk/)\n"
15
+ "Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
16
16
  "Language: uk\n"
17
17
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Колір тла шрифту"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Кольори документу"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Urdu (https://www.transifex.com/ckeditor/teams/11143/ur/)\n"
15
+ "Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
16
16
  "Language: ur\n"
17
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "فانٹ کے پس منظر کا رنگ"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "دستاویز کے رنگ"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Uzbek (https://www.transifex.com/ckeditor/teams/11143/uz/)\n"
15
+ "Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
16
16
  "Language: uz\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Fon rangi"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Sahifa rangi"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Vietnamese (https://www.transifex.com/ckeditor/teams/11143/vi/)\n"
15
+ "Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
16
16
  "Language: vi\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "Màu nền chữ"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "Màu văn bản"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Chinese (China) (https://www.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
15
+ "Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
16
16
  "Language: zh_CN\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "字体背景色"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "文档中的颜色"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
@@ -12,7 +12,7 @@
12
12
  #
13
13
  msgid ""
14
14
  msgstr ""
15
- "Language-Team: Chinese (Taiwan) (https://www.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
15
+ "Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
16
  "Language: zh_TW\n"
17
17
  "Plural-Forms: nplurals=1; plural=0;\n"
18
18
 
@@ -55,3 +55,7 @@ msgstr "前景顏色"
55
55
  msgctxt "Title of a color picker section containing the colors currently used in the document."
56
56
  msgid "Document colors"
57
57
  msgstr "文件顏色"
58
+
59
+ msgctxt "Label of the button closing the color picker dropdown and confirming the changes done."
60
+ msgid "Accept"
61
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-font",
3
- "version": "37.1.0",
3
+ "version": "38.0.0-rc.0",
4
4
  "description": "Font feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,19 +12,20 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^37.1.0"
15
+ "ckeditor5": "^38.0.0-rc.0",
16
+ "@ckeditor/ckeditor5-ui": "^38.0.0-rc.0"
16
17
  },
17
18
  "devDependencies": {
18
- "@ckeditor/ckeditor5-core": "^37.1.0",
19
+ "@ckeditor/ckeditor5-undo": "^38.0.0-rc.0",
20
+ "@ckeditor/ckeditor5-core": "^38.0.0-rc.0",
19
21
  "@ckeditor/ckeditor5-dev-utils": "^37.0.0",
20
- "@ckeditor/ckeditor5-editor-classic": "^37.1.0",
21
- "@ckeditor/ckeditor5-engine": "^37.1.0",
22
- "@ckeditor/ckeditor5-highlight": "^37.1.0",
23
- "@ckeditor/ckeditor5-paragraph": "^37.1.0",
24
- "@ckeditor/ckeditor5-table": "^37.1.0",
25
- "@ckeditor/ckeditor5-theme-lark": "^37.1.0",
26
- "@ckeditor/ckeditor5-ui": "^37.1.0",
27
- "@ckeditor/ckeditor5-utils": "^37.1.0",
22
+ "@ckeditor/ckeditor5-editor-classic": "^38.0.0-rc.0",
23
+ "@ckeditor/ckeditor5-engine": "^38.0.0-rc.0",
24
+ "@ckeditor/ckeditor5-highlight": "^38.0.0-rc.0",
25
+ "@ckeditor/ckeditor5-paragraph": "^38.0.0-rc.0",
26
+ "@ckeditor/ckeditor5-table": "^38.0.0-rc.0",
27
+ "@ckeditor/ckeditor5-theme-lark": "^38.0.0-rc.0",
28
+ "@ckeditor/ckeditor5-utils": "^38.0.0-rc.0",
28
29
  "typescript": "^4.8.4",
29
30
  "webpack": "^5.58.1",
30
31
  "webpack-cli": "^4.9.0"
@@ -6,6 +6,7 @@
6
6
  * @module font/fontcommand
7
7
  */
8
8
  import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import { type Batch } from 'ckeditor5/src/engine';
9
10
  /**
10
11
  * The base font command.
11
12
  */
@@ -42,5 +43,6 @@ export default abstract class FontCommand extends Command {
42
43
  */
43
44
  execute(options?: {
44
45
  value?: string;
46
+ batch?: Batch;
45
47
  }): void;
46
48
  }
@@ -42,7 +42,8 @@ export default class FontCommand extends Command {
42
42
  const document = model.document;
43
43
  const selection = document.selection;
44
44
  const value = options.value;
45
- model.change(writer => {
45
+ const batch = options.batch;
46
+ const updateAttribute = (writer) => {
46
47
  if (selection.isCollapsed) {
47
48
  if (value) {
48
49
  writer.setSelectionAttribute(this.attributeKey, value);
@@ -62,6 +63,17 @@ export default class FontCommand extends Command {
62
63
  }
63
64
  }
64
65
  }
65
- });
66
+ };
67
+ // In some scenarios, you may want to use a single undo step for multiple changes (e.g. in color picker).
68
+ if (batch) {
69
+ model.enqueueChange(batch, writer => {
70
+ updateAttribute(writer);
71
+ });
72
+ }
73
+ else {
74
+ model.change(writer => {
75
+ updateAttribute(writer);
76
+ });
77
+ }
66
78
  }
67
79
  }
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module font/fontconfig
7
7
  */
8
- import type { ColorOption } from 'ckeditor5/src/ui';
8
+ import type { ColorOption, ColorPickerConfig } from 'ckeditor5/src/ui';
9
9
  import type { MatcherPattern, ViewElementDefinition } from 'ckeditor5/src/engine';
10
10
  /**
11
11
  * The configuration of the font color and font background color features.
@@ -147,6 +147,12 @@ export interface FontColorConfig {
147
147
  * ```
148
148
  */
149
149
  columns?: number;
150
+ /**
151
+ * Configuration of the color picker feature.
152
+ *
153
+ * If set to `false` the picker will not appear.
154
+ */
155
+ colorPicker?: false | ColorPickerConfig;
150
156
  }
151
157
  /**
152
158
  * The configuration of the font family feature.
@@ -29,12 +29,16 @@ export default class FontFamilyUI extends Plugin {
29
29
  const t = editor.t;
30
30
  const options = this._getLocalizedOptions();
31
31
  const command = editor.commands.get(FONT_FAMILY);
32
+ const accessibleLabel = t('Font Family');
32
33
  // Register UI component.
33
34
  editor.ui.componentFactory.add(FONT_FAMILY, locale => {
34
35
  const dropdownView = createDropdown(locale);
35
- addListToDropdown(dropdownView, () => _prepareListOptions(options, command));
36
+ addListToDropdown(dropdownView, () => _prepareListOptions(options, command), {
37
+ role: 'menu',
38
+ ariaLabel: accessibleLabel
39
+ });
36
40
  dropdownView.buttonView.set({
37
- label: t('Font Family'),
41
+ label: accessibleLabel,
38
42
  icon: fontFamilyIcon,
39
43
  tooltip: true
40
44
  });
@@ -86,6 +90,7 @@ function _prepareListOptions(options, command) {
86
90
  commandName: FONT_FAMILY,
87
91
  commandParam: option.model,
88
92
  label: option.title,
93
+ role: 'menuitemradio',
89
94
  withText: true
90
95
  })
91
96
  };
@@ -30,13 +30,17 @@ export default class FontSizeUI extends Plugin {
30
30
  const t = editor.t;
31
31
  const options = this._getLocalizedOptions();
32
32
  const command = editor.commands.get(FONT_SIZE);
33
+ const accessibleLabel = t('Font Size');
33
34
  // Register UI component.
34
35
  editor.ui.componentFactory.add(FONT_SIZE, locale => {
35
36
  const dropdownView = createDropdown(locale);
36
- addListToDropdown(dropdownView, () => _prepareListOptions(options, command));
37
+ addListToDropdown(dropdownView, () => _prepareListOptions(options, command), {
38
+ role: 'menu',
39
+ ariaLabel: accessibleLabel
40
+ });
37
41
  // Create dropdown model.
38
42
  dropdownView.buttonView.set({
39
- label: t('Font Size'),
43
+ label: accessibleLabel,
40
44
  icon: fontSizeIcon,
41
45
  tooltip: true
42
46
  });
@@ -98,6 +102,7 @@ function _prepareListOptions(options, command) {
98
102
  commandParam: option.model,
99
103
  label: option.title,
100
104
  class: 'ck-fontsize-option',
105
+ role: 'menuitemradio',
101
106
  withText: true
102
107
  })
103
108
  };