@ckeditor/ckeditor5-basic-styles 39.0.2 → 40.0.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 (52) hide show
  1. package/build/basic-styles.js.map +1 -0
  2. package/build/translations/hy.js +1 -0
  3. package/lang/translations/hy.po +46 -0
  4. package/package.json +2 -2
  5. package/src/attributecommand.d.ts +74 -74
  6. package/src/attributecommand.js +105 -105
  7. package/src/augmentation.d.ts +40 -40
  8. package/src/augmentation.js +5 -5
  9. package/src/bold/boldediting.d.ts +24 -24
  10. package/src/bold/boldediting.js +62 -62
  11. package/src/bold/boldui.d.ts +21 -21
  12. package/src/bold/boldui.js +47 -47
  13. package/src/bold.d.ts +29 -29
  14. package/src/bold.js +33 -33
  15. package/src/code/codeediting.d.ts +29 -29
  16. package/src/code/codeediting.js +59 -59
  17. package/src/code/codeui.d.ts +22 -22
  18. package/src/code/codeui.js +48 -48
  19. package/src/code.d.ts +30 -30
  20. package/src/code.js +34 -34
  21. package/src/index.d.ts +30 -30
  22. package/src/index.js +29 -29
  23. package/src/italic/italicediting.d.ts +24 -24
  24. package/src/italic/italicediting.js +52 -52
  25. package/src/italic/italicui.d.ts +21 -21
  26. package/src/italic/italicui.js +48 -48
  27. package/src/italic.d.ts +29 -29
  28. package/src/italic.js +33 -33
  29. package/src/strikethrough/strikethroughediting.d.ts +25 -25
  30. package/src/strikethrough/strikethroughediting.js +54 -54
  31. package/src/strikethrough/strikethroughui.d.ts +21 -21
  32. package/src/strikethrough/strikethroughui.js +48 -48
  33. package/src/strikethrough.d.ts +29 -29
  34. package/src/strikethrough.js +33 -33
  35. package/src/subscript/subscriptediting.d.ts +24 -24
  36. package/src/subscript/subscriptediting.js +50 -50
  37. package/src/subscript/subscriptui.d.ts +21 -21
  38. package/src/subscript/subscriptui.js +47 -47
  39. package/src/subscript.d.ts +26 -26
  40. package/src/subscript.js +30 -30
  41. package/src/superscript/superscriptediting.d.ts +24 -24
  42. package/src/superscript/superscriptediting.js +50 -50
  43. package/src/superscript/superscriptui.d.ts +21 -21
  44. package/src/superscript/superscriptui.js +47 -47
  45. package/src/superscript.d.ts +26 -26
  46. package/src/superscript.js +30 -30
  47. package/src/underline/underlineediting.d.ts +24 -24
  48. package/src/underline/underlineediting.js +49 -49
  49. package/src/underline/underlineui.d.ts +21 -21
  50. package/src/underline/underlineui.js +48 -48
  51. package/src/underline.d.ts +29 -29
  52. package/src/underline.js +33 -33
