@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.
- package/LICENSE.md +7 -2
- package/README.md +18 -7
- package/build/translations/kk.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +156 -159
- package/dist/index.js.map +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +5 -0
- package/dist/translations/kk.umd.js +11 -0
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/lang/translations/af.po +3 -9
- package/lang/translations/ar.po +4 -10
- package/lang/translations/ast.po +3 -9
- package/lang/translations/az.po +3 -9
- package/lang/translations/bg.po +3 -9
- package/lang/translations/bn.po +3 -9
- package/lang/translations/bs.po +4 -10
- package/lang/translations/ca.po +3 -9
- package/lang/translations/cs.po +4 -10
- package/lang/translations/da.po +3 -9
- package/lang/translations/de-ch.po +3 -9
- package/lang/translations/de.po +3 -9
- package/lang/translations/el.po +3 -9
- package/lang/translations/en-au.po +3 -9
- package/lang/translations/en-gb.po +3 -9
- package/lang/translations/en.po +5 -11
- package/lang/translations/eo.po +3 -9
- package/lang/translations/es-co.po +4 -10
- package/lang/translations/es.po +4 -10
- package/lang/translations/et.po +3 -9
- package/lang/translations/eu.po +3 -9
- package/lang/translations/fa.po +4 -10
- package/lang/translations/fi.po +3 -9
- package/lang/translations/fr.po +4 -10
- package/lang/translations/gl.po +3 -9
- package/lang/translations/gu.po +3 -9
- package/lang/translations/he.po +4 -10
- package/lang/translations/hi.po +3 -9
- package/lang/translations/hr.po +4 -10
- package/lang/translations/hu.po +3 -9
- package/lang/translations/hy.po +3 -9
- package/lang/translations/id.po +3 -9
- package/lang/translations/it.po +4 -10
- package/lang/translations/ja.po +3 -9
- package/lang/translations/jv.po +4 -10
- package/lang/translations/kk.po +60 -0
- package/lang/translations/km.po +3 -9
- package/lang/translations/kn.po +4 -10
- package/lang/translations/ko.po +3 -9
- package/lang/translations/ku.po +3 -9
- package/lang/translations/lt.po +4 -10
- package/lang/translations/lv.po +4 -10
- package/lang/translations/ms.po +3 -9
- package/lang/translations/nb.po +3 -9
- package/lang/translations/ne.po +3 -9
- package/lang/translations/nl.po +3 -9
- package/lang/translations/no.po +3 -9
- package/lang/translations/oc.po +3 -9
- package/lang/translations/pl.po +4 -10
- package/lang/translations/pt-br.po +4 -10
- package/lang/translations/pt.po +4 -10
- package/lang/translations/ro.po +4 -10
- package/lang/translations/ru.po +4 -10
- package/lang/translations/si.po +3 -9
- package/lang/translations/sk.po +4 -10
- package/lang/translations/sl.po +4 -10
- package/lang/translations/sq.po +3 -9
- package/lang/translations/sr-latn.po +4 -10
- package/lang/translations/sr.po +4 -10
- package/lang/translations/sv.po +3 -9
- package/lang/translations/th.po +3 -9
- package/lang/translations/ti.po +3 -9
- package/lang/translations/tk.po +3 -9
- package/lang/translations/tr.po +3 -9
- package/lang/translations/tt.po +3 -9
- package/lang/translations/ug.po +4 -10
- package/lang/translations/uk.po +4 -10
- package/lang/translations/ur.po +3 -9
- package/lang/translations/uz.po +4 -10
- package/lang/translations/vi.po +3 -9
- package/lang/translations/zh-cn.po +3 -9
- package/lang/translations/zh.po +3 -9
- package/package.json +26 -7
- package/src/attributecommand.d.ts +1 -1
- package/src/attributecommand.js +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/bold/boldediting.d.ts +1 -1
- package/src/bold/boldediting.js +1 -1
- package/src/bold/boldui.d.ts +1 -1
- package/src/bold/boldui.js +1 -1
- package/src/bold.d.ts +1 -1
- package/src/bold.js +1 -1
- package/src/code/codeediting.d.ts +1 -1
- package/src/code/codeediting.js +1 -1
- package/src/code/codeui.d.ts +1 -1
- package/src/code/codeui.js +1 -1
- package/src/code.d.ts +1 -1
- package/src/code.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/italic/italicediting.d.ts +1 -1
- package/src/italic/italicediting.js +1 -1
- package/src/italic/italicui.d.ts +1 -1
- package/src/italic/italicui.js +1 -1
- package/src/italic.d.ts +1 -1
- package/src/italic.js +1 -1
- package/src/strikethrough/strikethroughediting.d.ts +1 -1
- package/src/strikethrough/strikethroughediting.js +1 -1
- package/src/strikethrough/strikethroughui.d.ts +1 -1
- package/src/strikethrough/strikethroughui.js +1 -1
- package/src/strikethrough.d.ts +1 -1
- package/src/strikethrough.js +1 -1
- package/src/subscript/subscriptediting.d.ts +1 -1
- package/src/subscript/subscriptediting.js +1 -1
- package/src/subscript/subscriptui.d.ts +1 -1
- package/src/subscript/subscriptui.js +1 -1
- package/src/subscript.d.ts +1 -1
- package/src/subscript.js +1 -1
- package/src/superscript/superscriptediting.d.ts +1 -1
- package/src/superscript/superscriptediting.js +1 -1
- package/src/superscript/superscriptui.d.ts +1 -1
- package/src/superscript/superscriptui.js +1 -1
- package/src/superscript.d.ts +1 -1
- package/src/superscript.js +1 -1
- package/src/underline/underlineediting.d.ts +1 -1
- package/src/underline/underlineediting.js +1 -1
- package/src/underline/underlineui.d.ts +1 -1
- package/src/underline/underlineui.js +1 -1
- package/src/underline.d.ts +1 -1
- package/src/underline.js +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.js +1 -1
- package/theme/code.css +1 -1
- package/dist/attributecommand.d.ts +0 -78
- package/dist/augmentation.d.ts +0 -44
- package/dist/bold/boldediting.d.ts +0 -32
- package/dist/bold/boldui.d.ts +0 -29
- package/dist/bold.d.ts +0 -37
- package/dist/code/codeediting.d.ts +0 -37
- package/dist/code/codeui.d.ts +0 -30
- package/dist/code.d.ts +0 -38
- package/dist/index.d.ts +0 -34
- package/dist/italic/italicediting.d.ts +0 -32
- package/dist/italic/italicui.d.ts +0 -29
- package/dist/italic.d.ts +0 -37
- package/dist/strikethrough/strikethroughediting.d.ts +0 -33
- package/dist/strikethrough/strikethroughui.d.ts +0 -29
- package/dist/strikethrough.d.ts +0 -37
- package/dist/subscript/subscriptediting.d.ts +0 -32
- package/dist/subscript/subscriptui.d.ts +0 -29
- package/dist/subscript.d.ts +0 -34
- package/dist/superscript/superscriptediting.d.ts +0 -32
- package/dist/superscript/superscriptui.d.ts +0 -29
- package/dist/superscript.d.ts +0 -34
- package/dist/underline/underlineediting.d.ts +0 -32
- package/dist/underline/underlineui.d.ts +0 -29
- package/dist/underline.d.ts +0 -37
- 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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
111
|
-
|
|
107
|
+
* @inheritDoc
|
|
108
|
+
*/ static get pluginName() {
|
|
112
109
|
return 'BoldEditing';
|
|
113
110
|
}
|
|
114
111
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
* @inheritDoc
|
|
113
|
+
*/ static get isOfficialPlugin() {
|
|
117
114
|
return true;
|
|
118
115
|
}
|
|
119
116
|
/**
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
210
|
-
|
|
206
|
+
* @inheritDoc
|
|
207
|
+
*/ static get pluginName() {
|
|
211
208
|
return 'BoldUI';
|
|
212
209
|
}
|
|
213
210
|
/**
|
|
214
|
-
|
|
215
|
-
|
|
211
|
+
* @inheritDoc
|
|
212
|
+
*/ static get isOfficialPlugin() {
|
|
216
213
|
return true;
|
|
217
214
|
}
|
|
218
215
|
/**
|
|
219
|
-
|
|
220
|
-
|
|
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
|
-
|
|
248
|
-
|
|
244
|
+
* @inheritDoc
|
|
245
|
+
*/ static get requires() {
|
|
249
246
|
return [
|
|
250
247
|
BoldEditing,
|
|
251
248
|
BoldUI
|
|
252
249
|
];
|
|
253
250
|
}
|
|
254
251
|
/**
|
|
255
|
-
|
|
256
|
-
|
|
252
|
+
* @inheritDoc
|
|
253
|
+
*/ static get pluginName() {
|
|
257
254
|
return 'Bold';
|
|
258
255
|
}
|
|
259
256
|
/**
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
276
|
-
|
|
272
|
+
* @inheritDoc
|
|
273
|
+
*/ static get pluginName() {
|
|
277
274
|
return 'CodeEditing';
|
|
278
275
|
}
|
|
279
276
|
/**
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
* @inheritDoc
|
|
278
|
+
*/ static get isOfficialPlugin() {
|
|
282
279
|
return true;
|
|
283
280
|
}
|
|
284
281
|
/**
|
|
285
|
-
|
|
286
|
-
|
|
282
|
+
* @inheritDoc
|
|
283
|
+
*/ static get requires() {
|
|
287
284
|
return [
|
|
288
285
|
TwoStepCaretMovement
|
|
289
286
|
];
|
|
290
287
|
}
|
|
291
288
|
/**
|
|
292
|
-
|
|
293
|
-
|
|
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
|
-
|
|
348
|
-
|
|
344
|
+
* @inheritDoc
|
|
345
|
+
*/ static get pluginName() {
|
|
349
346
|
return 'CodeUI';
|
|
350
347
|
}
|
|
351
348
|
/**
|
|
352
|
-
|
|
353
|
-
|
|
349
|
+
* @inheritDoc
|
|
350
|
+
*/ static get isOfficialPlugin() {
|
|
354
351
|
return true;
|
|
355
352
|
}
|
|
356
353
|
/**
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
|
|
385
|
-
|
|
381
|
+
* @inheritDoc
|
|
382
|
+
*/ static get requires() {
|
|
386
383
|
return [
|
|
387
384
|
CodeEditing,
|
|
388
385
|
CodeUI
|
|
389
386
|
];
|
|
390
387
|
}
|
|
391
388
|
/**
|
|
392
|
-
|
|
393
|
-
|
|
389
|
+
* @inheritDoc
|
|
390
|
+
*/ static get pluginName() {
|
|
394
391
|
return 'Code';
|
|
395
392
|
}
|
|
396
393
|
/**
|
|
397
|
-
|
|
398
|
-
|
|
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
|
-
|
|
412
|
-
|
|
408
|
+
* @inheritDoc
|
|
409
|
+
*/ static get pluginName() {
|
|
413
410
|
return 'ItalicEditing';
|
|
414
411
|
}
|
|
415
412
|
/**
|
|
416
|
-
|
|
417
|
-
|
|
413
|
+
* @inheritDoc
|
|
414
|
+
*/ static get isOfficialPlugin() {
|
|
418
415
|
return true;
|
|
419
416
|
}
|
|
420
417
|
/**
|
|
421
|
-
|
|
422
|
-
|
|
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
|
-
|
|
469
|
-
|
|
465
|
+
* @inheritDoc
|
|
466
|
+
*/ static get pluginName() {
|
|
470
467
|
return 'ItalicUI';
|
|
471
468
|
}
|
|
472
469
|
/**
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
* @inheritDoc
|
|
471
|
+
*/ static get isOfficialPlugin() {
|
|
475
472
|
return true;
|
|
476
473
|
}
|
|
477
474
|
/**
|
|
478
|
-
|
|
479
|
-
|
|
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
|
-
|
|
507
|
-
|
|
503
|
+
* @inheritDoc
|
|
504
|
+
*/ static get requires() {
|
|
508
505
|
return [
|
|
509
506
|
ItalicEditing,
|
|
510
507
|
ItalicUI
|
|
511
508
|
];
|
|
512
509
|
}
|
|
513
510
|
/**
|
|
514
|
-
|
|
515
|
-
|
|
511
|
+
* @inheritDoc
|
|
512
|
+
*/ static get pluginName() {
|
|
516
513
|
return 'Italic';
|
|
517
514
|
}
|
|
518
515
|
/**
|
|
519
|
-
|
|
520
|
-
|
|
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
|
-
|
|
535
|
-
|
|
531
|
+
* @inheritDoc
|
|
532
|
+
*/ static get pluginName() {
|
|
536
533
|
return 'StrikethroughEditing';
|
|
537
534
|
}
|
|
538
535
|
/**
|
|
539
|
-
|
|
540
|
-
|
|
536
|
+
* @inheritDoc
|
|
537
|
+
*/ static get isOfficialPlugin() {
|
|
541
538
|
return true;
|
|
542
539
|
}
|
|
543
540
|
/**
|
|
544
|
-
|
|
545
|
-
|
|
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
|
-
|
|
593
|
-
|
|
589
|
+
* @inheritDoc
|
|
590
|
+
*/ static get pluginName() {
|
|
594
591
|
return 'StrikethroughUI';
|
|
595
592
|
}
|
|
596
593
|
/**
|
|
597
|
-
|
|
598
|
-
|
|
594
|
+
* @inheritDoc
|
|
595
|
+
*/ static get isOfficialPlugin() {
|
|
599
596
|
return true;
|
|
600
597
|
}
|
|
601
598
|
/**
|
|
602
|
-
|
|
603
|
-
|
|
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
|
-
|
|
631
|
-
|
|
627
|
+
* @inheritDoc
|
|
628
|
+
*/ static get requires() {
|
|
632
629
|
return [
|
|
633
630
|
StrikethroughEditing,
|
|
634
631
|
StrikethroughUI
|
|
635
632
|
];
|
|
636
633
|
}
|
|
637
634
|
/**
|
|
638
|
-
|
|
639
|
-
|
|
635
|
+
* @inheritDoc
|
|
636
|
+
*/ static get pluginName() {
|
|
640
637
|
return 'Strikethrough';
|
|
641
638
|
}
|
|
642
639
|
/**
|
|
643
|
-
|
|
644
|
-
|
|
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
|
-
|
|
658
|
-
|
|
654
|
+
* @inheritDoc
|
|
655
|
+
*/ static get pluginName() {
|
|
659
656
|
return 'SubscriptEditing';
|
|
660
657
|
}
|
|
661
658
|
/**
|
|
662
|
-
|
|
663
|
-
|
|
659
|
+
* @inheritDoc
|
|
660
|
+
*/ static get isOfficialPlugin() {
|
|
664
661
|
return true;
|
|
665
662
|
}
|
|
666
663
|
/**
|
|
667
|
-
|
|
668
|
-
|
|
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
|
-
|
|
703
|
-
|
|
699
|
+
* @inheritDoc
|
|
700
|
+
*/ static get pluginName() {
|
|
704
701
|
return 'SubscriptUI';
|
|
705
702
|
}
|
|
706
703
|
/**
|
|
707
|
-
|
|
708
|
-
|
|
704
|
+
* @inheritDoc
|
|
705
|
+
*/ static get isOfficialPlugin() {
|
|
709
706
|
return true;
|
|
710
707
|
}
|
|
711
708
|
/**
|
|
712
|
-
|
|
713
|
-
|
|
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
|
-
|
|
737
|
-
|
|
733
|
+
* @inheritDoc
|
|
734
|
+
*/ static get requires() {
|
|
738
735
|
return [
|
|
739
736
|
SubscriptEditing,
|
|
740
737
|
SubscriptUI
|
|
741
738
|
];
|
|
742
739
|
}
|
|
743
740
|
/**
|
|
744
|
-
|
|
745
|
-
|
|
741
|
+
* @inheritDoc
|
|
742
|
+
*/ static get pluginName() {
|
|
746
743
|
return 'Subscript';
|
|
747
744
|
}
|
|
748
745
|
/**
|
|
749
|
-
|
|
750
|
-
|
|
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
|
-
|
|
764
|
-
|
|
760
|
+
* @inheritDoc
|
|
761
|
+
*/ static get pluginName() {
|
|
765
762
|
return 'SuperscriptEditing';
|
|
766
763
|
}
|
|
767
764
|
/**
|
|
768
|
-
|
|
769
|
-
|
|
765
|
+
* @inheritDoc
|
|
766
|
+
*/ static get isOfficialPlugin() {
|
|
770
767
|
return true;
|
|
771
768
|
}
|
|
772
769
|
/**
|
|
773
|
-
|
|
774
|
-
|
|
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
|
-
|
|
809
|
-
|
|
805
|
+
* @inheritDoc
|
|
806
|
+
*/ static get pluginName() {
|
|
810
807
|
return 'SuperscriptUI';
|
|
811
808
|
}
|
|
812
809
|
/**
|
|
813
|
-
|
|
814
|
-
|
|
810
|
+
* @inheritDoc
|
|
811
|
+
*/ static get isOfficialPlugin() {
|
|
815
812
|
return true;
|
|
816
813
|
}
|
|
817
814
|
/**
|
|
818
|
-
|
|
819
|
-
|
|
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
|
-
|
|
843
|
-
|
|
839
|
+
* @inheritDoc
|
|
840
|
+
*/ static get requires() {
|
|
844
841
|
return [
|
|
845
842
|
SuperscriptEditing,
|
|
846
843
|
SuperscriptUI
|
|
847
844
|
];
|
|
848
845
|
}
|
|
849
846
|
/**
|
|
850
|
-
|
|
851
|
-
|
|
847
|
+
* @inheritDoc
|
|
848
|
+
*/ static get pluginName() {
|
|
852
849
|
return 'Superscript';
|
|
853
850
|
}
|
|
854
851
|
/**
|
|
855
|
-
|
|
856
|
-
|
|
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
|
-
|
|
870
|
-
|
|
866
|
+
* @inheritDoc
|
|
867
|
+
*/ static get pluginName() {
|
|
871
868
|
return 'UnderlineEditing';
|
|
872
869
|
}
|
|
873
870
|
/**
|
|
874
|
-
|
|
875
|
-
|
|
871
|
+
* @inheritDoc
|
|
872
|
+
*/ static get isOfficialPlugin() {
|
|
876
873
|
return true;
|
|
877
874
|
}
|
|
878
875
|
/**
|
|
879
|
-
|
|
880
|
-
|
|
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
|
-
|
|
924
|
-
|
|
920
|
+
* @inheritDoc
|
|
921
|
+
*/ static get pluginName() {
|
|
925
922
|
return 'UnderlineUI';
|
|
926
923
|
}
|
|
927
924
|
/**
|
|
928
|
-
|
|
929
|
-
|
|
925
|
+
* @inheritDoc
|
|
926
|
+
*/ static get isOfficialPlugin() {
|
|
930
927
|
return true;
|
|
931
928
|
}
|
|
932
929
|
/**
|
|
933
|
-
|
|
934
|
-
|
|
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
|
-
|
|
962
|
-
|
|
958
|
+
* @inheritDoc
|
|
959
|
+
*/ static get requires() {
|
|
963
960
|
return [
|
|
964
961
|
UnderlineEditing,
|
|
965
962
|
UnderlineUI
|
|
966
963
|
];
|
|
967
964
|
}
|
|
968
965
|
/**
|
|
969
|
-
|
|
970
|
-
|
|
966
|
+
* @inheritDoc
|
|
967
|
+
*/ static get pluginName() {
|
|
971
968
|
return 'Underline';
|
|
972
969
|
}
|
|
973
970
|
/**
|
|
974
|
-
|
|
975
|
-
|
|
971
|
+
* @inheritDoc
|
|
972
|
+
*/ static get isOfficialPlugin() {
|
|
976
973
|
return true;
|
|
977
974
|
}
|
|
978
975
|
}
|