/
augmentation.ts
91 lines (83 loc) · 2.62 KB
/
augmentation.ts
1
2
3
4
5
6
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
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';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the font background color feature.
* It is introduced by the {@link module:font/fontbackgroundcolor/fontbackgroundcolorediting~FontBackgroundColorEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontColorConfig}.
*/
fontBackgroundColor?: FontColorConfig;
/**
* The configuration of the font color feature.
* It is introduced by the {@link module:font/fontcolor/fontcolorediting~FontColorEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontColorConfig}.
*/
fontColor?: FontColorConfig;
/**
* The configuration of the font family feature.
* It is introduced by the {@link module:font/fontfamily/fontfamilyediting~FontFamilyEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontFamilyConfig}.
*/
fontFamily?: FontFamilyConfig;
/**
* The configuration of the font size feature.
* It is introduced by the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} feature.
*
* Read more in {@link module:font/fontconfig~FontSizeConfig}.
*/
fontSize?: FontSizeConfig;
}
interface PluginsMap {
[ Font.pluginName ]: Font;
[ FontBackgroundColor.pluginName ]: FontBackgroundColor;
[ FontBackgroundColorEditing.pluginName ]: FontBackgroundColorEditing;
[ FontBackgroundColorUI.pluginName ]: FontBackgroundColorUI;
[ FontColor.pluginName ]: FontColor;
[ FontColorEditing.pluginName ]: FontColorEditing;
[ FontColorUI.pluginName ]: FontColorUI;
[ FontFamily.pluginName ]: FontFamily;
[ FontFamilyEditing.pluginName ]: FontFamilyEditing;
[ FontFamilyUI.pluginName ]: FontFamilyUI;
[ FontSize.pluginName ]: FontSize;
[ FontSizeEditing.pluginName ]: FontSizeEditing;
[ FontSizeUI.pluginName ]: FontSizeUI;
}
interface CommandsMap {
[ FONT_SIZE ]: FontSizeCommand;
[ FONT_FAMILY ]: FontFamilyCommand;
[ FONT_COLOR ]: FontColorCommand;
[ FONT_BACKGROUND_COLOR ]: FontBackgroundColorCommand;
}
}