@ckeditor/ckeditor5-special-characters 0.0.0-nightly-next-20260125.0 → 0.0.0-nightly-20260126.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 (181) hide show
  1. package/build/special-characters.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 +7 -7
  75. package/dist/index.js.map +1 -1
  76. package/lang/contexts.json +267 -0
  77. package/lang/translations/af.po +1072 -0
  78. package/lang/translations/ar.po +1074 -0
  79. package/lang/translations/ast.po +1072 -0
  80. package/lang/translations/az.po +1072 -0
  81. package/lang/translations/be.po +1072 -0
  82. package/lang/translations/bg.po +1076 -0
  83. package/lang/translations/bn.po +1072 -0
  84. package/lang/translations/bs.po +1072 -0
  85. package/lang/translations/ca.po +1072 -0
  86. package/lang/translations/cs.po +1072 -0
  87. package/lang/translations/da.po +1072 -0
  88. package/lang/translations/de-ch.po +1072 -0
  89. package/lang/translations/de.po +1072 -0
  90. package/lang/translations/el.po +1072 -0
  91. package/lang/translations/en-au.po +1072 -0
  92. package/lang/translations/en-gb.po +1072 -0
  93. package/lang/translations/en.po +1072 -0
  94. package/lang/translations/eo.po +1072 -0
  95. package/lang/translations/es-co.po +1072 -0
  96. package/lang/translations/es.po +1072 -0
  97. package/lang/translations/et.po +1072 -0
  98. package/lang/translations/eu.po +1072 -0
  99. package/lang/translations/fa.po +1072 -0
  100. package/lang/translations/fi.po +1072 -0
  101. package/lang/translations/fr.po +1072 -0
  102. package/lang/translations/gl.po +1072 -0
  103. package/lang/translations/gu.po +1072 -0
  104. package/lang/translations/he.po +1072 -0
  105. package/lang/translations/hi.po +1072 -0
  106. package/lang/translations/hr.po +1072 -0
  107. package/lang/translations/hu.po +1072 -0
  108. package/lang/translations/hy.po +1072 -0
  109. package/lang/translations/id.po +1072 -0
  110. package/lang/translations/it.po +1072 -0
  111. package/lang/translations/ja.po +1072 -0
  112. package/lang/translations/jv.po +1072 -0
  113. package/lang/translations/kk.po +1072 -0
  114. package/lang/translations/km.po +1072 -0
  115. package/lang/translations/kn.po +1072 -0
  116. package/lang/translations/ko.po +1072 -0
  117. package/lang/translations/ku.po +1072 -0
  118. package/lang/translations/lt.po +1072 -0
  119. package/lang/translations/lv.po +1072 -0
  120. package/lang/translations/ms.po +1072 -0
  121. package/lang/translations/nb.po +1072 -0
  122. package/lang/translations/ne.po +1072 -0
  123. package/lang/translations/nl.po +1074 -0
  124. package/lang/translations/no.po +1074 -0
  125. package/lang/translations/oc.po +1072 -0
  126. package/lang/translations/pl.po +1072 -0
  127. package/lang/translations/pt-br.po +1072 -0
  128. package/lang/translations/pt.po +1072 -0
  129. package/lang/translations/ro.po +1072 -0
  130. package/lang/translations/ru.po +1072 -0
  131. package/lang/translations/si.po +1072 -0
  132. package/lang/translations/sk.po +1072 -0
  133. package/lang/translations/sl.po +1072 -0
  134. package/lang/translations/sq.po +1072 -0
  135. package/lang/translations/sr-latn.po +1072 -0
  136. package/lang/translations/sr.po +1072 -0
  137. package/lang/translations/sv.po +1072 -0
  138. package/lang/translations/th.po +1072 -0
  139. package/lang/translations/ti.po +1072 -0
  140. package/lang/translations/tk.po +1072 -0
  141. package/lang/translations/tr.po +1072 -0
  142. package/lang/translations/tt.po +1072 -0
  143. package/lang/translations/ug.po +1072 -0
  144. package/lang/translations/uk.po +1072 -0
  145. package/lang/translations/ur.po +1072 -0
  146. package/lang/translations/uz.po +1072 -0
  147. package/lang/translations/vi.po +1072 -0
  148. package/lang/translations/zh-cn.po +1072 -0
  149. package/lang/translations/zh.po +1072 -0
  150. package/package.json +47 -23
  151. package/src/augmentation.js +5 -0
  152. package/src/index.js +19 -0
  153. package/{dist → src}/specialcharacters.d.ts +3 -3
  154. package/src/specialcharacters.js +260 -0
  155. package/{dist → src}/specialcharactersarrows.d.ts +1 -1
  156. package/src/specialcharactersarrows.js +66 -0
  157. package/src/specialcharactersconfig.js +5 -0
  158. package/{dist → src}/specialcharacterscurrency.d.ts +1 -1
  159. package/src/specialcharacterscurrency.js +80 -0
  160. package/{dist → src}/specialcharactersessentials.d.ts +1 -1
  161. package/src/specialcharactersessentials.js +51 -0
  162. package/{dist → src}/specialcharacterslatin.d.ts +1 -1
  163. package/src/specialcharacterslatin.js +172 -0
  164. package/{dist → src}/specialcharactersmathematical.d.ts +1 -1
  165. package/src/specialcharactersmathematical.js +88 -0
  166. package/{dist → src}/specialcharacterstext.d.ts +1 -1
  167. package/src/specialcharacterstext.js +71 -0
  168. package/{dist → src}/ui/charactergridview.d.ts +2 -2
  169. package/src/ui/charactergridview.js +143 -0
  170. package/{dist → src}/ui/characterinfoview.d.ts +2 -2
  171. package/src/ui/characterinfoview.js +73 -0
  172. package/{dist → src}/ui/specialcharacterscategoriesview.d.ts +2 -2
  173. package/src/ui/specialcharacterscategoriesview.js +98 -0
  174. package/{dist → src}/ui/specialcharactersview.d.ts +2 -2
  175. package/src/ui/specialcharactersview.js +108 -0
  176. package/theme/charactergrid.css +12 -0
  177. package/theme/characterinfo.css +9 -0
  178. package/theme/specialcharacters.css +89 -0
  179. /package/{dist → src}/augmentation.d.ts +0 -0
  180. /package/{dist → src}/index.d.ts +0 -0
  181. /package/{dist → src}/specialcharactersconfig.d.ts +0 -0
