@ckeditor/ckeditor5-font 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 (116) hide show
  1. package/build/font.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/en-gb.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/ku.js +1 -1
  31. package/build/translations/lt.js +1 -1
  32. package/build/translations/lv.js +1 -1
  33. package/build/translations/ms.js +1 -1
  34. package/build/translations/nb.js +1 -1
  35. package/build/translations/ne.js +1 -1
  36. package/build/translations/nl.js +1 -1
  37. package/build/translations/no.js +1 -1
  38. package/build/translations/pl.js +1 -1
  39. package/build/translations/pt-br.js +1 -1
  40. package/build/translations/pt.js +1 -1
  41. package/build/translations/ro.js +1 -1
  42. package/build/translations/ru.js +1 -1
  43. package/build/translations/sk.js +1 -1
  44. package/build/translations/sl.js +1 -1
  45. package/build/translations/sq.js +1 -1
  46. package/build/translations/sr-latn.js +1 -1
  47. package/build/translations/sr.js +1 -1
  48. package/build/translations/sv.js +1 -1
  49. package/build/translations/th.js +1 -1
  50. package/build/translations/tk.js +1 -1
  51. package/build/translations/tr.js +1 -1
  52. package/build/translations/ug.js +1 -1
  53. package/build/translations/uk.js +1 -1
  54. package/build/translations/ur.js +1 -1
  55. package/build/translations/uz.js +1 -1
  56. package/build/translations/vi.js +1 -1
  57. package/build/translations/zh-cn.js +1 -1
  58. package/build/translations/zh.js +1 -1
  59. package/lang/contexts.json +1 -2
  60. package/package.json +3 -3
  61. package/src/augmentation.d.ts +58 -58
  62. package/src/augmentation.js +5 -5
  63. package/src/font.d.ts +33 -33
  64. package/src/font.js +37 -37
  65. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.d.ts +26 -26
  66. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.js +25 -25
  67. package/src/fontbackgroundcolor/fontbackgroundcolorediting.d.ts +26 -26
  68. package/src/fontbackgroundcolor/fontbackgroundcolorediting.js +123 -123
  69. package/src/fontbackgroundcolor/fontbackgroundcolorui.d.ts +22 -22
  70. package/src/fontbackgroundcolor/fontbackgroundcolorui.js +33 -33
  71. package/src/fontbackgroundcolor.d.ts +30 -30
  72. package/src/fontbackgroundcolor.js +34 -34
  73. package/src/fontcolor/fontcolorcommand.d.ts +25 -25
  74. package/src/fontcolor/fontcolorcommand.js +24 -24
  75. package/src/fontcolor/fontcolorediting.d.ts +26 -26
  76. package/src/fontcolor/fontcolorediting.js +134 -134
  77. package/src/fontcolor/fontcolorui.d.ts +22 -22
  78. package/src/fontcolor/fontcolorui.js +33 -33
  79. package/src/fontcolor.d.ts +29 -29
  80. package/src/fontcolor.js +33 -33
  81. package/src/fontcommand.d.ts +48 -48
  82. package/src/fontcommand.js +79 -79
  83. package/src/fontconfig.d.ts +373 -373
  84. package/src/fontconfig.js +5 -5
  85. package/src/fontfamily/fontfamilycommand.d.ts +25 -25
  86. package/src/fontfamily/fontfamilycommand.js +24 -24
  87. package/src/fontfamily/fontfamilyediting.d.ts +39 -39
  88. package/src/fontfamily/fontfamilyediting.js +115 -115
  89. package/src/fontfamily/fontfamilyui.d.ts +30 -30
  90. package/src/fontfamily/fontfamilyui.js +114 -114
  91. package/src/fontfamily/utils.d.ts +15 -15
  92. package/src/fontfamily/utils.js +80 -80
  93. package/src/fontfamily.d.ts +29 -29
  94. package/src/fontfamily.js +33 -33
  95. package/src/fontsize/fontsizecommand.d.ts +25 -25
  96. package/src/fontsize/fontsizecommand.js +24 -24
  97. package/src/fontsize/fontsizeediting.d.ts +44 -44
  98. package/src/fontsize/fontsizeediting.js +165 -165
  99. package/src/fontsize/fontsizeui.d.ts +31 -31
  100. package/src/fontsize/fontsizeui.js +122 -122
  101. package/src/fontsize/utils.d.ts +12 -12
  102. package/src/fontsize/utils.js +166 -166
  103. package/src/fontsize.d.ts +37 -37
  104. package/src/fontsize.js +43 -43
  105. package/src/index.d.ts +27 -27
  106. package/src/index.js +21 -21
  107. package/src/ui/colorui.d.ts +68 -67
  108. package/src/ui/colorui.js +130 -128
  109. package/src/utils.d.ts +80 -79
  110. package/src/utils.js +97 -98
  111. package/build/font.js.map +0 -1
  112. package/src/documentcolorcollection.d.ts +0 -70
  113. package/src/documentcolorcollection.js +0 -42
  114. package/src/ui/colortableview.d.ts +0 -459
  115. package/src/ui/colortableview.js +0 -645
  116. package/theme/fontcolor.css +0 -75
