@ckeditor/ckeditor5-font 48.2.0 → 48.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +56 -56
- package/dist/font.d.ts +32 -32
- package/dist/fontbackgroundcolor/fontbackgroundcolorcommand.d.ts +21 -21
- package/dist/fontbackgroundcolor/fontbackgroundcolorediting.d.ts +25 -25
- package/dist/fontbackgroundcolor/fontbackgroundcolorui.d.ts +15 -15
- package/dist/fontbackgroundcolor.d.ts +29 -29
- package/dist/fontcolor/fontcolorcommand.d.ts +20 -20
- package/dist/fontcolor/fontcolorediting.d.ts +25 -25
- package/dist/fontcolor/fontcolorui.d.ts +15 -15
- package/dist/fontcolor.d.ts +28 -28
- package/dist/fontcommand.d.ts +43 -43
- package/dist/fontconfig.d.ts +356 -356
- package/dist/fontfamily/fontfamilycommand.d.ts +20 -20
- package/dist/fontfamily/fontfamilyediting.d.ts +38 -38
- package/dist/fontfamily/fontfamilyui.d.ts +29 -29
- package/dist/fontfamily/utils.d.ts +16 -16
- package/dist/fontfamily.d.ts +28 -28
- package/dist/fontsize/fontsizecommand.d.ts +20 -20
- package/dist/fontsize/fontsizeediting.d.ts +43 -43
- package/dist/fontsize/fontsizeui.d.ts +30 -30
- package/dist/fontsize/utils.d.ts +10 -10
- package/dist/fontsize.d.ts +36 -36
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +1584 -1570
- package/dist/index.js.map +1 -1
- package/dist/ui/colorui.d.ts +59 -59
- package/dist/utils.d.ts +69 -69
- package/package.json +6 -6
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
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
58
|
}
|
package/dist/font.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { FontFamily } from
|
|
10
|
-
import { FontSize } from
|
|
11
|
-
import { FontColor } from
|
|
12
|
-
import { FontBackgroundColor } from
|
|
6
|
+
* @module font/font
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
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
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
24
|
export declare class Font extends Plugin {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get requires(): PluginDependenciesOf<[FontFamily, FontSize, FontColor, FontBackgroundColor]>;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get pluginName(): "Font";
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static override get isOfficialPlugin(): true;
|
|
37
37
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import type { Editor } from
|
|
9
|
-
import { FontCommand } from
|
|
6
|
+
* @module font/fontbackgroundcolor/fontbackgroundcolorcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { FontCommand } from "../fontcommand.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
21
|
export declare class FontBackgroundColorCommand extends FontCommand {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(editor: Editor);
|
|
26
26
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
6
|
+
* @module font/fontbackgroundcolor/fontbackgroundcolorediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
17
|
export declare class FontBackgroundColorEditing extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FontBackgroundColorEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(editor: Editor);
|
|
30
30
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FontColorUIBase } from
|
|
6
|
-
import type { Editor } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { FontColorUIBase } from "../ui/colorui.js";
|
|
6
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* The font background color UI plugin. It introduces the `'fontBackgroundColor'` dropdown.
|
|
9
|
+
*/
|
|
10
10
|
export declare class FontBackgroundColorUI extends FontColorUIBase {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
constructor(editor: Editor);
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "FontBackgroundColorUI";
|
|
19
19
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { FontBackgroundColorEditing } from
|
|
10
|
-
import { FontBackgroundColorUI } from
|
|
6
|
+
* @module font/fontbackgroundcolor
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { FontBackgroundColorEditing } from "./fontbackgroundcolor/fontbackgroundcolorediting.js";
|
|
10
|
+
import { FontBackgroundColorUI } from "./fontbackgroundcolor/fontbackgroundcolorui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
* The font background color plugin.
|
|
13
|
+
*
|
|
14
|
+
* For a detailed overview, check the {@glink features/font font feature} documentation
|
|
15
|
+
* and the {@glink api/font package page}.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin which loads
|
|
18
|
+
* the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} and
|
|
19
|
+
* {@link module:font/fontbackgroundcolor/fontbackgroundcolorui~FontBackgroundColorUI} features in the editor.
|
|
20
|
+
*/
|
|
21
21
|
export declare class FontBackgroundColor extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[FontBackgroundColorEditing, FontBackgroundColorUI]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "FontBackgroundColor";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isOfficialPlugin(): true;
|
|
34
34
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import type { Editor } from
|
|
9
|
-
import { FontCommand } from
|
|
6
|
+
* @module font/fontcolor/fontcolorcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { FontCommand } from "../fontcommand.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
* The font color command. It is used by {@link module:font/fontcolor/fontcolorediting~FontColorEditing}
|
|
12
|
+
* to apply the font color.
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* editor.execute( 'fontColor', { value: 'rgb(250, 20, 20)' } );
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* **Note**: Executing the command with the `null` value removes the attribute from the model.
|
|
19
|
+
*/
|
|
20
20
|
export declare class FontColorCommand extends FontCommand {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(editor: Editor);
|
|
25
25
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
6
|
+
* @module font/fontcolor/fontcolorediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
* The font color editing feature.
|
|
11
|
+
*
|
|
12
|
+
* It introduces the {@link module:font/fontcolor/fontcolorcommand~FontColorCommand command} and
|
|
13
|
+
* the `fontColor` 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="color: ...">`),
|
|
15
|
+
* depending on the {@link module:font/fontconfig~FontColorConfig configuration}.
|
|
16
|
+
*/
|
|
17
17
|
export declare class FontColorEditing extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FontColorEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(editor: Editor);
|
|
30
30
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { FontColorUIBase } from
|
|
6
|
-
import type { Editor } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { FontColorUIBase } from "../ui/colorui.js";
|
|
6
|
+
import type { Editor } from "@ckeditor/ckeditor5-core";
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* The font color UI plugin. It introduces the `'fontColor'` dropdown.
|
|
9
|
+
*/
|
|
10
10
|
export declare class FontColorUI extends FontColorUIBase {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
constructor(editor: Editor);
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "FontColorUI";
|
|
19
19
|
}
|
package/dist/fontcolor.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import { FontColorEditing } from
|
|
10
|
-
import { FontColorUI } from
|
|
6
|
+
* @module font/fontcolor
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { FontColorEditing } from "./fontcolor/fontcolorediting.js";
|
|
10
|
+
import { FontColorUI } from "./fontcolor/fontcolorui.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
* The font color plugin.
|
|
13
|
+
*
|
|
14
|
+
* For a detailed overview, check the {@glink features/font font feature} documentation
|
|
15
|
+
* and the {@glink api/font package page}.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin which loads the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} and
|
|
18
|
+
* {@link module:font/fontcolor/fontcolorui~FontColorUI} features in the editor.
|
|
19
|
+
*/
|
|
20
20
|
export declare class FontColor extends Plugin {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): PluginDependenciesOf<[FontColorEditing, FontColorUI]>;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get pluginName(): "FontColor";
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isOfficialPlugin(): true;
|
|
33
33
|
}
|