@@ -0,0 +1,172 @@
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 special-characters/specialcharacterslatin
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Latin" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export class SpecialCharactersLatin extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersLatin';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Latin', [
42
+ { character: 'Ā', title: t('Latin capital letter a with macron') },
43
+ { character: 'ā', title: t('Latin small letter a with macron') },
44
+ { character: 'Ă', title: t('Latin capital letter a with breve') },
45
+ { character: 'ă', title: t('Latin small letter a with breve') },
46
+ { character: 'Ą', title: t('Latin capital letter a with ogonek') },
47
+ { character: 'ą', title: t('Latin small letter a with ogonek') },
48
+ { character: 'Ć', title: t('Latin capital letter c with acute') },
49
+ { character: 'ć', title: t('Latin small letter c with acute') },
50
+ { character: 'Ĉ', title: t('Latin capital letter c with circumflex') },
51
+ { character: 'ĉ', title: t('Latin small letter c with circumflex') },
52
+ { character: 'Ċ', title: t('Latin capital letter c with dot above') },
53
+ { character: 'ċ', title: t('Latin small letter c with dot above') },
54
+ { character: 'Č', title: t('Latin capital letter c with caron') },
55
+ { character: 'č', title: t('Latin small letter c with caron') },
56
+ { character: 'Ď', title: t('Latin capital letter d with caron') },
57
+ { character: 'ď', title: t('Latin small letter d with caron') },
58
+ { character: 'Đ', title: t('Latin capital letter d with stroke') },
59
+ { character: 'đ', title: t('Latin small letter d with stroke') },
60
+ { character: 'Ē', title: t('Latin capital letter e with macron') },
61
+ { character: 'ē', title: t('Latin small letter e with macron') },
62
+ { character: 'Ĕ', title: t('Latin capital letter e with breve') },
63
+ { character: 'ĕ', title: t('Latin small letter e with breve') },
64
+ { character: 'Ė', title: t('Latin capital letter e with dot above') },
65
+ { character: 'ė', title: t('Latin small letter e with dot above') },
66
+ { character: 'Ę', title: t('Latin capital letter e with ogonek') },
67
+ { character: 'ę', title: t('Latin small letter e with ogonek') },
68
+ { character: 'Ě', title: t('Latin capital letter e with caron') },
69
+ { character: 'ě', title: t('Latin small letter e with caron') },
70
+ { character: 'Ĝ', title: t('Latin capital letter g with circumflex') },
71
+ { character: 'ĝ', title: t('Latin small letter g with circumflex') },
72
+ { character: 'Ğ', title: t('Latin capital letter g with breve') },
73
+ { character: 'ğ', title: t('Latin small letter g with breve') },
74
+ { character: 'Ġ', title: t('Latin capital letter g with dot above') },
75
+ { character: 'ġ', title: t('Latin small letter g with dot above') },
76
+ { character: 'Ģ', title: t('Latin capital letter g with cedilla') },
77
+ { character: 'ģ', title: t('Latin small letter g with cedilla') },
78
+ { character: 'Ĥ', title: t('Latin capital letter h with circumflex') },
79
+ { character: 'ĥ', title: t('Latin small letter h with circumflex') },
80
+ { character: 'Ħ', title: t('Latin capital letter h with stroke') },
81
+ { character: 'ħ', title: t('Latin small letter h with stroke') },
82
+ { character: 'Ĩ', title: t('Latin capital letter i with tilde') },
83
+ { character: 'ĩ', title: t('Latin small letter i with tilde') },
84
+ { character: 'Ī', title: t('Latin capital letter i with macron') },
85
+ { character: 'ī', title: t('Latin small letter i with macron') },
86
+ { character: 'Ĭ', title: t('Latin capital letter i with breve') },
87
+ { character: 'ĭ', title: t('Latin small letter i with breve') },
88
+ { character: 'Į', title: t('Latin capital letter i with ogonek') },
89
+ { character: 'į', title: t('Latin small letter i with ogonek') },
90
+ { character: 'İ', title: t('Latin capital letter i with dot above') },
91
+ { character: 'ı', title: t('Latin small letter dotless i') },
92
+ { character: 'IJ', title: t('Latin capital ligature ij') },
93
+ { character: 'ij', title: t('Latin small ligature ij') },
94
+ { character: 'Ĵ', title: t('Latin capital letter j with circumflex') },
95
+ { character: 'ĵ', title: t('Latin small letter j with circumflex') },
96
+ { character: 'Ķ', title: t('Latin capital letter k with cedilla') },
97
+ { character: 'ķ', title: t('Latin small letter k with cedilla') },
98
+ { character: 'ĸ', title: t('Latin small letter kra') },
99
+ { character: 'Ĺ', title: t('Latin capital letter l with acute') },
100
+ { character: 'ĺ', title: t('Latin small letter l with acute') },
101
+ { character: 'Ļ', title: t('Latin capital letter l with cedilla') },
102
+ { character: 'ļ', title: t('Latin small letter l with cedilla') },
103
+ { character: 'Ľ', title: t('Latin capital letter l with caron') },
104
+ { character: 'ľ', title: t('Latin small letter l with caron') },
105
+ { character: 'Ŀ', title: t('Latin capital letter l with middle dot') },
106
+ { character: 'ŀ', title: t('Latin small letter l with middle dot') },
107
+ { character: 'Ł', title: t('Latin capital letter l with stroke') },
108
+ { character: 'ł', title: t('Latin small letter l with stroke') },
109
+ { character: 'Ń', title: t('Latin capital letter n with acute') },
110
+ { character: 'ń', title: t('Latin small letter n with acute') },
111
+ { character: 'Ņ', title: t('Latin capital letter n with cedilla') },
112
+ { character: 'ņ', title: t('Latin small letter n with cedilla') },
113
+ { character: 'Ň', title: t('Latin capital letter n with caron') },
114
+ { character: 'ň', title: t('Latin small letter n with caron') },
115
+ { character: 'ʼn', title: t('Latin small letter n preceded by apostrophe') },
116
+ { character: 'Ŋ', title: t('Latin capital letter eng') },
117
+ { character: 'ŋ', title: t('Latin small letter eng') },
118
+ { character: 'Ō', title: t('Latin capital letter o with macron') },
119
+ { character: 'ō', title: t('Latin small letter o with macron') },
120
+ { character: 'Ŏ', title: t('Latin capital letter o with breve') },
121
+ { character: 'ŏ', title: t('Latin small letter o with breve') },
122
+ { character: 'Ő', title: t('Latin capital letter o with double acute') },
123
+ { character: 'ő', title: t('Latin small letter o with double acute') },
124
+ { character: 'Œ', title: t('Latin capital ligature oe') },
125
+ { character: 'œ', title: t('Latin small ligature oe') },
126
+ { character: 'Ŕ', title: t('Latin capital letter r with acute') },
127
+ { character: 'ŕ', title: t('Latin small letter r with acute') },
128
+ { character: 'Ŗ', title: t('Latin capital letter r with cedilla') },
129
+ { character: 'ŗ', title: t('Latin small letter r with cedilla') },
130
+ { character: 'Ř', title: t('Latin capital letter r with caron') },
131
+ { character: 'ř', title: t('Latin small letter r with caron') },
132
+ { character: 'Ś', title: t('Latin capital letter s with acute') },
133
+ { character: 'ś', title: t('Latin small letter s with acute') },
134
+ { character: 'Ŝ', title: t('Latin capital letter s with circumflex') },
135
+ { character: 'ŝ', title: t('Latin small letter s with circumflex') },
136
+ { character: 'Ş', title: t('Latin capital letter s with cedilla') },
137
+ { character: 'ş', title: t('Latin small letter s with cedilla') },
138
+ { character: 'Š', title: t('Latin capital letter s with caron') },
139
+ { character: 'š', title: t('Latin small letter s with caron') },
140
+ { character: 'Ţ', title: t('Latin capital letter t with cedilla') },
141
+ { character: 'ţ', title: t('Latin small letter t with cedilla') },
142
+ { character: 'Ť', title: t('Latin capital letter t with caron') },
143
+ { character: 'ť', title: t('Latin small letter t with caron') },
144
+ { character: 'Ŧ', title: t('Latin capital letter t with stroke') },
145
+ { character: 'ŧ', title: t('Latin small letter t with stroke') },
146
+ { character: 'Ũ', title: t('Latin capital letter u with tilde') },
147
+ { character: 'ũ', title: t('Latin small letter u with tilde') },
148
+ { character: 'Ū', title: t('Latin capital letter u with macron') },
149
+ { character: 'ū', title: t('Latin small letter u with macron') },
150
+ { character: 'Ŭ', title: t('Latin capital letter u with breve') },
151
+ { character: 'ŭ', title: t('Latin small letter u with breve') },
152
+ { character: 'Ů', title: t('Latin capital letter u with ring above') },
153
+ { character: 'ů', title: t('Latin small letter u with ring above') },
154
+ { character: 'Ű', title: t('Latin capital letter u with double acute') },
155
+ { character: 'ű', title: t('Latin small letter u with double acute') },
156
+ { character: 'Ų', title: t('Latin capital letter u with ogonek') },
157
+ { character: 'ų', title: t('Latin small letter u with ogonek') },
158
+ { character: 'Ŵ', title: t('Latin capital letter w with circumflex') },
159
+ { character: 'ŵ', title: t('Latin small letter w with circumflex') },
160
+ { character: 'Ŷ', title: t('Latin capital letter y with circumflex') },
161
+ { character: 'ŷ', title: t('Latin small letter y with circumflex') },
162
+ { character: 'Ÿ', title: t('Latin capital letter y with diaeresis') },
163
+ { character: 'Ź', title: t('Latin capital letter z with acute') },
164
+ { character: 'ź', title: t('Latin small letter z with acute') },
165
+ { character: 'Ż', title: t('Latin capital letter z with dot above') },
166
+ { character: 'ż', title: t('Latin small letter z with dot above') },
167
+ { character: 'Ž', title: t('Latin capital letter z with caron') },
168
+ { character: 'ž', title: t('Latin small letter z with caron') },
169
+ { character: 'ſ', title: t('Latin small letter long s') }
170
+ ], { label: t('Latin') });
171
+ }
172
+ }
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module special-characters/specialcharactersmathematical
7
7
  */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * A plugin that provides special characters for the "Mathematical" category.