@@ -1,58 +1,58 @@
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
- import type { Font, FontBackgroundColor, FontBackgroundColorEditing, FontBackgroundColorUI, FontBackgroundColorCommand, FontColor, FontColorEditing, FontColorUI, FontColorCommand, FontColorConfig, FontFamily, FontFamilyEditing, FontFamilyUI, FontFamilyCommand, FontFamilyConfig, FontSize, FontSizeEditing, FontSizeUI, FontSizeCommand, FontSizeConfig, FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE } from './index';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the font background color feature.
10
- * It is introduced by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.
11
- *
12
- * Read more in {@link module:font/fontconfig~FontColorConfig}.
13
- */
14
- fontBackgroundColor?: FontColorConfig;
15
- /**
16
- * The configuration of the font color feature.
17
- * It is introduced by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.
18
- *
19
- * Read more in {@link module:font/fontconfig~FontColorConfig}.
20
- */
21
- fontColor?: FontColorConfig;
22
- /**
23
- * The configuration of the font family feature.
24
- * It is introduced by the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} feature.
25
- *
26
- * Read more in {@link module:font/fontconfig~FontFamilyConfig}.
27
- */
28
- fontFamily?: FontFamilyConfig;
29
- /**
30
- * The configuration of the font size feature.
31
- * It is introduced by the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} feature.
32
- *
33
- * Read more in {@link module:font/fontconfig~FontSizeConfig}.
34
- */
35
- fontSize?: FontSizeConfig;
36
- }
37
- interface PluginsMap {
38
- [Font.pluginName]: Font;
39
- [FontBackgroundColor.pluginName]: FontBackgroundColor;
40
- [FontBackgroundColorEditing.pluginName]: FontBackgroundColorEditing;
41
- [FontBackgroundColorUI.pluginName]: FontBackgroundColorUI;
42
- [FontColor.pluginName]: FontColor;
43
- [FontColorEditing.pluginName]: FontColorEditing;
44
- [FontColorUI.pluginName]: FontColorUI;
45
- [FontFamily.pluginName]: FontFamily;
46
- [FontFamilyEditing.pluginName]: FontFamilyEditing;
47
- [FontFamilyUI.pluginName]: FontFamilyUI;
48
- [FontSize.pluginName]: FontSize;
49
- [FontSizeEditing.pluginName]: FontSizeEditing;
50
- [FontSizeUI.pluginName]: FontSizeUI;
51
- }
52
- interface CommandsMap {
53
- [FONT_SIZE]: FontSizeCommand;
54
- [FONT_FAMILY]: FontFamilyCommand;
55
- [FONT_COLOR]: FontColorCommand;
56
- [FONT_BACKGROUND_COLOR]: FontBackgroundColorCommand;
57
- }
58
- }
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
+ import type { Font, FontBackgroundColor, FontBackgroundColorEditing, FontBackgroundColorUI, FontBackgroundColorCommand, FontColor, FontColorEditing, FontColorUI, FontColorCommand, FontColorConfig, FontFamily, FontFamilyEditing, FontFamilyUI, FontFamilyCommand, FontFamilyConfig, FontSize, FontSizeEditing, FontSizeUI, FontSizeCommand, FontSizeConfig, FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE } from './index.js';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the font background color feature.
10
+ * It is introduced by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.
11
+ *
12
+ * Read more in {@link module:font/fontconfig~FontColorConfig}.
13
+ */
14
+ fontBackgroundColor?: FontColorConfig;
15
+ /**
16
+ * The configuration of the font color feature.
17
+ * It is introduced by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.
18
+ *
19
+ * Read more in {@link module:font/fontconfig~FontColorConfig}.
20
+ */
21
+ fontColor?: FontColorConfig;
22
+ /**
23
+ * The configuration of the font family feature.
24
+ * It is introduced by the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} feature.
25
+ *
26
+ * Read more in {@link module:font/fontconfig~FontFamilyConfig}.
27
+ */
28
+ fontFamily?: FontFamilyConfig;
29
+ /**
30
+ * The configuration of the font size feature.
31
+ * It is introduced by the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} feature.
32
+ *
33
+ * Read more in {@link module:font/fontconfig~FontSizeConfig}.
34
+ */
35
+ fontSize?: FontSizeConfig;
36
+ }
37
+ interface PluginsMap {
38
+ [Font.pluginName]: Font;
39
+ [FontBackgroundColor.pluginName]: FontBackgroundColor;
40
+ [FontBackgroundColorEditing.pluginName]: FontBackgroundColorEditing;
41
+ [FontBackgroundColorUI.pluginName]: FontBackgroundColorUI;
42
+ [FontColor.pluginName]: FontColor;
43
+ [FontColorEditing.pluginName]: FontColorEditing;
44
+ [FontColorUI.pluginName]: FontColorUI;
45
+ [FontFamily.pluginName]: FontFamily;
46
+ [FontFamilyEditing.pluginName]: FontFamilyEditing;
47
+ [FontFamilyUI.pluginName]: FontFamilyUI;
48
+ [FontSize.pluginName]: FontSize;
49
+ [FontSizeEditing.pluginName]: FontSizeEditing;
50
+ [FontSizeUI.pluginName]: FontSizeUI;
51
+ }
52
+ interface CommandsMap {
53
+ [FONT_SIZE]: FontSizeCommand;
54
+ [FONT_FAMILY]: FontFamilyCommand;
55
+ [FONT_COLOR]: FontColorCommand;
56
+ [FONT_BACKGROUND_COLOR]: FontBackgroundColorCommand;
57
+ }
58
+ }
@@ -1,5 +1,5 @@
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
- export {};
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
+ export {};
package/src/font.d.ts 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 font/font
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontFamily from './fontfamily';
10
- import FontSize from './fontsize';
11
- import FontColor from './fontcolor';
12
- import FontBackgroundColor from './fontbackgroundcolor';
13
- /**
14
- * A plugin that enables a set of text styling features:
15
- *
16
- * * {@link module:font/fontsize~FontSize},
17
- * * {@link module:font/fontfamily~FontFamily}.
18
- * * {@link module:font/fontcolor~FontColor},
19
- * * {@link module:font/fontbackgroundcolor~FontBackgroundColor}.
20
- *
21
- * For a detailed overview, check the {@glink features/font Font feature} documentation
22
- * and the {@glink api/font package page}.
23
- */
24
- export default class Font extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get requires(): readonly [typeof FontFamily, typeof FontSize, typeof FontColor, typeof FontBackgroundColor];
29
- /**
30
- * @inheritDoc
31
- */
32
- static get pluginName(): "Font";
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 font/font
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontFamily from './fontfamily.js';
10
+ import FontSize from './fontsize.js';
11
+ import FontColor from './fontcolor.js';
12
+ import FontBackgroundColor from './fontbackgroundcolor.js';
13
+ /**
14
+ * A plugin that enables a set of text styling features:
15
+ *
16
+ * * {@link module:font/fontsize~FontSize},
17
+ * * {@link module:font/fontfamily~FontFamily}.
18
+ * * {@link module:font/fontcolor~FontColor},
19
+ * * {@link module:font/fontbackgroundcolor~FontBackgroundColor}.
20
+ *
21
+ * For a detailed overview, check the {@glink features/font Font feature} documentation
22
+ * and the {@glink api/font package page}.
23
+ */
24
+ export default class Font extends Plugin {
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get requires(): readonly [typeof FontFamily, typeof FontSize, typeof FontColor, typeof FontBackgroundColor];
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static get pluginName(): "Font";
33
+ }
package/src/font.js CHANGED
@@ -1,37 +1,37 @@
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 font/font
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import FontFamily from './fontfamily';
10
- import FontSize from './fontsize';
11
- import FontColor from './fontcolor';
12
- import FontBackgroundColor from './fontbackgroundcolor';
13
- /**
14
- * A plugin that enables a set of text styling features:
15
- *
16
- * * {@link module:font/fontsize~FontSize},
17
- * * {@link module:font/fontfamily~FontFamily}.
18
- * * {@link module:font/fontcolor~FontColor},
19
- * * {@link module:font/fontbackgroundcolor~FontBackgroundColor}.
20
- *
21
- * For a detailed overview, check the {@glink features/font Font feature} documentation
22
- * and the {@glink api/font package page}.
23
- */
24
- export default class Font extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get requires() {
29
- return [FontFamily, FontSize, FontColor, FontBackgroundColor];
30
- }
31
- /**
32
- * @inheritDoc
33
- */
34
- static get pluginName() {
35
- return 'Font';
36
- }
37
- }
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 font/font
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import FontFamily from './fontfamily.js';
10
+ import FontSize from './fontsize.js';
11
+ import FontColor from './fontcolor.js';
12
+ import FontBackgroundColor from './fontbackgroundcolor.js';
13
+ /**
14
+ * A plugin that enables a set of text styling features:
15
+ *
16
+ * * {@link module:font/fontsize~FontSize},
17
+ * * {@link module:font/fontfamily~FontFamily}.
18
+ * * {@link module:font/fontcolor~FontColor},
19
+ * * {@link module:font/fontbackgroundcolor~FontBackgroundColor}.
20
+ *
21
+ * For a detailed overview, check the {@glink features/font Font feature} documentation
22
+ * and the {@glink api/font package page}.
23
+ */
24
+ export default class Font extends Plugin {
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get requires() {
29
+ return [FontFamily, FontSize, FontColor, FontBackgroundColor];
30
+ }
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get pluginName() {
35
+ return 'Font';
36
+ }
37
+ }
@@ -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 font/fontbackgroundcolor/fontbackgroundcolorcommand
7
- */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import FontCommand from '../fontcommand';
10
- /**
11
- * The font background color command. It is used by
12
- * {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}
13
- * to apply the font background color.
14
- *
15
- * ```ts
16
- * editor.execute( 'fontBackgroundColor', { value: 'rgb(250, 20, 20)' } );
17
- * ```
18
- *
19
- * **Note**: Executing the command with the `null` value removes the attribute from the model.
20
- */
21
- export default class FontBackgroundColorCommand extends FontCommand {
22
- /**
23
- * @inheritDoc
24
- */
25
- constructor(editor: Editor);
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 font/fontbackgroundcolor/fontbackgroundcolorcommand
7
+ */
8
+ import type { Editor } from 'ckeditor5/src/core.js';
9
+ import FontCommand from '../fontcommand.js';
10
+ /**
11
+ * The font background color command. It is used by
12
+ * {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}
13
+ * to apply the font background color.
14
+ *
15
+ * ```ts
16
+ * editor.execute( 'fontBackgroundColor', { value: 'rgb(250, 20, 20)' } );
17
+ * ```
18
+ *
19
+ * **Note**: Executing the command with the `null` value removes the attribute from the model.
20
+ */
21
+ export default class FontBackgroundColorCommand extends FontCommand {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(editor: Editor);
26
+ }
@@ -1,25 +1,25 @@
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
- import FontCommand from '../fontcommand';
6
- import { FONT_BACKGROUND_COLOR } from '../utils';
7
- /**
8
- * The font background color command. It is used by
9
- * {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}
10
- * to apply the font background color.
11
- *
12
- * ```ts
13
- * editor.execute( 'fontBackgroundColor', { value: 'rgb(250, 20, 20)' } );
14
- * ```
15
- *
16
- * **Note**: Executing the command with the `null` value removes the attribute from the model.
17
- */
18
- export default class FontBackgroundColorCommand extends FontCommand {
19
- /**
20
- * @inheritDoc
21
- */
22
- constructor(editor) {
23
- super(editor, FONT_BACKGROUND_COLOR);
24
- }
25
- }
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
+ import FontCommand from '../fontcommand.js';
6
+ import { FONT_BACKGROUND_COLOR } from '../utils.js';
7
+ /**
8
+ * The font background color command. It is used by
9
+ * {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing}
10
+ * to apply the font background color.
11
+ *
12
+ * ```ts
13
+ * editor.execute( 'fontBackgroundColor', { value: 'rgb(250, 20, 20)' } );
14
+ * ```
15
+ *
16
+ * **Note**: Executing the command with the `null` value removes the attribute from the model.
17
+ */
18
+ export default class FontBackgroundColorCommand extends FontCommand {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor(editor) {
23
+ super(editor, FONT_BACKGROUND_COLOR);
24
+ }
25
+ }
@@ -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 font/fontbackgroundcolor/fontbackgroundcolorediting
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * The font background color editing feature.
11
- *
12
- * It introduces the {@link module:font/fontbackgroundcolor/fontbackgroundcolorcommand~FontBackgroundColorCommand command} and
13
- * the `fontBackgroundColor` attribute in the {@link module:engine/model/model~Model model} which renders
14
- * in the {@link module:engine/view/view view} as a `<span>` element (`<span style="background-color: ...">`),
15
- * depending on the {@link module:font/fontconfig~FontColorConfig configuration}.
16
- */
17
- export default class FontBackgroundColorEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "FontBackgroundColorEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- constructor(editor: Editor);
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 font/fontbackgroundcolor/fontbackgroundcolorediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The font background color editing feature.
11
+ *
12
+ * It introduces the {@link module:font/fontbackgroundcolor/fontbackgroundcolorcommand~FontBackgroundColorCommand command} and
13
+ * the `fontBackgroundColor` attribute in the {@link module:engine/model/model~Model model} which renders
14
+ * in the {@link module:engine/view/view view} as a `<span>` element (`<span style="background-color: ...">`),
15
+ * depending on the {@link module:font/fontconfig~FontColorConfig configuration}.
16
+ */
17
+ export default class FontBackgroundColorEditing extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "FontBackgroundColorEditing";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(editor: Editor);
26
+ }