@ckeditor/ckeditor5-basic-styles 38.1.1 → 38.2.0-alpha.1

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 (50) hide show
  1. package/package.json +3 -2
  2. package/src/attributecommand.d.ts +74 -74
  3. package/src/attributecommand.js +105 -105
  4. package/src/augmentation.d.ts +40 -40
  5. package/src/augmentation.js +5 -5
  6. package/src/bold/boldediting.d.ts +24 -24
  7. package/src/bold/boldediting.js +62 -62
  8. package/src/bold/boldui.d.ts +21 -21
  9. package/src/bold/boldui.js +47 -47
  10. package/src/bold.d.ts +29 -29
  11. package/src/bold.js +33 -33
  12. package/src/code/codeediting.d.ts +29 -29
  13. package/src/code/codeediting.js +59 -59
  14. package/src/code/codeui.d.ts +22 -22
  15. package/src/code/codeui.js +48 -48
  16. package/src/code.d.ts +30 -30
  17. package/src/code.js +34 -34
  18. package/src/index.d.ts +30 -30
  19. package/src/index.js +29 -29
  20. package/src/italic/italicediting.d.ts +24 -24
  21. package/src/italic/italicediting.js +52 -52
  22. package/src/italic/italicui.d.ts +21 -21
  23. package/src/italic/italicui.js +48 -48
  24. package/src/italic.d.ts +29 -29
  25. package/src/italic.js +33 -33
  26. package/src/strikethrough/strikethroughediting.d.ts +25 -25
  27. package/src/strikethrough/strikethroughediting.js +54 -54
  28. package/src/strikethrough/strikethroughui.d.ts +21 -21
  29. package/src/strikethrough/strikethroughui.js +48 -48
  30. package/src/strikethrough.d.ts +29 -29
  31. package/src/strikethrough.js +33 -33
  32. package/src/subscript/subscriptediting.d.ts +24 -24
  33. package/src/subscript/subscriptediting.js +50 -50
  34. package/src/subscript/subscriptui.d.ts +21 -21
  35. package/src/subscript/subscriptui.js +47 -47
  36. package/src/subscript.d.ts +26 -26
  37. package/src/subscript.js +30 -30
  38. package/src/superscript/superscriptediting.d.ts +24 -24
  39. package/src/superscript/superscriptediting.js +50 -50
  40. package/src/superscript/superscriptui.d.ts +21 -21
  41. package/src/superscript/superscriptui.js +47 -47
  42. package/src/superscript.d.ts +26 -26
  43. package/src/superscript.js +30 -30
  44. package/src/underline/underlineediting.d.ts +24 -24
  45. package/src/underline/underlineediting.js +49 -49
  46. package/src/underline/underlineui.d.ts +21 -21
  47. package/src/underline/underlineui.js +48 -48
  48. package/src/underline.d.ts +29 -29
  49. package/src/underline.js +33 -33
  50. package/build/basic-styles.js.map +0 -1