11
11
  *
@@ -0,0 +1,88 @@
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 special-characters/specialcharactersmathematical
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Mathematical" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export class SpecialCharactersMathematical extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersMathematical';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Mathematical', [
42
+ { character: '<', title: t('Less-than sign') },
43
+ { character: '>', title: t('Greater-than sign') },
44
+ { character: '≤', title: t('Less-than or equal to') },
45
+ { character: '≥', title: t('Greater-than or equal to') },
46
+ { character: '–', title: t('En dash') },
47
+ { character: '—', title: t('Em dash') },
48
+ { character: '¯', title: t('Macron') },
49
+ { character: '‾', title: t('Overline') },
50
+ { character: '°', title: t('Degree sign') },
51
+ { character: '−', title: t('Minus sign') },
52
+ { character: '±', title: t('Plus-minus sign') },
53
+ { character: '÷', title: t('Division sign') },
54
+ { character: '⁄', title: t('Fraction slash') },
55
+ { character: '×', title: t('Multiplication sign') },
56
+ { character: 'ƒ', title: t('Latin small letter f with hook') },
57
+ { character: '∫', title: t('Integral') },
58
+ { character: '∑', title: t('N-ary summation') },
59
+ { character: '∞', title: t('Infinity') },
60
+ { character: '√', title: t('Square root') },
61
+ { character: '∼', title: t('Tilde operator') },
62
+ { character: '≅', title: t('Approximately equal to') },
63
+ { character: '≈', title: t('Almost equal to') },
64
+ { character: '≠', title: t('Not equal to') },
65
+ { character: '≡', title: t('Identical to') },
66
+ { character: '∈', title: t('Element of') },
67
+ { character: '∉', title: t('Not an element of') },
68
+ { character: '∋', title: t('Contains as member') },
69
+ { character: '∏', title: t('N-ary product') },
70
+ { character: '∧', title: t('Logical and') },
71
+ { character: '∨', title: t('Logical or') },
72
+ { character: '¬', title: t('Not sign') },
73
+ { character: '∩', title: t('Intersection') },
74
+ { character: '∪', title: t('Union') },
75
+ { character: '∂', title: t('Partial differential') },
76
+ { character: '∀', title: t('For all') },
77
+ { character: '∃', title: t('There exists') },
78
+ { character: '∅', title: t('Empty set') },
79
+ { character: '∇', title: t('Nabla') },
80
+ { character: '∗', title: t('Asterisk operator') },
81
+ { character: '∝', title: t('Proportional to') },
82
+ { character: '∠', title: t('Angle') },
83
+ { character: '¼', title: t('Vulgar fraction one quarter') },
84
+ { character: '½', title: t('Vulgar fraction one half') },
85
+ { character: '¾', title: t('Vulgar fraction three quarters') }
86
+ ], { label: t('Mathematical') });
87
+ }
88
+ }
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module special-characters/specialcharacterstext
7
7
  */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * A plugin that provides special characters for the "Text" category.
