@ckeditor/ckeditor5-basic-styles 0.0.0-internal-20241017.0 → 0.0.0-internal-20241206.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 (213) hide show
  1. package/LICENSE.md +7 -2
  2. package/README.md +18 -7
  3. package/build/translations/kk.js +1 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +156 -159
  7. package/dist/index.js.map +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/bs.js +1 -1
  11. package/dist/translations/bs.umd.js +1 -1
  12. package/dist/translations/cs.js +1 -1
  13. package/dist/translations/cs.umd.js +1 -1
  14. package/dist/translations/en.js +1 -1
  15. package/dist/translations/en.umd.js +1 -1
  16. package/dist/translations/es-co.js +1 -1
  17. package/dist/translations/es-co.umd.js +1 -1
  18. package/dist/translations/es.js +1 -1
  19. package/dist/translations/es.umd.js +1 -1
  20. package/dist/translations/fa.js +1 -1
  21. package/dist/translations/fa.umd.js +1 -1
  22. package/dist/translations/fr.js +1 -1
  23. package/dist/translations/fr.umd.js +1 -1
  24. package/dist/translations/he.js +1 -1
  25. package/dist/translations/he.umd.js +1 -1
  26. package/dist/translations/hr.js +1 -1
  27. package/dist/translations/hr.umd.js +1 -1
  28. package/dist/translations/it.js +1 -1
  29. package/dist/translations/it.umd.js +1 -1
  30. package/dist/translations/jv.js +1 -1
  31. package/dist/translations/jv.umd.js +1 -1
  32. package/dist/translations/kk.d.ts +8 -0
  33. package/dist/translations/kk.js +5 -0
  34. package/dist/translations/kk.umd.js +11 -0
  35. package/dist/translations/kn.js +1 -1
  36. package/dist/translations/kn.umd.js +1 -1
  37. package/dist/translations/lt.js +1 -1
  38. package/dist/translations/lt.umd.js +1 -1
  39. package/dist/translations/lv.js +1 -1
  40. package/dist/translations/lv.umd.js +1 -1
  41. package/dist/translations/pl.js +1 -1
  42. package/dist/translations/pl.umd.js +1 -1
  43. package/dist/translations/pt-br.js +1 -1
  44. package/dist/translations/pt-br.umd.js +1 -1
  45. package/dist/translations/pt.js +1 -1
  46. package/dist/translations/pt.umd.js +1 -1
  47. package/dist/translations/ro.js +1 -1
  48. package/dist/translations/ro.umd.js +1 -1
  49. package/dist/translations/ru.js +1 -1
  50. package/dist/translations/ru.umd.js +1 -1
  51. package/dist/translations/sk.js +1 -1
  52. package/dist/translations/sk.umd.js +1 -1
  53. package/dist/translations/sl.js +1 -1
  54. package/dist/translations/sl.umd.js +1 -1
  55. package/dist/translations/sr-latn.js +1 -1
  56. package/dist/translations/sr-latn.umd.js +1 -1
  57. package/dist/translations/sr.js +1 -1
  58. package/dist/translations/sr.umd.js +1 -1
  59. package/dist/translations/ug.js +1 -1
  60. package/dist/translations/ug.umd.js +1 -1
  61. package/dist/translations/uk.js +1 -1
  62. package/dist/translations/uk.umd.js +1 -1
  63. package/dist/translations/uz.js +1 -1
  64. package/dist/translations/uz.umd.js +1 -1
  65. package/lang/translations/af.po +3 -9
  66. package/lang/translations/ar.po +4 -10
  67. package/lang/translations/ast.po +3 -9
  68. package/lang/translations/az.po +3 -9
  69. package/lang/translations/bg.po +3 -9
  70. package/lang/translations/bn.po +3 -9
  71. package/lang/translations/bs.po +4 -10
  72. package/lang/translations/ca.po +3 -9
  73. package/lang/translations/cs.po +4 -10
  74. package/lang/translations/da.po +3 -9
  75. package/lang/translations/de-ch.po +3 -9
  76. package/lang/translations/de.po +3 -9
  77. package/lang/translations/el.po +3 -9
  78. package/lang/translations/en-au.po +3 -9
  79. package/lang/translations/en-gb.po +3 -9
  80. package/lang/translations/en.po +5 -11
  81. package/lang/translations/eo.po +3 -9
  82. package/lang/translations/es-co.po +4 -10
  83. package/lang/translations/es.po +4 -10
  84. package/lang/translations/et.po +3 -9
  85. package/lang/translations/eu.po +3 -9
  86. package/lang/translations/fa.po +4 -10
  87. package/lang/translations/fi.po +3 -9
  88. package/lang/translations/fr.po +4 -10
  89. package/lang/translations/gl.po +3 -9
  90. package/lang/translations/gu.po +3 -9
  91. package/lang/translations/he.po +4 -10
  92. package/lang/translations/hi.po +3 -9
  93. package/lang/translations/hr.po +4 -10
  94. package/lang/translations/hu.po +3 -9
  95. package/lang/translations/hy.po +3 -9
  96. package/lang/translations/id.po +3 -9
  97. package/lang/translations/it.po +4 -10
  98. package/lang/translations/ja.po +3 -9
  99. package/lang/translations/jv.po +4 -10
  100. package/lang/translations/kk.po +60 -0
  101. package/lang/translations/km.po +3 -9
  102. package/lang/translations/kn.po +4 -10
  103. package/lang/translations/ko.po +3 -9
  104. package/lang/translations/ku.po +3 -9
  105. package/lang/translations/lt.po +4 -10
  106. package/lang/translations/lv.po +4 -10
  107. package/lang/translations/ms.po +3 -9
  108. package/lang/translations/nb.po +3 -9
  109. package/lang/translations/ne.po +3 -9
  110. package/lang/translations/nl.po +3 -9
  111. package/lang/translations/no.po +3 -9
  112. package/lang/translations/oc.po +3 -9
  113. package/lang/translations/pl.po +4 -10
  114. package/lang/translations/pt-br.po +4 -10
  115. package/lang/translations/pt.po +4 -10
  116. package/lang/translations/ro.po +4 -10
  117. package/lang/translations/ru.po +4 -10
  118. package/lang/translations/si.po +3 -9
  119. package/lang/translations/sk.po +4 -10
  120. package/lang/translations/sl.po +4 -10
  121. package/lang/translations/sq.po +3 -9
  122. package/lang/translations/sr-latn.po +4 -10
  123. package/lang/translations/sr.po +4 -10
  124. package/lang/translations/sv.po +3 -9
  125. package/lang/translations/th.po +3 -9
  126. package/lang/translations/ti.po +3 -9
  127. package/lang/translations/tk.po +3 -9
  128. package/lang/translations/tr.po +3 -9
  129. package/lang/translations/tt.po +3 -9
  130. package/lang/translations/ug.po +4 -10
  131. package/lang/translations/uk.po +4 -10
  132. package/lang/translations/ur.po +3 -9
  133. package/lang/translations/uz.po +4 -10
  134. package/lang/translations/vi.po +3 -9
  135. package/lang/translations/zh-cn.po +3 -9
  136. package/lang/translations/zh.po +3 -9
  137. package/package.json +26 -7
  138. package/src/attributecommand.d.ts +1 -1
  139. package/src/attributecommand.js +1 -1
  140. package/src/augmentation.d.ts +1 -1
  141. package/src/augmentation.js +1 -1
  142. package/src/bold/boldediting.d.ts +1 -1
  143. package/src/bold/boldediting.js +1 -1
  144. package/src/bold/boldui.d.ts +1 -1
  145. package/src/bold/boldui.js +1 -1
  146. package/src/bold.d.ts +1 -1
  147. package/src/bold.js +1 -1
  148. package/src/code/codeediting.d.ts +1 -1
  149. package/src/code/codeediting.js +1 -1
  150. package/src/code/codeui.d.ts +1 -1
  151. package/src/code/codeui.js +1 -1
  152. package/src/code.d.ts +1 -1
  153. package/src/code.js +1 -1
  154. package/src/index.d.ts +1 -1
  155. package/src/index.js +1 -1
  156. package/src/italic/italicediting.d.ts +1 -1
  157. package/src/italic/italicediting.js +1 -1
  158. package/src/italic/italicui.d.ts +1 -1
  159. package/src/italic/italicui.js +1 -1
  160. package/src/italic.d.ts +1 -1
  161. package/src/italic.js +1 -1
  162. package/src/strikethrough/strikethroughediting.d.ts +1 -1
  163. package/src/strikethrough/strikethroughediting.js +1 -1
  164. package/src/strikethrough/strikethroughui.d.ts +1 -1
  165. package/src/strikethrough/strikethroughui.js +1 -1
  166. package/src/strikethrough.d.ts +1 -1
  167. package/src/strikethrough.js +1 -1
  168. package/src/subscript/subscriptediting.d.ts +1 -1
  169. package/src/subscript/subscriptediting.js +1 -1
  170. package/src/subscript/subscriptui.d.ts +1 -1
  171. package/src/subscript/subscriptui.js +1 -1
  172. package/src/subscript.d.ts +1 -1
  173. package/src/subscript.js +1 -1
  174. package/src/superscript/superscriptediting.d.ts +1 -1
  175. package/src/superscript/superscriptediting.js +1 -1
  176. package/src/superscript/superscriptui.d.ts +1 -1
  177. package/src/superscript/superscriptui.js +1 -1
  178. package/src/superscript.d.ts +1 -1
  179. package/src/superscript.js +1 -1
  180. package/src/underline/underlineediting.d.ts +1 -1
  181. package/src/underline/underlineediting.js +1 -1
  182. package/src/underline/underlineui.d.ts +1 -1
  183. package/src/underline/underlineui.js +1 -1
  184. package/src/underline.d.ts +1 -1
  185. package/src/underline.js +1 -1
  186. package/src/utils.d.ts +1 -1
  187. package/src/utils.js +1 -1
  188. package/theme/code.css +1 -1
  189. package/dist/attributecommand.d.ts +0 -78
  190. package/dist/augmentation.d.ts +0 -44
  191. package/dist/bold/boldediting.d.ts +0 -32
  192. package/dist/bold/boldui.d.ts +0 -29
  193. package/dist/bold.d.ts +0 -37
  194. package/dist/code/codeediting.d.ts +0 -37
  195. package/dist/code/codeui.d.ts +0 -30
  196. package/dist/code.d.ts +0 -38
  197. package/dist/index.d.ts +0 -34
  198. package/dist/italic/italicediting.d.ts +0 -32
  199. package/dist/italic/italicui.d.ts +0 -29
  200. package/dist/italic.d.ts +0 -37
  201. package/dist/strikethrough/strikethroughediting.d.ts +0 -33
  202. package/dist/strikethrough/strikethroughui.d.ts +0 -29
  203. package/dist/strikethrough.d.ts +0 -37
  204. package/dist/subscript/subscriptediting.d.ts +0 -32
  205. package/dist/subscript/subscriptui.d.ts +0 -29
  206. package/dist/subscript.d.ts +0 -34
  207. package/dist/superscript/superscriptediting.d.ts +0 -32
  208. package/dist/superscript/superscriptui.d.ts +0 -29
  209. package/dist/superscript.d.ts +0 -34
  210. package/dist/underline/underlineediting.d.ts +0 -32
  211. package/dist/underline/underlineui.d.ts +0 -29
  212. package/dist/underline.d.ts +0 -37
  213. package/dist/utils.d.ts +0 -24
