@ckeditor/ckeditor5-basic-styles 39.0.1 → 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 (124) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -1
  3. package/README.md +3 -3
  4. package/build/basic-styles.js.map +1 -0
  5. package/build/translations/hy.js +1 -0
  6. package/lang/translations/af.po +1 -0
  7. package/lang/translations/ar.po +1 -0
  8. package/lang/translations/ast.po +1 -0
  9. package/lang/translations/az.po +1 -0
  10. package/lang/translations/bg.po +1 -0
  11. package/lang/translations/bn.po +1 -0
  12. package/lang/translations/bs.po +1 -0
  13. package/lang/translations/ca.po +1 -0
  14. package/lang/translations/cs.po +1 -0
  15. package/lang/translations/da.po +1 -0
  16. package/lang/translations/de-ch.po +1 -0
  17. package/lang/translations/de.po +1 -0
  18. package/lang/translations/el.po +1 -0
  19. package/lang/translations/en-au.po +1 -0
  20. package/lang/translations/en-gb.po +1 -0
  21. package/lang/translations/en.po +1 -0
  22. package/lang/translations/eo.po +1 -0
  23. package/lang/translations/es-co.po +1 -0
  24. package/lang/translations/es.po +1 -0
  25. package/lang/translations/et.po +1 -0
  26. package/lang/translations/eu.po +1 -0
  27. package/lang/translations/fa.po +1 -0
  28. package/lang/translations/fi.po +1 -0
  29. package/lang/translations/fr.po +1 -0
  30. package/lang/translations/gl.po +1 -0
  31. package/lang/translations/gu.po +1 -0
  32. package/lang/translations/he.po +1 -0
  33. package/lang/translations/hi.po +1 -0
  34. package/lang/translations/hr.po +1 -0
  35. package/lang/translations/hu.po +1 -0
  36. package/lang/translations/hy.po +46 -0
  37. package/lang/translations/id.po +1 -0
  38. package/lang/translations/it.po +1 -0
  39. package/lang/translations/ja.po +1 -0
  40. package/lang/translations/jv.po +1 -0
  41. package/lang/translations/km.po +1 -0
  42. package/lang/translations/kn.po +1 -0
  43. package/lang/translations/ko.po +1 -0
  44. package/lang/translations/ku.po +1 -0
  45. package/lang/translations/lt.po +1 -0
  46. package/lang/translations/lv.po +1 -0
  47. package/lang/translations/ms.po +1 -0
  48. package/lang/translations/nb.po +1 -0
  49. package/lang/translations/ne.po +1 -0
  50. package/lang/translations/nl.po +1 -0
  51. package/lang/translations/no.po +1 -0
  52. package/lang/translations/oc.po +1 -0
  53. package/lang/translations/pl.po +1 -0
  54. package/lang/translations/pt-br.po +1 -0
  55. package/lang/translations/pt.po +1 -0
  56. package/lang/translations/ro.po +1 -0
  57. package/lang/translations/ru.po +1 -0
  58. package/lang/translations/si.po +1 -0
  59. package/lang/translations/sk.po +1 -0
  60. package/lang/translations/sl.po +1 -0
  61. package/lang/translations/sq.po +1 -0
  62. package/lang/translations/sr-latn.po +1 -0
  63. package/lang/translations/sr.po +1 -0
  64. package/lang/translations/sv.po +1 -0
  65. package/lang/translations/th.po +1 -0
  66. package/lang/translations/tk.po +1 -0
  67. package/lang/translations/tr.po +1 -0
  68. package/lang/translations/tt.po +1 -0
  69. package/lang/translations/ug.po +1 -0
  70. package/lang/translations/uk.po +1 -0
  71. package/lang/translations/ur.po +1 -0
  72. package/lang/translations/uz.po +1 -0
  73. package/lang/translations/vi.po +1 -0
  74. package/lang/translations/zh-cn.po +1 -0
  75. package/lang/translations/zh.po +1 -0
  76. package/package.json +2 -6
  77. package/src/attributecommand.d.ts +74 -74
  78. package/src/attributecommand.js +105 -105
  79. package/src/augmentation.d.ts +40 -40
  80. package/src/augmentation.js +5 -5
  81. package/src/bold/boldediting.d.ts +24 -24
  82. package/src/bold/boldediting.js +62 -62
  83. package/src/bold/boldui.d.ts +21 -21
  84. package/src/bold/boldui.js +47 -47
  85. package/src/bold.d.ts +29 -29
  86. package/src/bold.js +33 -33
  87. package/src/code/codeediting.d.ts +29 -29
  88. package/src/code/codeediting.js +59 -59
  89. package/src/code/codeui.d.ts +22 -22
  90. package/src/code/codeui.js +48 -48
  91. package/src/code.d.ts +30 -30
  92. package/src/code.js +34 -34
  93. package/src/index.d.ts +30 -30
  94. package/src/index.js +29 -29
  95. package/src/italic/italicediting.d.ts +24 -24
  96. package/src/italic/italicediting.js +52 -52
  97. package/src/italic/italicui.d.ts +21 -21
  98. package/src/italic/italicui.js +48 -48
  99. package/src/italic.d.ts +29 -29
  100. package/src/italic.js +33 -33
  101. package/src/strikethrough/strikethroughediting.d.ts +25 -25
  102. package/src/strikethrough/strikethroughediting.js +54 -54
  103. package/src/strikethrough/strikethroughui.d.ts +21 -21
  104. package/src/strikethrough/strikethroughui.js +48 -48
  105. package/src/strikethrough.d.ts +29 -29
  106. package/src/strikethrough.js +33 -33
  107. package/src/subscript/subscriptediting.d.ts +24 -24
  108. package/src/subscript/subscriptediting.js +50 -50
  109. package/src/subscript/subscriptui.d.ts +21 -21
  110. package/src/subscript/subscriptui.js +47 -47
  111. package/src/subscript.d.ts +26 -26
  112. package/src/subscript.js +30 -30
  113. package/src/superscript/superscriptediting.d.ts +24 -24
  114. package/src/superscript/superscriptediting.js +50 -50
  115. package/src/superscript/superscriptui.d.ts +21 -21
  116. package/src/superscript/superscriptui.js +47 -47
  117. package/src/superscript.d.ts +26 -26
  118. package/src/superscript.js +30 -30
  119. package/src/underline/underlineediting.d.ts +24 -24
  120. package/src/underline/underlineediting.js +49 -49
  121. package/src/underline/underlineui.d.ts +21 -21
  122. package/src/underline/underlineui.js +48 -48
  123. package/src/underline.d.ts +29 -29
  124. package/src/underline.js +33 -33