11
11
  *
@@ -0,0 +1,71 @@
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 special-characters/specialcharacterstext
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Text" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export class SpecialCharactersText extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersText';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Text', [
42
+ { character: '‹', title: t('Single left-pointing angle quotation mark') },
43
+ { character: '›', title: t('Single right-pointing angle quotation mark') },
44
+ { character: '«', title: t('Left-pointing double angle quotation mark') },
45
+ { character: '»', title: t('Right-pointing double angle quotation mark') },
46
+ { character: '‘', title: t('Left single quotation mark') },
47
+ { character: '’', title: t('Right single quotation mark') },
48
+ { character: '“', title: t('Left double quotation mark') },
49
+ { character: '”', title: t('Right double quotation mark') },
50
+ { character: '‚', title: t('Single low-9 quotation mark') },
51
+ { character: '„', title: t('Double low-9 quotation mark') },
52
+ { character: '¡', title: t('Inverted exclamation mark') },
53
+ { character: '¿', title: t('Inverted question mark') },
54
+ { character: '‥', title: t('Two dot leader') },
55
+ { character: '…', title: t('Horizontal ellipsis') },
56
+ { character: '‡', title: t('Double dagger') },
57
+ { character: '‰', title: t('Per mille sign') },
58
+ { character: '‱', title: t('Per ten thousand sign') },
59
+ { character: '‼', title: t('Double exclamation mark') },
60
+ { character: '⁈', title: t('Question exclamation mark') },
61
+ { character: '⁉', title: t('Exclamation question mark') },
62
+ { character: '⁇', title: t('Double question mark') },
63
+ { character: '©', title: t('Copyright sign') },
64
+ { character: '®', title: t('Registered sign') },
65
+ { character: '™', title: t('Trade mark sign') },
66
+ { character: '§', title: t('Section sign') },
67
+ { character: '¶', title: t('Paragraph sign') },
68
+ { character: '⁋', title: t('Reversed paragraph sign') }
69
+ ], { label: t('Text') });
70
+ }
71
+ }
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module special-characters/ui/charactergridview
7
7
  */