@@ -1,48 +1,48 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/strikethrough/strikethroughui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import strikethroughIcon from '../../theme/icons/strikethrough.svg';
11
- const STRIKETHROUGH = 'strikethrough';
12
- /**
13
- * The strikethrough UI feature. It introduces the Strikethrough button.
14
- */
15
- export default class StrikethroughUI extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName() {
20
- return 'StrikethroughUI';
21
- }
22
- /**
23
- * @inheritDoc
24
- */
25
- init() {
26
- const editor = this.editor;
27
- const t = editor.t;
28
- // Add strikethrough button to feature components.
29
- editor.ui.componentFactory.add(STRIKETHROUGH, locale => {
30
- const command = editor.commands.get(STRIKETHROUGH);
31
- const view = new ButtonView(locale);
32
- view.set({
33
- label: t('Strikethrough'),
34
- icon: strikethroughIcon,
35
- keystroke: 'CTRL+SHIFT+X',
36
- tooltip: true,
37
- isToggleable: true
38
- });
39
- view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
40
- // Execute command.
41
- this.listenTo(view, 'execute', () => {
42
- editor.execute(STRIKETHROUGH);
43
- editor.editing.view.focus();
44
- });
45
- return view;
46
- });
47
- }
48
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/strikethrough/strikethroughui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import strikethroughIcon from '../../theme/icons/strikethrough.svg';
11
+ const STRIKETHROUGH = 'strikethrough';
12
+ /**
13
+ * The strikethrough UI feature. It introduces the Strikethrough button.
14
+ */
15
+ export default class StrikethroughUI extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName() {
20
+ return 'StrikethroughUI';
21
+ }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init() {
26
+ const editor = this.editor;
27
+ const t = editor.t;
28
+ // Add strikethrough button to feature components.
29
+ editor.ui.componentFactory.add(STRIKETHROUGH, locale => {
30
+ const command = editor.commands.get(STRIKETHROUGH);
31
+ const view = new ButtonView(locale);
32
+ view.set({
33
+ label: t('Strikethrough'),
34
+ icon: strikethroughIcon,
35
+ keystroke: 'CTRL+SHIFT+X',
36
+ tooltip: true,
37
+ isToggleable: true
38
+ });
39
+ view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
40
+ // Execute command.
41
+ this.listenTo(view, 'execute', () => {
42
+ editor.execute(STRIKETHROUGH);
43
+ editor.editing.view.focus();
44
+ });
45
+ return view;
46
+ });
47
+ }
48
+ }
@@ -1,29 +1,29 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/strikethrough
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import StrikethroughEditing from './strikethrough/strikethroughediting';
10
- import StrikethroughUI from './strikethrough/strikethroughui';
11
- /**
12
- * The strikethrough feature.
13
- *
14
- * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
- * and the {@glink api/basic-styles package page}.
16
- *
17
- * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
- * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
- */
20
- export default class Strikethrough extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof StrikethroughEditing, typeof StrikethroughUI];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "Strikethrough";
29
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/strikethrough
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import StrikethroughEditing from './strikethrough/strikethroughediting';
10
+ import StrikethroughUI from './strikethrough/strikethroughui';
11
+ /**
12
+ * The strikethrough feature.
13
+ *
14
+ * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
+ * and the {@glink api/basic-styles package page}.
16
+ *
17
+ * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
+ * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
+ */
20
+ export default class Strikethrough extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof StrikethroughEditing, typeof StrikethroughUI];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "Strikethrough";
29
+ }
@@ -1,33 +1,33 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/strikethrough
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import StrikethroughEditing from './strikethrough/strikethroughediting';
10
- import StrikethroughUI from './strikethrough/strikethroughui';
11
- /**
12
- * The strikethrough feature.
13
- *
14
- * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
- * and the {@glink api/basic-styles package page}.
16
- *
17
- * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
- * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
- */
20
- export default class Strikethrough extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires() {
25
- return [StrikethroughEditing, StrikethroughUI];
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- static get pluginName() {
31
- return 'Strikethrough';
32
- }
33
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/strikethrough
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import StrikethroughEditing from './strikethrough/strikethroughediting';
10
+ import StrikethroughUI from './strikethrough/strikethroughui';
11
+ /**
12
+ * The strikethrough feature.
13
+ *
14
+ * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
15
+ * and the {@glink api/basic-styles package page}.
16
+ *
17
+ * This is a "glue" plugin which loads the {@link module:basic-styles/strikethrough/strikethroughediting~StrikethroughEditing} and
18
+ * {@link module:basic-styles/strikethrough/strikethroughui~StrikethroughUI} plugins.
19
+ */
20
+ export default class Strikethrough extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires() {
25
+ return [StrikethroughEditing, StrikethroughUI];
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'Strikethrough';
32
+ }
33
+ }
@@ -1,24 +1,24 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript/subscriptediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The subscript editing feature.
11
- *
12
- * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
13
- * as a `<sub>` element.
14
- */
15
- export default class SubscriptEditing extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "SubscriptEditing";
20
- /**
21
- * @inheritDoc
22
- */
23
- init(): void;
24
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript/subscriptediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The subscript editing feature.
11
+ *
12
+ * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
13
+ * as a `<sub>` element.
14
+ */
15
+ export default class SubscriptEditing extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "SubscriptEditing";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ init(): void;
24
+ }
@@ -1,50 +1,50 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript/subscriptediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import AttributeCommand from '../attributecommand';
10
- const SUBSCRIPT = 'subscript';
11
- /**
12
- * The subscript editing feature.
13
- *
14
- * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
15
- * as a `<sub>` element.
16
- */
17
- export default class SubscriptEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName() {
22
- return 'SubscriptEditing';
23
- }
24
- /**
25
- * @inheritDoc
26
- */
27
- init() {
28
- const editor = this.editor;
29
- // Allow sub attribute on text nodes.
30
- editor.model.schema.extend('$text', { allowAttributes: SUBSCRIPT });
31
- editor.model.schema.setAttributeProperties(SUBSCRIPT, {
32
- isFormatting: true,
33
- copyOnEnter: true
34
- });
35
- // Build converter from model to view for data and editing pipelines.
36
- editor.conversion.attributeToElement({
37
- model: SUBSCRIPT,
38
- view: 'sub',
39
- upcastAlso: [
40
- {
41
- styles: {
42
- 'vertical-align': 'sub'
43
- }
44
- }
45
- ]
46
- });
47
- // Create sub command.
48
- editor.commands.add(SUBSCRIPT, new AttributeCommand(editor, SUBSCRIPT));
49
- }
50
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript/subscriptediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import AttributeCommand from '../attributecommand';
10
+ const SUBSCRIPT = 'subscript';
11
+ /**
12
+ * The subscript editing feature.
13
+ *
14
+ * It registers the `sub` command and introduces the `sub` attribute in the model which renders to the view
15
+ * as a `<sub>` element.
16
+ */
17
+ export default class SubscriptEditing extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName() {
22
+ return 'SubscriptEditing';
23
+ }
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init() {
28
+ const editor = this.editor;
29
+ // Allow sub attribute on text nodes.
30
+ editor.model.schema.extend('$text', { allowAttributes: SUBSCRIPT });
31
+ editor.model.schema.setAttributeProperties(SUBSCRIPT, {
32
+ isFormatting: true,
33
+ copyOnEnter: true
34
+ });
35
+ // Build converter from model to view for data and editing pipelines.
36
+ editor.conversion.attributeToElement({
37
+ model: SUBSCRIPT,
38
+ view: 'sub',
39
+ upcastAlso: [
40
+ {
41
+ styles: {
42
+ 'vertical-align': 'sub'
43
+ }
44
+ }
45
+ ]
46
+ });
47
+ // Create sub command.
48
+ editor.commands.add(SUBSCRIPT, new AttributeCommand(editor, SUBSCRIPT));
49
+ }
50
+ }
@@ -1,21 +1,21 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript/subscriptui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The subscript UI feature. It introduces the Subscript button.
11
- */
12
- export default class SubscriptUI extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- static get pluginName(): "SubscriptUI";
17
- /**
18
- * @inheritDoc
19
- */
20
- init(): void;
21
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript/subscriptui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The subscript UI feature. It introduces the Subscript button.
11
+ */
12
+ export default class SubscriptUI extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "SubscriptUI";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ init(): void;
21
+ }
@@ -1,47 +1,47 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript/subscriptui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import subscriptIcon from '../../theme/icons/subscript.svg';
11
- const SUBSCRIPT = 'subscript';
12
- /**
13
- * The subscript UI feature. It introduces the Subscript button.
14
- */
15
- export default class SubscriptUI extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName() {
20
- return 'SubscriptUI';
21
- }
22
- /**
23
- * @inheritDoc
24
- */
25
- init() {
26
- const editor = this.editor;
27
- const t = editor.t;
28
- // Add subscript button to feature components.
29
- editor.ui.componentFactory.add(SUBSCRIPT, locale => {
30
- const command = editor.commands.get(SUBSCRIPT);
31
- const view = new ButtonView(locale);
32
- view.set({
33
- label: t('Subscript'),
34
- icon: subscriptIcon,
35
- tooltip: true,
36
- isToggleable: true
37
- });
38
- view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
39
- // Execute command.
40
- this.listenTo(view, 'execute', () => {
41
- editor.execute(SUBSCRIPT);
42
- editor.editing.view.focus();
43
- });
44
- return view;
45
- });
46
- }
47
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript/subscriptui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import subscriptIcon from '../../theme/icons/subscript.svg';
11
+ const SUBSCRIPT = 'subscript';
12
+ /**
13
+ * The subscript UI feature. It introduces the Subscript button.
14
+ */
15
+ export default class SubscriptUI extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName() {
20
+ return 'SubscriptUI';
21
+ }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init() {
26
+ const editor = this.editor;
27
+ const t = editor.t;
28
+ // Add subscript button to feature components.
29
+ editor.ui.componentFactory.add(SUBSCRIPT, locale => {
30
+ const command = editor.commands.get(SUBSCRIPT);
31
+ const view = new ButtonView(locale);
32
+ view.set({
33
+ label: t('Subscript'),
34
+ icon: subscriptIcon,
35
+ tooltip: true,
36
+ isToggleable: true
37
+ });
38
+ view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
39
+ // Execute command.
40
+ this.listenTo(view, 'execute', () => {
41
+ editor.execute(SUBSCRIPT);
42
+ editor.editing.view.focus();
43
+ });
44
+ return view;
45
+ });
46
+ }
47
+ }
@@ -1,26 +1,26 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import SubscriptEditing from './subscript/subscriptediting';
10
- import SubscriptUI from './subscript/subscriptui';
11
- /**
12
- * The subscript feature.
13
- *
14
- * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
15
- * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
16
- */
17
- export default class Subscript extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof SubscriptEditing, typeof SubscriptUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "Subscript";
26
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import SubscriptEditing from './subscript/subscriptediting';
10
+ import SubscriptUI from './subscript/subscriptui';
11
+ /**
12
+ * The subscript feature.
13
+ *
14
+ * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
15
+ * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
16
+ */
17
+ export default class Subscript extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof SubscriptEditing, typeof SubscriptUI];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "Subscript";
26
+ }
package/src/subscript.js CHANGED
@@ -1,30 +1,30 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module basic-styles/subscript
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import SubscriptEditing from './subscript/subscriptediting';
10
- import SubscriptUI from './subscript/subscriptui';
11
- /**
12
- * The subscript feature.
13
- *
14
- * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
15
- * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
16
- */
17
- export default class Subscript extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires() {
22
- return [SubscriptEditing, SubscriptUI];
23
- }
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName() {
28
- return 'Subscript';
29
- }
30
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module basic-styles/subscript
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import SubscriptEditing from './subscript/subscriptediting';
10
+ import SubscriptUI from './subscript/subscriptui';
11
+ /**
12
+ * The subscript feature.
13
+ *
14
+ * It loads the {@link module:basic-styles/subscript/subscriptediting~SubscriptEditing} and
15
+ * {@link module:basic-styles/subscript/subscriptui~SubscriptUI} plugins.
16
+ */
17
+ export default class Subscript extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires() {
22
+ return [SubscriptEditing, SubscriptUI];
23
+ }
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName() {
28
+ return 'Subscript';
29
+ }
30
+ }