package/src/code.js CHANGED
@@ -1,34 +1,34 @@
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/code
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import CodeEditing from './code/codeediting';
10
- import CodeUI from './code/codeui';
11
- import '../theme/code.css';
12
- /**
13
- * The code feature.
14
- *
15
- * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
16
- * and the {@glink api/basic-styles package page}.
17
- *
18
- * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
19
- * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
20
- */
21
- export default class Code extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires() {
26
- return [CodeEditing, CodeUI];
27
- }
28
- /**
29
- * @inheritDoc
30
- */
31
- static get pluginName() {
32
- return 'Code';
33
- }
34
- }
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/code
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import CodeEditing from './code/codeediting.js';
10
+ import CodeUI from './code/codeui.js';
11
+ import '../theme/code.css';
12
+ /**
13
+ * The code feature.
14
+ *
15
+ * For a detailed overview check the {@glink features/basic-styles Basic styles feature} guide
16
+ * and the {@glink api/basic-styles package page}.
17
+ *
18
+ * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
19
+ * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
20
+ */
21
+ export default class Code extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires() {
26
+ return [CodeEditing, CodeUI];
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get pluginName() {
32
+ return 'Code';
33
+ }
34
+ }
package/src/index.d.ts 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
7
- */
8
- export { default as Bold } from './bold';
9
- export { default as BoldEditing } from './bold/boldediting';
10
- export { default as BoldUI } from './bold/boldui';
11
- export { default as Code } from './code';
12
- export { default as CodeEditing } from './code/codeediting';
13
- export { default as CodeUI } from './code/codeui';
14
- export { default as Italic } from './italic';
15
- export { default as ItalicEditing } from './italic/italicediting';
16
- export { default as ItalicUI } from './italic/italicui';
17
- export { default as Strikethrough } from './strikethrough';
18
- export { default as StrikethroughEditing } from './strikethrough/strikethroughediting';
19
- export { default as StrikethroughUI } from './strikethrough/strikethroughui';
20
- export { default as Subscript } from './subscript';
21
- export { default as SubscriptEditing } from './subscript/subscriptediting';
22
- export { default as SubscriptUI } from './subscript/subscriptui';
23
- export { default as Superscript } from './superscript';
24
- export { default as SuperscriptEditing } from './superscript/superscriptediting';
25
- export { default as SuperscriptUI } from './superscript/superscriptui';
26
- export { default as Underline } from './underline';
27
- export { default as UnderlineEditing } from './underline/underlineediting';
28
- export { default as UnderlineUI } from './underline/underlineui';
29
- export type { default as AttributeCommand } from './attributecommand';
30
- import './augmentation';
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
7
+ */
8
+ export { default as Bold } from './bold.js';
9
+ export { default as BoldEditing } from './bold/boldediting.js';
10
+ export { default as BoldUI } from './bold/boldui.js';
11
+ export { default as Code } from './code.js';
12
+ export { default as CodeEditing } from './code/codeediting.js';
13
+ export { default as CodeUI } from './code/codeui.js';
14
+ export { default as Italic } from './italic.js';
15
+ export { default as ItalicEditing } from './italic/italicediting.js';
16
+ export { default as ItalicUI } from './italic/italicui.js';
17
+ export { default as Strikethrough } from './strikethrough.js';
18
+ export { default as StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
+ export { default as StrikethroughUI } from './strikethrough/strikethroughui.js';
20
+ export { default as Subscript } from './subscript.js';
21
+ export { default as SubscriptEditing } from './subscript/subscriptediting.js';
22
+ export { default as SubscriptUI } from './subscript/subscriptui.js';
23
+ export { default as Superscript } from './superscript.js';
24
+ export { default as SuperscriptEditing } from './superscript/superscriptediting.js';
25
+ export { default as SuperscriptUI } from './superscript/superscriptui.js';
26
+ export { default as Underline } from './underline.js';
27
+ export { default as UnderlineEditing } from './underline/underlineediting.js';
28
+ export { default as UnderlineUI } from './underline/underlineui.js';
29
+ export type { default as AttributeCommand } from './attributecommand.js';
30
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -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
7
- */
8
- export { default as Bold } from './bold';
9
- export { default as BoldEditing } from './bold/boldediting';
10
- export { default as BoldUI } from './bold/boldui';
11
- export { default as Code } from './code';
12
- export { default as CodeEditing } from './code/codeediting';
13
- export { default as CodeUI } from './code/codeui';
14
- export { default as Italic } from './italic';
15
- export { default as ItalicEditing } from './italic/italicediting';
16
- export { default as ItalicUI } from './italic/italicui';
17
- export { default as Strikethrough } from './strikethrough';
18
- export { default as StrikethroughEditing } from './strikethrough/strikethroughediting';
19
- export { default as StrikethroughUI } from './strikethrough/strikethroughui';
20
- export { default as Subscript } from './subscript';
21
- export { default as SubscriptEditing } from './subscript/subscriptediting';
22
- export { default as SubscriptUI } from './subscript/subscriptui';
23
- export { default as Superscript } from './superscript';
24
- export { default as SuperscriptEditing } from './superscript/superscriptediting';
25
- export { default as SuperscriptUI } from './superscript/superscriptui';
26
- export { default as Underline } from './underline';
27
- export { default as UnderlineEditing } from './underline/underlineediting';
28
- export { default as UnderlineUI } from './underline/underlineui';
29
- import './augmentation';
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
7
+ */
8
+ export { default as Bold } from './bold.js';
9
+ export { default as BoldEditing } from './bold/boldediting.js';
10
+ export { default as BoldUI } from './bold/boldui.js';
11
+ export { default as Code } from './code.js';
12
+ export { default as CodeEditing } from './code/codeediting.js';
13
+ export { default as CodeUI } from './code/codeui.js';
14
+ export { default as Italic } from './italic.js';
15
+ export { default as ItalicEditing } from './italic/italicediting.js';
16
+ export { default as ItalicUI } from './italic/italicui.js';
17
+ export { default as Strikethrough } from './strikethrough.js';
18
+ export { default as StrikethroughEditing } from './strikethrough/strikethroughediting.js';
19
+ export { default as StrikethroughUI } from './strikethrough/strikethroughui.js';
20
+ export { default as Subscript } from './subscript.js';
21
+ export { default as SubscriptEditing } from './subscript/subscriptediting.js';
22
+ export { default as SubscriptUI } from './subscript/subscriptui.js';
23
+ export { default as Superscript } from './superscript.js';
24
+ export { default as SuperscriptEditing } from './superscript/superscriptediting.js';
25
+ export { default as SuperscriptUI } from './superscript/superscriptui.js';
26
+ export { default as Underline } from './underline.js';
27
+ export { default as UnderlineEditing } from './underline/underlineediting.js';
28
+ export { default as UnderlineUI } from './underline/underlineui.js';
29
+ import './augmentation.js';
@@ -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/italic/italicediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The italic editing feature.
11
- *
12
- * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
13
- * which renders to the view as an `<i>` element.
14
- */
15
- export default class ItalicEditing extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): "ItalicEditing";
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/italic/italicediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The italic editing feature.
11
+ *
12
+ * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
13
+ * which renders to the view as an `<i>` element.
14
+ */
15
+ export default class ItalicEditing extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "ItalicEditing";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ init(): void;
24
+ }
@@ -1,52 +1,52 @@
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/italic/italicediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import AttributeCommand from '../attributecommand';
10
- const ITALIC = 'italic';
11
- /**
12
- * The italic editing feature.
13
- *
14
- * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
15
- * which renders to the view as an `<i>` element.
16
- */
17
- export default class ItalicEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName() {
22
- return 'ItalicEditing';
23
- }
24
- /**
25
- * @inheritDoc
26
- */
27
- init() {
28
- const editor = this.editor;
29
- // Allow italic attribute on text nodes.
30
- editor.model.schema.extend('$text', { allowAttributes: ITALIC });
31
- editor.model.schema.setAttributeProperties(ITALIC, {
32
- isFormatting: true,
33
- copyOnEnter: true
34
- });
35
- editor.conversion.attributeToElement({
36
- model: ITALIC,
37
- view: 'i',
38
- upcastAlso: [
39
- 'em',
40
- {
41
- styles: {
42
- 'font-style': 'italic'
43
- }
44
- }
45
- ]
46
- });
47
- // Create italic command.
48
- editor.commands.add(ITALIC, new AttributeCommand(editor, ITALIC));
49
- // Set the Ctrl+I keystroke.
50
- editor.keystrokes.set('CTRL+I', ITALIC);
51
- }
52
- }
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/italic/italicediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import AttributeCommand from '../attributecommand.js';
10
+ const ITALIC = 'italic';
11
+ /**
12
+ * The italic editing feature.
13
+ *
14
+ * It registers the `'italic'` command, the <kbd>Ctrl+I</kbd> keystroke and introduces the `italic` attribute in the model
15
+ * which renders to the view as an `<i>` element.
16
+ */
17
+ export default class ItalicEditing extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName() {
22
+ return 'ItalicEditing';
23
+ }
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init() {
28
+ const editor = this.editor;
29
+ // Allow italic attribute on text nodes.
30
+ editor.model.schema.extend('$text', { allowAttributes: ITALIC });
31
+ editor.model.schema.setAttributeProperties(ITALIC, {
32
+ isFormatting: true,
33
+ copyOnEnter: true
34
+ });
35
+ editor.conversion.attributeToElement({
36
+ model: ITALIC,
37
+ view: 'i',
38
+ upcastAlso: [
39
+ 'em',
40
+ {
41
+ styles: {
42
+ 'font-style': 'italic'
43
+ }
44
+ }
45
+ ]
46
+ });
47
+ // Create italic command.
48
+ editor.commands.add(ITALIC, new AttributeCommand(editor, ITALIC));
49
+ // Set the Ctrl+I keystroke.
50
+ editor.keystrokes.set('CTRL+I', ITALIC);
51
+ }
52
+ }
@@ -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/italic/italicui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * The italic UI feature. It introduces the Italic button.
11
- */
12
- export default class ItalicUI extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- static get pluginName(): "ItalicUI";
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/italic/italicui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The italic UI feature. It introduces the Italic button.
11
+ */
12
+ export default class ItalicUI extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "ItalicUI";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ init(): void;
21
+ }
@@ -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/italic/italicui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import italicIcon from '../../theme/icons/italic.svg';
11
- const ITALIC = 'italic';
12
- /**
13
- * The italic UI feature. It introduces the Italic button.
14
- */
15
- export default class ItalicUI extends Plugin {
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName() {
20
- return 'ItalicUI';
21
- }
22
- /**
23
- * @inheritDoc
24
- */
25
- init() {
26
- const editor = this.editor;
27
- const t = editor.t;
28
- // Add bold button to feature components.
29
- editor.ui.componentFactory.add(ITALIC, locale => {
30
- const command = editor.commands.get(ITALIC);
31
- const view = new ButtonView(locale);
32
- view.set({
33
- label: t('Italic'),
34
- icon: italicIcon,
35
- keystroke: 'CTRL+I',
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(ITALIC);
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/italic/italicui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { ButtonView } from 'ckeditor5/src/ui.js';
10
+ import italicIcon from '../../theme/icons/italic.svg';
11
+ const ITALIC = 'italic';
12
+ /**
13
+ * The italic UI feature. It introduces the Italic button.
14
+ */
15
+ export default class ItalicUI extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName() {
20
+ return 'ItalicUI';
21
+ }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init() {
26
+ const editor = this.editor;
27
+ const t = editor.t;
28
+ // Add bold button to feature components.
29
+ editor.ui.componentFactory.add(ITALIC, locale => {
30
+ const command = editor.commands.get(ITALIC);
31
+ const view = new ButtonView(locale);
32
+ view.set({
33
+ label: t('Italic'),
34
+ icon: italicIcon,
35
+ keystroke: 'CTRL+I',
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(ITALIC);
43
+ editor.editing.view.focus();
44
+ });
45
+ return view;
46
+ });
47
+ }
48
+ }
package/src/italic.d.ts CHANGED
@@ -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/italic
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ItalicEditing from './italic/italicediting';
10
- import ItalicUI from './italic/italicui';
11
- /**
12
- * The italic 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/italic/italicediting~ItalicEditing} and
18
- * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
- */
20
- export default class Italic extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof ItalicEditing, typeof ItalicUI];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "Italic";
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/italic
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ItalicEditing from './italic/italicediting.js';
10
+ import ItalicUI from './italic/italicui.js';
11
+ /**
12
+ * The italic 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/italic/italicediting~ItalicEditing} and
18
+ * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
+ */
20
+ export default class Italic extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof ItalicEditing, typeof ItalicUI];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "Italic";
29
+ }
package/src/italic.js CHANGED
@@ -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/italic
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import ItalicEditing from './italic/italicediting';
10
- import ItalicUI from './italic/italicui';
11
- /**
12
- * The italic 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/italic/italicediting~ItalicEditing} and
18
- * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
- */
20
- export default class Italic extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires() {
25
- return [ItalicEditing, ItalicUI];
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- static get pluginName() {
31
- return 'Italic';
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/italic
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import ItalicEditing from './italic/italicediting.js';
10
+ import ItalicUI from './italic/italicui.js';
11
+ /**
12
+ * The italic 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/italic/italicediting~ItalicEditing} and
18
+ * {@link module:basic-styles/italic/italicui~ItalicUI} plugins.
19
+ */
20
+ export default class Italic extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires() {
25
+ return [ItalicEditing, ItalicUI];
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'Italic';
32
+ }
33
+ }