8
- import { View, ButtonView, type ViewCollection } from '@ckeditor/ckeditor5-ui';
9
- import { KeystrokeHandler, FocusTracker, type Locale } from '@ckeditor/ckeditor5-utils';
8
+ import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../theme/charactergrid.css';
11
11
  /**
12
12
  * A grid of character tiles. It allows browsing special characters and selecting the character to
@@ -0,0 +1,143 @@
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 special-characters/ui/charactergridview
7
+ */
8
+ import { View, ButtonView, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui.js';
9
+ import { KeystrokeHandler, FocusTracker, global } from 'ckeditor5/src/utils.js';
10
+ import '../../theme/charactergrid.css';
11
+ /**
12
+ * A grid of character tiles. It allows browsing special characters and selecting the character to
13
+ * be inserted into the content.
14
+ *
15
+ * @internal
16
+ */
17
+ export class CharacterGridView extends View {
18
+ /**
19
+ * A collection of the child tile views. Each tile represents a particular character.
20
+ */
21
+ tiles;
22
+ /**
23
+ * Tracks information about the DOM focus in the grid.
24
+ */
25
+ focusTracker;
26
+ /**
27
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
28
+ */
29
+ keystrokes;
30
+ /**
31
+ * Creates an instance of a character grid containing tiles representing special characters.
32
+ *
33
+ * @param locale The localization services instance.
34
+ */
35
+ constructor(locale) {
36
+ super(locale);
37
+ this.tiles = this.createCollection();
38
+ this.setTemplate({
39
+ tag: 'div',
40
+ children: [
41
+ {
42
+ tag: 'div',
43
+ attributes: {
44
+ class: [
45
+ 'ck',
46
+ 'ck-character-grid__tiles'
47
+ ]
48
+ },
49
+ children: this.tiles
50
+ }
51
+ ],
52
+ attributes: {
53
+ class: [
54
+ 'ck',
55
+ 'ck-character-grid'
56
+ ]
57
+ }
58
+ });
59
+ this.focusTracker = new FocusTracker();
60
+ this.keystrokes = new KeystrokeHandler();
61
+ addKeyboardHandlingForGrid({
62
+ keystrokeHandler: this.keystrokes,
63
+ focusTracker: this.focusTracker,
64
+ gridItems: this.tiles,
65
+ numberOfColumns: () => global.window
66
+ .getComputedStyle(this.element.firstChild) // Responsive .ck-character-grid__tiles
67
+ .getPropertyValue('grid-template-columns')
68
+ .split(' ')
69
+ .length,
70
+ uiLanguageDirection: this.locale && this.locale.uiLanguageDirection
71
+ });
72
+ }
73
+ /**
74
+ * Creates a new tile for the grid.
75
+ *
76
+ * @param character A human-readable character displayed as the label (e.g. "ε").
77
+ * @param name The name of the character (e.g. "greek small letter epsilon").
78
+ */
79
+ createTile(character, name) {
80
+ const tile = new ButtonView(this.locale);
81
+ tile.set({
82
+ label: character,
83
+ withText: true,
84
+ class: 'ck-character-grid__tile'
85
+ });
86
+ // Labels are vital for the users to understand what character they're looking at.
87
+ // For now we're using native title attribute for that, see #5817.
88
+ tile.extendTemplate({
89
+ attributes: {
90
+ title: name
91
+ },
92
+ on: {
93
+ mouseover: tile.bindTemplate.to('mouseover'),
94
+ focus: tile.bindTemplate.to('focus')
95
+ }
96
+ });
97
+ tile.on('mouseover', () => {
98
+ this.fire('tileHover', { name, character });
99
+ });
100
+ tile.on('focus', () => {
101
+ this.fire('tileFocus', { name, character });
102
+ });
103
+ tile.on('execute', () => {
104
+ this.fire('execute', { name, character });
105
+ });
106
+ return tile;
107
+ }
108
+ /**
109
+ * @inheritDoc
110
+ */
111
+ render() {
112
+ super.render();
113
+ for (const item of this.tiles) {
114
+ this.focusTracker.add(item.element);
115
+ }
116
+ this.tiles.on('change', (eventInfo, { added, removed }) => {
117
+ if (added.length > 0) {
118
+ for (const item of added) {
119
+ this.focusTracker.add(item.element);
120
+ }
121
+ }
122
+ if (removed.length > 0) {
123
+ for (const item of removed) {
124
+ this.focusTracker.remove(item.element);
125
+ }
126
+ }
127
+ });
128
+ this.keystrokes.listenTo(this.element);
129
+ }
130
+ /**
131
+ * @inheritDoc
132
+ */
133
+ destroy() {
134
+ super.destroy();
135
+ this.keystrokes.destroy();
136
+ }
137
+ /**
138
+ * Focuses the first focusable in {@link ~CharacterGridView#tiles}.
139
+ */
140
+ focus() {
141
+ this.tiles.first.focus();
142
+ }
143
+ }
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module special-characters/ui/characterinfoview
7
7
  */
8
- import type { Locale } from '@ckeditor/ckeditor5-utils';
9
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
10
  import '../../theme/characterinfo.css';
11
11
  /**
12
12
  * The view displaying detailed information about a special character glyph, e.g. upon
@@ -0,0 +1,73 @@
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 { View } from 'ckeditor5/src/ui.js';
6
+ import '../../theme/characterinfo.css';
7
+ /**
8
+ * The view displaying detailed information about a special character glyph, e.g. upon
9
+ * hovering it with a mouse.
10
+ *
11
+ * @internal
12
+ */
13
+ export class CharacterInfoView extends View {
14
+ constructor(locale) {
15
+ super(locale);
16
+ const bind = this.bindTemplate;
17
+ this.set('character', null);
18
+ this.set('name', null);
19
+ this.bind('code').to(this, 'character', characterToUnicodeString);
20
+ this.setTemplate({
21
+ tag: 'div',
22
+ children: [
23
+ {
24
+ tag: 'span',
25
+ attributes: {
26
+ class: [
27
+ 'ck-character-info__name'
28
+ ]
29
+ },
30
+ children: [
31
+ {
32
+ // Note: ZWSP to prevent vertical collapsing.
33
+ text: bind.to('name', name => name ? name : '\u200B')
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ tag: 'span',
39
+ attributes: {
40
+ class: [
41
+ 'ck-character-info__code'
42
+ ]
43
+ },
44
+ children: [
45
+ {
46
+ text: bind.to('code')
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ attributes: {
52
+ class: [
53
+ 'ck',
54
+ 'ck-character-info'
55
+ ]
56
+ }
57
+ });
58
+ }
59
+ }
60
+ /**
61
+ * Converts a character into a "Unicode string", for instance:
62
+ *
63
+ * "$" -> "U+0024"
64
+ *
65
+ * Returns an empty string when the character is `null`.
66
+ */
67
+ function characterToUnicodeString(character) {
68
+ if (character === null) {
69
+ return '';
70
+ }
71
+ const hexCode = character.codePointAt(0).toString(16);
72
+ return 'U+' + ('0000' + hexCode).slice(-4);
73
+ }
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module special-characters/ui/specialcharacterscategoriesview
7
7
  */
8
- import { type Locale } from '@ckeditor/ckeditor5-utils';
9
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * A class representing the navigation part of the special characters UI. It is responsible
12
12
  * for describing the feature and allowing the user to select a particular character group.