package/src/bold.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/bold
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import BoldEditing from './bold/boldediting';
10
- import BoldUI from './bold/boldui';
11
- /**
12
- * The bold 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/bold/boldediting~BoldEditing bold editing feature}
18
- * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
- */
20
- export default class Bold extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof BoldEditing, typeof BoldUI];
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "Bold";
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/bold
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import BoldEditing from './bold/boldediting';
10
+ import BoldUI from './bold/boldui';
11
+ /**
12
+ * The bold 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/bold/boldediting~BoldEditing bold editing feature}
18
+ * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
+ */
20
+ export default class Bold extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof BoldEditing, typeof BoldUI];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName(): "Bold";
29
+ }
package/src/bold.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/bold
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import BoldEditing from './bold/boldediting';
10
- import BoldUI from './bold/boldui';
11
- /**
12
- * The bold 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/bold/boldediting~BoldEditing bold editing feature}
18
- * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
- */
20
- export default class Bold extends Plugin {
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires() {
25
- return [BoldEditing, BoldUI];
26
- }
27
- /**
28
- * @inheritDoc
29
- */
30
- static get pluginName() {
31
- return 'Bold';
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/bold
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import BoldEditing from './bold/boldediting';
10
+ import BoldUI from './bold/boldui';
11
+ /**
12
+ * The bold 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/bold/boldediting~BoldEditing bold editing feature}
18
+ * and {@link module:basic-styles/bold/boldui~BoldUI bold UI feature}.
19
+ */
20
+ export default class Bold extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires() {
25
+ return [BoldEditing, BoldUI];
26
+ }
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'Bold';
32
+ }
33
+ }
@@ -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/code/codeediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { TwoStepCaretMovement } from 'ckeditor5/src/typing';
10
- /**
11
- * The code editing feature.
12
- *
13
- * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
14
- * as a `<code>` element.
15
- */
16
- export default class CodeEditing extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "CodeEditing";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof TwoStepCaretMovement];
25
- /**
26
- * @inheritDoc
27
- */
28
- init(): void;
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/code/codeediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { TwoStepCaretMovement } from 'ckeditor5/src/typing';
10
+ /**
11
+ * The code editing feature.
12
+ *
13
+ * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
14
+ * as a `<code>` element.
15
+ */
16
+ export default class CodeEditing extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "CodeEditing";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof TwoStepCaretMovement];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ init(): void;
29
+ }
@@ -1,59 +1,59 @@
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/codeediting
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { TwoStepCaretMovement, inlineHighlight } from 'ckeditor5/src/typing';
10
- import AttributeCommand from '../attributecommand';
11
- const CODE = 'code';
12
- const HIGHLIGHT_CLASS = 'ck-code_selected';
13
- /**
14
- * The code editing feature.
15
- *
16
- * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
17
- * as a `<code>` element.
18
- */
19
- export default class CodeEditing extends Plugin {
20
- /**
21
- * @inheritDoc
22
- */
23
- static get pluginName() {
24
- return 'CodeEditing';
25
- }
26
- /**
27
- * @inheritDoc
28
- */
29
- static get requires() {
30
- return [TwoStepCaretMovement];
31
- }
32
- /**
33
- * @inheritDoc
34
- */
35
- init() {
36
- const editor = this.editor;
37
- // Allow code attribute on text nodes.
38
- editor.model.schema.extend('$text', { allowAttributes: CODE });
39
- editor.model.schema.setAttributeProperties(CODE, {
40
- isFormatting: true,
41
- copyOnEnter: false
42
- });
43
- editor.conversion.attributeToElement({
44
- model: CODE,
45
- view: 'code',
46
- upcastAlso: {
47
- styles: {
48
- 'word-wrap': 'break-word'
49
- }
50
- }
51
- });
52
- // Create code command.
53
- editor.commands.add(CODE, new AttributeCommand(editor, CODE));
54
- // Enable two-step caret movement for `code` attribute.
55
- editor.plugins.get(TwoStepCaretMovement).registerAttribute(CODE);
56
- // Setup highlight over selected element.
57
- inlineHighlight(editor, CODE, 'code', HIGHLIGHT_CLASS);
58
- }
59
- }
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/codeediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { TwoStepCaretMovement, inlineHighlight } from 'ckeditor5/src/typing';
10
+ import AttributeCommand from '../attributecommand';
11
+ const CODE = 'code';
12
+ const HIGHLIGHT_CLASS = 'ck-code_selected';
13
+ /**
14
+ * The code editing feature.
15
+ *
16
+ * It registers the `'code'` command and introduces the `code` attribute in the model which renders to the view
17
+ * as a `<code>` element.
18
+ */
19
+ export default class CodeEditing extends Plugin {
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get pluginName() {
24
+ return 'CodeEditing';
25
+ }
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get requires() {
30
+ return [TwoStepCaretMovement];
31
+ }
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ init() {
36
+ const editor = this.editor;
37
+ // Allow code attribute on text nodes.
38
+ editor.model.schema.extend('$text', { allowAttributes: CODE });
39
+ editor.model.schema.setAttributeProperties(CODE, {
40
+ isFormatting: true,
41
+ copyOnEnter: false
42
+ });
43
+ editor.conversion.attributeToElement({
44
+ model: CODE,
45
+ view: 'code',
46
+ upcastAlso: {
47
+ styles: {
48
+ 'word-wrap': 'break-word'
49
+ }
50
+ }
51
+ });
52
+ // Create code command.
53
+ editor.commands.add(CODE, new AttributeCommand(editor, CODE));
54
+ // Enable two-step caret movement for `code` attribute.
55
+ editor.plugins.get(TwoStepCaretMovement).registerAttribute(CODE);
56
+ // Setup highlight over selected element.
57
+ inlineHighlight(editor, CODE, 'code', HIGHLIGHT_CLASS);
58
+ }
59
+ }
@@ -1,22 +1,22 @@
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/codeui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import '../../theme/code.css';
10
- /**
11
- * The code UI feature. It introduces the Code button.
12
- */
13
- export default class CodeUI extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "CodeUI";
18
- /**
19
- * @inheritDoc
20
- */
21
- init(): void;
22
- }
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/codeui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../../theme/code.css';
10
+ /**
11
+ * The code UI feature. It introduces the Code button.
12
+ */
13
+ export default class CodeUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "CodeUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ init(): void;
22
+ }
@@ -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/code/codeui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ButtonView } from 'ckeditor5/src/ui';
10
- import codeIcon from '../../theme/icons/code.svg';
11
- import '../../theme/code.css';
12
- const CODE = 'code';
13
- /**
14
- * The code UI feature. It introduces the Code button.
15
- */
16
- export default class CodeUI extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName() {
21
- return 'CodeUI';
22
- }
23
- /**
24
- * @inheritDoc
25
- */
26
- init() {
27
- const editor = this.editor;
28
- const t = editor.t;
29
- // Add code button to feature components.
30
- editor.ui.componentFactory.add(CODE, locale => {
31
- const command = editor.commands.get(CODE);
32
- const view = new ButtonView(locale);
33
- view.set({
34
- label: t('Code'),
35
- icon: codeIcon,
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(CODE);
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/code/codeui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import codeIcon from '../../theme/icons/code.svg';
11
+ import '../../theme/code.css';
12
+ const CODE = 'code';
13
+ /**
14
+ * The code UI feature. It introduces the Code button.
15
+ */
16
+ export default class CodeUI extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName() {
21
+ return 'CodeUI';
22
+ }
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init() {
27
+ const editor = this.editor;
28
+ const t = editor.t;
29
+ // Add code button to feature components.
30
+ editor.ui.componentFactory.add(CODE, locale => {
31
+ const command = editor.commands.get(CODE);
32
+ const view = new ButtonView(locale);
33
+ view.set({
34
+ label: t('Code'),
35
+ icon: codeIcon,
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(CODE);
43
+ editor.editing.view.focus();
44
+ });
45
+ return view;
46
+ });
47
+ }
48
+ }
package/src/code.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/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(): readonly [typeof CodeEditing, typeof CodeUI];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "Code";
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/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(): readonly [typeof CodeEditing, typeof CodeUI];
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "Code";
30
+ }
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';
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
+ }
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';
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';