package/dist/index.js CHANGED
@@ -17,42 +17,39 @@ import { TwoStepCaretMovement, inlineHighlight } from '@ckeditor/ckeditor5-typin
17
17
  * for the current selection and to which nodes the attribute can be applied.
18
18
  */ class AttributeCommand extends Command {
19
19
  /**
20
- * The attribute that will be set by the command.
21
- */ attributeKey;
22
- /**
23
- * @param attributeKey Attribute that will be set by the command.
24
- */ constructor(editor, attributeKey){
20
+ * @param attributeKey Attribute that will be set by the command.
21
+ */ constructor(editor, attributeKey){
25
22
  super(editor);
26
23
  this.attributeKey = attributeKey;
27
24
  }
28
25
  /**
29
- * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
30
- */ refresh() {
26
+ * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.
27
+ */ refresh() {
31
28
  const model = this.editor.model;
32
29
  const doc = model.document;
33
30
  this.value = this._getValueFromFirstAllowedNode();
34
31
  this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, this.attributeKey);
35
32
  }
36
33
  /**
37
- * Executes the command – applies the attribute to the selection or removes it from the selection.
38
- *
39
- * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
40
- *
41
- * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
42
- *
43
- * * If the selection is on a range, the command applies the attribute to all nodes in that range
44
- * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
45
- * * If the selection is collapsed in a non-empty node, the command applies the attribute to the
46
- * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
47
- * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
48
- * that the selection inherits all attributes from a node if it is in an empty node).
49
- *
50
- * @fires execute
51
- * @param options Command options.
52
- * @param options.forceValue If set, it will force the command behavior. If `true`,
53
- * the command will apply the attribute, otherwise the command will remove the attribute.
54
- * If not set, the command will look for its current value to decide what it should do.
55
- */ execute(options = {}) {
34
+ * Executes the command – applies the attribute to the selection or removes it from the selection.
35
+ *
36
+ * If the command is active (`value == true`), it will remove attributes. Otherwise, it will set attributes.
37
+ *
38
+ * The execution result differs, depending on the {@link module:engine/model/document~Document#selection}:
39
+ *
40
+ * * If the selection is on a range, the command applies the attribute to all nodes in that range
41
+ * (if they are allowed to have this attribute by the {@link module:engine/model/schema~Schema schema}).
42
+ * * If the selection is collapsed in a non-empty node, the command applies the attribute to the
43
+ * {@link module:engine/model/document~Document#selection} itself (note that typed characters copy attributes from the selection).
44
+ * * If the selection is collapsed in an empty node, the command applies the attribute to the parent node of the selection (note
45
+ * that the selection inherits all attributes from a node if it is in an empty node).
46
+ *
47
+ * @fires execute
48
+ * @param options Command options.
49
+ * @param options.forceValue If set, it will force the command behavior. If `true`,
50
+ * the command will apply the attribute, otherwise the command will remove the attribute.
51
+ * If not set, the command will look for its current value to decide what it should do.
52
+ */ execute(options = {}) {
56
53
  const model = this.editor.model;
57
54
  const doc = model.document;
58
55
  const selection = doc.selection;
@@ -77,11 +74,11 @@ import { TwoStepCaretMovement, inlineHighlight } from '@ckeditor/ckeditor5-typin
77
74
  });
78
75
  }
79
76
  /**
80
- * Checks the attribute value of the first node in the selection that allows the attribute.
81
- * For the collapsed selection returns the selection attribute.
82
- *
83
- * @returns The attribute value.
84
- */ _getValueFromFirstAllowedNode() {
77
+ * Checks the attribute value of the first node in the selection that allows the attribute.
78
+ * For the collapsed selection returns the selection attribute.
79
+ *
80
+ * @returns The attribute value.
81
+ */ _getValueFromFirstAllowedNode() {
85
82
  const model = this.editor.model;
86
83
  const schema = model.schema;
87
84
  const selection = model.document.selection;
@@ -107,18 +104,18 @@ const BOLD$1 = 'bold';
107
104
  * as a `<strong>` element.
108
105
  */ class BoldEditing extends Plugin {
109
106
  /**
110
- * @inheritDoc
111
- */ static get pluginName() {
107
+ * @inheritDoc
108
+ */ static get pluginName() {
112
109
  return 'BoldEditing';
113
110
  }
114
111
  /**
115
- * @inheritDoc
116
- */ static get isOfficialPlugin() {
112
+ * @inheritDoc
113
+ */ static get isOfficialPlugin() {
117
114
  return true;
118
115
  }
119
116
  /**
120
- * @inheritDoc
121
- */ init() {
117
+ * @inheritDoc
118
+ */ init() {
122
119
  const editor = this.editor;
123
120
  const t = this.editor.t;
124
121
  // Allow bold attribute on text nodes.
@@ -206,18 +203,18 @@ const BOLD = 'bold';
206
203
  * The bold UI feature. It introduces the Bold button.
207
204
  */ class BoldUI extends Plugin {
208
205
  /**
209
- * @inheritDoc
210
- */ static get pluginName() {
206
+ * @inheritDoc
207
+ */ static get pluginName() {
211
208
  return 'BoldUI';
212
209
  }
213
210
  /**
214
- * @inheritDoc
215
- */ static get isOfficialPlugin() {
211
+ * @inheritDoc
212
+ */ static get isOfficialPlugin() {
216
213
  return true;
217
214
  }
218
215
  /**
219
- * @inheritDoc
220
- */ init() {
216
+ * @inheritDoc
217
+ */ init() {
221
218
  const editor = this.editor;
222
219
  const t = editor.locale.t;
223
220
  const createButton = getButtonCreator({
@@ -244,21 +241,21 @@ const BOLD = 'bold';
244
241
  * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
245
242
  */ class Bold extends Plugin {
246
243
  /**
247
- * @inheritDoc
248
- */ static get requires() {
244
+ * @inheritDoc
245
+ */ static get requires() {
249
246
  return [
250
247
  BoldEditing,
251
248
  BoldUI
252
249
  ];
253
250
  }
254
251
  /**
255
- * @inheritDoc
256
- */ static get pluginName() {
252
+ * @inheritDoc
253
+ */ static get pluginName() {
257
254
  return 'Bold';
258
255
  }
259
256
  /**
260
- * @inheritDoc
261
- */ static get isOfficialPlugin() {
257
+ * @inheritDoc
258
+ */ static get isOfficialPlugin() {
262
259
  return true;
263
260
  }
264
261
  }
@@ -272,25 +269,25 @@ const HIGHLIGHT_CLASS = 'ck-code_selected';
272
269
  * as a `<code>` element.
273
270
  */ class CodeEditing extends Plugin {
274
271
  /**
275
- * @inheritDoc
276
- */ static get pluginName() {
272
+ * @inheritDoc
273
+ */ static get pluginName() {
277
274
  return 'CodeEditing';
278
275
  }
279
276
  /**
280
- * @inheritDoc
281
- */ static get isOfficialPlugin() {
277
+ * @inheritDoc
278
+ */ static get isOfficialPlugin() {
282
279
  return true;
283
280
  }
284
281
  /**
285
- * @inheritDoc
286
- */ static get requires() {
282
+ * @inheritDoc
283
+ */ static get requires() {
287
284
  return [
288
285
  TwoStepCaretMovement
289
286
  ];
290
287
  }
291
288
  /**
292
- * @inheritDoc
293
- */ init() {
289
+ * @inheritDoc
290
+ */ init() {
294
291
  const editor = this.editor;
295
292
  const t = this.editor.t;
296
293
  // Allow code attribute on text nodes.
@@ -344,18 +341,18 @@ const CODE = 'code';
344
341
  * The code UI feature. It introduces the Code button.
345
342
  */ class CodeUI extends Plugin {
346
343
  /**
347
- * @inheritDoc
348
- */ static get pluginName() {
344
+ * @inheritDoc
345
+ */ static get pluginName() {
349
346
  return 'CodeUI';
350
347
  }
351
348
  /**
352
- * @inheritDoc
353
- */ static get isOfficialPlugin() {
349
+ * @inheritDoc
350
+ */ static get isOfficialPlugin() {
354
351
  return true;
355
352
  }
356
353
  /**
357
- * @inheritDoc
358
- */ init() {
354
+ * @inheritDoc
355
+ */ init() {
359
356
  const editor = this.editor;
360
357
  const t = editor.locale.t;
361
358
  const createButton = getButtonCreator({
@@ -381,21 +378,21 @@ const CODE = 'code';
381
378
  * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
382
379
  */ class Code extends Plugin {
383
380
  /**
384
- * @inheritDoc
385
- */ static get requires() {
381
+ * @inheritDoc
382
+ */ static get requires() {
386
383
  return [
387
384
  CodeEditing,
388
385
  CodeUI
389
386
  ];
390
387
  }
391
388
  /**
392
- * @inheritDoc
393
- */ static get pluginName() {
389
+ * @inheritDoc
390
+ */ static get pluginName() {
394
391
  return 'Code';
395
392
  }
396
393
  /**
397
- * @inheritDoc
398
- */ static get isOfficialPlugin() {
394
+ * @inheritDoc
395
+ */ static get isOfficialPlugin() {
399
396
  return true;
400
397
  }
401
398
  }
@@ -408,18 +405,18 @@ const ITALIC$1 = 'italic';
408
405
  * which renders to the view as an `<i>` element.
409
406
  */ class ItalicEditing extends Plugin {
410
407
  /**
411
- * @inheritDoc
412
- */ static get pluginName() {
408
+ * @inheritDoc
409
+ */ static get pluginName() {
413
410
  return 'ItalicEditing';
414
411
  }
415
412
  /**
416
- * @inheritDoc
417
- */ static get isOfficialPlugin() {
413
+ * @inheritDoc
414
+ */ static get isOfficialPlugin() {
418
415
  return true;
419
416
  }
420
417
  /**
421
- * @inheritDoc
422
- */ init() {
418
+ * @inheritDoc
419
+ */ init() {
423
420
  const editor = this.editor;
424
421
  const t = this.editor.t;
425
422
  // Allow italic attribute on text nodes.
@@ -465,18 +462,18 @@ const ITALIC = 'italic';
465
462
  * The italic UI feature. It introduces the Italic button.
466
463
  */ class ItalicUI extends Plugin {
467
464
  /**
468
- * @inheritDoc
469
- */ static get pluginName() {
465
+ * @inheritDoc
466
+ */ static get pluginName() {
470
467
  return 'ItalicUI';
471
468
  }
472
469
  /**
473
- * @inheritDoc
474
- */ static get isOfficialPlugin() {
470
+ * @inheritDoc
471
+ */ static get isOfficialPlugin() {
475
472
  return true;
476
473
  }
477
474
  /**
478
- * @inheritDoc
479
- */ init() {
475
+ * @inheritDoc
476
+ */ init() {
480
477
  const editor = this.editor;
481
478
  const t = editor.locale.t;
482
479
  const createButton = getButtonCreator({
@@ -503,21 +500,21 @@ const ITALIC = 'italic';
503
500
  * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
504
501
  */ class Italic extends Plugin {
505
502
  /**
506
- * @inheritDoc
507
- */ static get requires() {
503
+ * @inheritDoc
504
+ */ static get requires() {
508
505
  return [
509
506
  ItalicEditing,
510
507
  ItalicUI
511
508
  ];
512
509
  }
513
510
  /**
514
- * @inheritDoc
515
- */ static get pluginName() {
511
+ * @inheritDoc
512
+ */ static get pluginName() {
516
513
  return 'Italic';
517
514
  }
518
515
  /**
519
- * @inheritDoc
520
- */ static get isOfficialPlugin() {
516
+ * @inheritDoc
517
+ */ static get isOfficialPlugin() {
521
518
  return true;
522
519
  }
523
520
  }
@@ -531,18 +528,18 @@ const STRIKETHROUGH$1 = 'strikethrough';
531
528
  * as a `<s>` element.
532
529
  */ class StrikethroughEditing extends Plugin {
533
530
  /**
534
- * @inheritDoc
535
- */ static get pluginName() {
531
+ * @inheritDoc
532
+ */ static get pluginName() {
536
533
  return 'StrikethroughEditing';
537
534
  }
538
535
  /**
539
- * @inheritDoc
540
- */ static get isOfficialPlugin() {
536
+ * @inheritDoc
537
+ */ static get isOfficialPlugin() {
541
538
  return true;
542
539
  }
543
540
  /**
544
- * @inheritDoc
545
- */ init() {
541
+ * @inheritDoc
542
+ */ init() {
546
543
  const editor = this.editor;
547
544
  const t = this.editor.t;
548
545
  // Allow strikethrough attribute on text nodes.
@@ -589,18 +586,18 @@ const STRIKETHROUGH = 'strikethrough';
589
586
  * The strikethrough UI feature. It introduces the Strikethrough button.
590
587
  */ class StrikethroughUI extends Plugin {
591
588
  /**
592
- * @inheritDoc
593
- */ static get pluginName() {
589
+ * @inheritDoc
590
+ */ static get pluginName() {
594
591
  return 'StrikethroughUI';
595
592
  }
596
593
  /**
597
- * @inheritDoc
598
- */ static get isOfficialPlugin() {
594
+ * @inheritDoc
595
+ */ static get isOfficialPlugin() {
599
596
  return true;
600
597
  }
601
598
  /**
602
- * @inheritDoc
603
- */ init() {
599
+ * @inheritDoc
600
+ */ init() {
604
601
  const editor = this.editor;
605
602
  const t = editor.locale.t;
606
603
  const createButton = getButtonCreator({
@@ -627,21 +624,21 @@ const STRIKETHROUGH = 'strikethrough';
627
624
  * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
628
625
  */ class Strikethrough extends Plugin {
629
626
  /**
630
- * @inheritDoc
631
- */ static get requires() {
627
+ * @inheritDoc
628
+ */ static get requires() {
632
629
  return [
633
630
  StrikethroughEditing,
634
631
  StrikethroughUI
635
632
  ];
636
633
  }
637
634
  /**
638
- * @inheritDoc
639
- */ static get pluginName() {
635
+ * @inheritDoc
636
+ */ static get pluginName() {
640
637
  return 'Strikethrough';
641
638
  }
642
639
  /**
643
- * @inheritDoc
644
- */ static get isOfficialPlugin() {
640
+ * @inheritDoc
641
+ */ static get isOfficialPlugin() {
645
642
  return true;
646
643
  }
647
644
  }
@@ -654,18 +651,18 @@ const SUBSCRIPT$1 = 'subscript';
654
651
  * as a `<sub>` element.
655
652
  */ class SubscriptEditing extends Plugin {
656
653
  /**
657
- * @inheritDoc
658
- */ static get pluginName() {
654
+ * @inheritDoc
655
+ */ static get pluginName() {
659
656
  return 'SubscriptEditing';
660
657
  }
661
658
  /**
662
- * @inheritDoc
663
- */ static get isOfficialPlugin() {
659
+ * @inheritDoc
660
+ */ static get isOfficialPlugin() {
664
661
  return true;
665
662
  }
666
663
  /**
667
- * @inheritDoc
668
- */ init() {
664
+ * @inheritDoc
665
+ */ init() {
669
666
  const editor = this.editor;
670
667
  // Allow sub attribute on text nodes.
671
668
  editor.model.schema.extend('$text', {
@@ -699,18 +696,18 @@ const SUBSCRIPT = 'subscript';
699
696
  * The subscript UI feature. It introduces the Subscript button.
700
697
  */ class SubscriptUI extends Plugin {
701
698
  /**
702
- * @inheritDoc
703
- */ static get pluginName() {
699
+ * @inheritDoc
700
+ */ static get pluginName() {
704
701
  return 'SubscriptUI';
705
702
  }
706
703
  /**
707
- * @inheritDoc
708
- */ static get isOfficialPlugin() {
704
+ * @inheritDoc
705
+ */ static get isOfficialPlugin() {
709
706
  return true;
710
707
  }
711
708
  /**
712
- * @inheritDoc
713
- */ init() {
709
+ * @inheritDoc
710
+ */ init() {
714
711
  const editor = this.editor;
715
712
  const t = editor.locale.t;
716
713
  const createButton = getButtonCreator({
@@ -733,21 +730,21 @@ const SUBSCRIPT = 'subscript';
733
730
  * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
734
731
  */ class Subscript extends Plugin {
735
732
  /**
736
- * @inheritDoc
737
- */ static get requires() {
733
+ * @inheritDoc
734
+ */ static get requires() {
738
735
  return [
739
736
  SubscriptEditing,
740
737
  SubscriptUI
741
738
  ];
742
739
  }
743
740
  /**
744
- * @inheritDoc
745
- */ static get pluginName() {
741
+ * @inheritDoc
742
+ */ static get pluginName() {
746
743
  return 'Subscript';
747
744
  }
748
745
  /**
749
- * @inheritDoc
750
- */ static get isOfficialPlugin() {
746
+ * @inheritDoc
747
+ */ static get isOfficialPlugin() {
751
748
  return true;
752
749
  }
753
750
  }
@@ -760,18 +757,18 @@ const SUPERSCRIPT$1 = 'superscript';
760
757
  * as a `<super>` element.
761
758
  */ class SuperscriptEditing extends Plugin {
762
759
  /**
763
- * @inheritDoc
764
- */ static get pluginName() {
760
+ * @inheritDoc
761
+ */ static get pluginName() {
765
762
  return 'SuperscriptEditing';
766
763
  }
767
764
  /**
768
- * @inheritDoc
769
- */ static get isOfficialPlugin() {
765
+ * @inheritDoc
766
+ */ static get isOfficialPlugin() {
770
767
  return true;
771
768
  }
772
769
  /**
773
- * @inheritDoc
774
- */ init() {
770
+ * @inheritDoc
771
+ */ init() {
775
772
  const editor = this.editor;
776
773
  // Allow super attribute on text nodes.
777
774
  editor.model.schema.extend('$text', {
@@ -805,18 +802,18 @@ const SUPERSCRIPT = 'superscript';
805
802
  * The superscript UI feature. It introduces the Superscript button.
806
803
  */ class SuperscriptUI extends Plugin {
807
804
  /**
808
- * @inheritDoc
809
- */ static get pluginName() {
805
+ * @inheritDoc
806
+ */ static get pluginName() {
810
807
  return 'SuperscriptUI';
811
808
  }
812
809
  /**
813
- * @inheritDoc
814
- */ static get isOfficialPlugin() {
810
+ * @inheritDoc
811
+ */ static get isOfficialPlugin() {
815
812
  return true;
816
813
  }
817
814
  /**
818
- * @inheritDoc
819
- */ init() {
815
+ * @inheritDoc
816
+ */ init() {
820
817
  const editor = this.editor;
821
818
  const t = editor.locale.t;
822
819
  const createButton = getButtonCreator({
@@ -839,21 +836,21 @@ const SUPERSCRIPT = 'superscript';
839
836
  * {@link module:basic-styles/superscript/superscriptui~SuperscriptUI} plugins.
840
837
  */ class Superscript extends Plugin {
841
838
  /**
842
- * @inheritDoc
843
- */ static get requires() {
839
+ * @inheritDoc
840
+ */ static get requires() {
844
841
  return [
845
842
  SuperscriptEditing,
846
843
  SuperscriptUI
847
844
  ];
848
845
  }
849
846
  /**
850
- * @inheritDoc
851
- */ static get pluginName() {
847
+ * @inheritDoc
848
+ */ static get pluginName() {
852
849
  return 'Superscript';
853
850
  }
854
851
  /**
855
- * @inheritDoc
856
- */ static get isOfficialPlugin() {
852
+ * @inheritDoc
853
+ */ static get isOfficialPlugin() {
857
854
  return true;
858
855
  }
859
856
  }
@@ -866,18 +863,18 @@ const UNDERLINE$1 = 'underline';
866
863
  * and introduces the `underline` attribute in the model which renders to the view as an `<u>` element.
867
864
  */ class UnderlineEditing extends Plugin {
868
865
  /**
869
- * @inheritDoc
870
- */ static get pluginName() {
866
+ * @inheritDoc
867
+ */ static get pluginName() {
871
868
  return 'UnderlineEditing';
872
869
  }
873
870
  /**
874
- * @inheritDoc
875
- */ static get isOfficialPlugin() {
871
+ * @inheritDoc
872
+ */ static get isOfficialPlugin() {
876
873
  return true;
877
874
  }
878
875
  /**
879
- * @inheritDoc
880
- */ init() {
876
+ * @inheritDoc
877
+ */ init() {
881
878
  const editor = this.editor;
882
879
  const t = this.editor.t;
883
880
  // Allow strikethrough attribute on text nodes.
@@ -920,18 +917,18 @@ const UNDERLINE = 'underline';
920
917
  * The underline UI feature. It introduces the Underline button.
921
918
  */ class UnderlineUI extends Plugin {
922
919
  /**
923
- * @inheritDoc
924
- */ static get pluginName() {
920
+ * @inheritDoc
921
+ */ static get pluginName() {
925
922
  return 'UnderlineUI';
926
923
  }
927
924
  /**
928
- * @inheritDoc
929
- */ static get isOfficialPlugin() {
925
+ * @inheritDoc
926
+ */ static get isOfficialPlugin() {
930
927
  return true;
931
928
  }
932
929
  /**
933
- * @inheritDoc
934
- */ init() {
930
+ * @inheritDoc
931
+ */ init() {
935
932
  const editor = this.editor;
936
933
  const t = editor.locale.t;
937
934
  const createButton = getButtonCreator({
@@ -958,21 +955,21 @@ const UNDERLINE = 'underline';
958
955
  * {@link module:basic-styles/underline/underlineui~UnderlineUI} plugins.
959
956
  */ class Underline extends Plugin {
960
957
  /**
961
- * @inheritDoc
962
- */ static get requires() {
958
+ * @inheritDoc
959
+ */ static get requires() {
963
960
  return [
964
961
  UnderlineEditing,
965
962
  UnderlineUI
966
963
  ];
967
964
  }
968
965
  /**
969
- * @inheritDoc
970
- */ static get pluginName() {
966
+ * @inheritDoc
967
+ */ static get pluginName() {
971
968
  return 'Underline';
972
969
  }
973
970
  /**
974
- * @inheritDoc
975
- */ static get isOfficialPlugin() {
971
+ * @inheritDoc
972
+ */ static get isOfficialPlugin() {
976
973
  return true;
977
974
  }
978
975
  }