@ckeditor/ckeditor5-font 40.0.0 → 40.2.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/CHANGELOG.md +19 -19
- package/LICENSE.md +3 -3
- package/package.json +2 -2
- package/src/augmentation.d.ts +58 -58
- package/src/augmentation.js +5 -5
- package/src/font.d.ts +33 -33
- package/src/font.js +37 -37
- package/src/fontbackgroundcolor/fontbackgroundcolorcommand.d.ts +26 -26
- package/src/fontbackgroundcolor/fontbackgroundcolorcommand.js +25 -25
- package/src/fontbackgroundcolor/fontbackgroundcolorediting.d.ts +26 -26
- package/src/fontbackgroundcolor/fontbackgroundcolorediting.js +123 -123
- package/src/fontbackgroundcolor/fontbackgroundcolorui.d.ts +22 -22
- package/src/fontbackgroundcolor/fontbackgroundcolorui.js +33 -33
- package/src/fontbackgroundcolor.d.ts +30 -30
- package/src/fontbackgroundcolor.js +34 -34
- package/src/fontcolor/fontcolorcommand.d.ts +25 -25
- package/src/fontcolor/fontcolorcommand.js +24 -24
- package/src/fontcolor/fontcolorediting.d.ts +26 -26
- package/src/fontcolor/fontcolorediting.js +134 -134
- package/src/fontcolor/fontcolorui.d.ts +22 -22
- package/src/fontcolor/fontcolorui.js +33 -33
- package/src/fontcolor.d.ts +29 -29
- package/src/fontcolor.js +33 -33
- package/src/fontcommand.d.ts +48 -48
- package/src/fontcommand.js +79 -79
- package/src/fontconfig.d.ts +373 -373
- package/src/fontconfig.js +5 -5
- package/src/fontfamily/fontfamilycommand.d.ts +25 -25
- package/src/fontfamily/fontfamilycommand.js +24 -24
- package/src/fontfamily/fontfamilyediting.d.ts +39 -39
- package/src/fontfamily/fontfamilyediting.js +115 -115
- package/src/fontfamily/fontfamilyui.d.ts +30 -30
- package/src/fontfamily/fontfamilyui.js +114 -114
- package/src/fontfamily/utils.d.ts +15 -15
- package/src/fontfamily/utils.js +80 -80
- package/src/fontfamily.d.ts +29 -29
- package/src/fontfamily.js +33 -33
- package/src/fontsize/fontsizecommand.d.ts +25 -25
- package/src/fontsize/fontsizecommand.js +24 -24
- package/src/fontsize/fontsizeediting.d.ts +44 -44
- package/src/fontsize/fontsizeediting.js +165 -165
- package/src/fontsize/fontsizeui.d.ts +31 -31
- package/src/fontsize/fontsizeui.js +122 -122
- package/src/fontsize/utils.d.ts +12 -12
- package/src/fontsize/utils.js +166 -166
- package/src/fontsize.d.ts +37 -37
- package/src/fontsize.js +43 -43
- package/src/index.d.ts +27 -27
- package/src/index.js +21 -21
- package/src/ui/colorui.d.ts +68 -68
- package/src/ui/colorui.js +130 -130
- package/src/utils.d.ts +80 -80
- package/src/utils.js +97 -97
- package/build/font.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All changes in the package are documented in the main repository. See: https://g
|
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v18.0.0...v19.0.0) (2020
|
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v18.0.0...v19.0.0) (April 29, 2020)
|
|
9
9
|
|
|
10
10
|
### Features
|
|
11
11
|
|
|
@@ -16,14 +16,14 @@ Changes for the past releases are available below.
|
|
|
16
16
|
* Font size styles should be prefixed by the `.ck-content` class. Closes [ckeditor/ckeditor5#6636](https://github.com/ckeditor/ckeditor5/issues/6636). ([b0b06db](https://github.com/ckeditor/ckeditor5-font/commit/b0b06db))
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v17.0.0...v18.0.0) (2020
|
|
19
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
|
20
20
|
|
|
21
21
|
### Other changes
|
|
22
22
|
|
|
23
23
|
* Updated translations. ([b0d7c53](https://github.com/ckeditor/ckeditor5-font/commit/b0d7c53))
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v16.0.0...v17.0.0) (2020
|
|
26
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v16.0.0...v17.0.0) (February 19, 2020)
|
|
27
27
|
|
|
28
28
|
### MINOR BREAKING CHANGES
|
|
29
29
|
|
|
@@ -36,14 +36,14 @@ Changes for the past releases are available below.
|
|
|
36
36
|
* Updated translations. ([db84e7a](https://github.com/ckeditor/ckeditor5-font/commit/db84e7a))
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v15.0.0...v16.0.0) (2019
|
|
39
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
|
40
40
|
|
|
41
41
|
### Other changes
|
|
42
42
|
|
|
43
43
|
* Updated translations. ([5203e87](https://github.com/ckeditor/ckeditor5-font/commit/5203e87))
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.2...v15.0.0) (2019
|
|
46
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.2...v15.0.0) (October 23, 2019)
|
|
47
47
|
|
|
48
48
|
### Other changes
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ Changes for the past releases are available below.
|
|
|
51
51
|
* Updated translations. ([19fda83](https://github.com/ckeditor/ckeditor5-font/commit/19fda83)) ([8dd48c4](https://github.com/ckeditor/ckeditor5-font/commit/8dd48c4))
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
## [11.2.2](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.1...v11.2.2) (2019
|
|
54
|
+
## [11.2.2](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.1...v11.2.2) (August 26, 2019)
|
|
55
55
|
|
|
56
56
|
### Other changes
|
|
57
57
|
|
|
@@ -61,14 +61,14 @@ Changes for the past releases are available below.
|
|
|
61
61
|
* Updated translations. ([1691b00](https://github.com/ckeditor/ckeditor5-font/commit/1691b00))
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
## [11.2.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.0...v11.2.1) (2019
|
|
64
|
+
## [11.2.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.2.0...v11.2.1) (July 10, 2019)
|
|
65
65
|
|
|
66
66
|
### Other changes
|
|
67
67
|
|
|
68
68
|
* Updated translations. ([7babe33](https://github.com/ckeditor/ckeditor5-font/commit/7babe33))
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
## [11.2.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.1.1...v11.2.0) (2019
|
|
71
|
+
## [11.2.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.1.1...v11.2.0) (July 4, 2019)
|
|
72
72
|
|
|
73
73
|
### Features
|
|
74
74
|
|
|
@@ -80,14 +80,14 @@ Changes for the past releases are available below.
|
|
|
80
80
|
* Updated view attribute elements priorities to ensure proper order in which attribute elements are applied. Closes [#35](https://github.com/ckeditor/ckeditor5-font/issues/35). ([54467b4](https://github.com/ckeditor/ckeditor5-font/commit/54467b4))
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
## [11.1.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.1.0...v11.1.1) (2019
|
|
83
|
+
## [11.1.1](https://github.com/ckeditor/ckeditor5-font/compare/v11.1.0...v11.1.1) (June 6, 2019)
|
|
84
84
|
|
|
85
85
|
### Other changes
|
|
86
86
|
|
|
87
87
|
* Updated translations. ([cca7b24](https://github.com/ckeditor/ckeditor5-font/commit/cca7b24))
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
## [11.1.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.0.0...v11.1.0) (2019
|
|
90
|
+
## [11.1.0](https://github.com/ckeditor/ckeditor5-font/compare/v11.0.0...v11.1.0) (April 4, 2019)
|
|
91
91
|
|
|
92
92
|
### Features
|
|
93
93
|
|
|
@@ -100,7 +100,7 @@ Changes for the past releases are available below.
|
|
|
100
100
|
* Updated translations. ([6f3332f](https://github.com/ckeditor/ckeditor5-font/commit/6f3332f)) ([f756b70](https://github.com/ckeditor/ckeditor5-font/commit/f756b70))
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.4...v11.0.0) (2019
|
|
103
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.4...v11.0.0) (February 28, 2019)
|
|
104
104
|
|
|
105
105
|
### Other changes
|
|
106
106
|
|
|
@@ -111,28 +111,28 @@ Changes for the past releases are available below.
|
|
|
111
111
|
* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c))
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
## [10.0.4](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.3...v10.0.4) (2018
|
|
114
|
+
## [10.0.4](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.3...v10.0.4) (December 5, 2018)
|
|
115
115
|
|
|
116
116
|
### Other changes
|
|
117
117
|
|
|
118
118
|
* Improved SVG icons size. See [ckeditor/ckeditor5-theme-lark#206](https://github.com/ckeditor/ckeditor5-theme-lark/issues/206). ([e253314](https://github.com/ckeditor/ckeditor5-font/commit/e253314))
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
## [10.0.3](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.2...v10.0.3) (2018
|
|
121
|
+
## [10.0.3](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.2...v10.0.3) (October 8, 2018)
|
|
122
122
|
|
|
123
123
|
### Other changes
|
|
124
124
|
|
|
125
125
|
* Updated translations. ([92d00ee](https://github.com/ckeditor/ckeditor5-font/commit/92d00ee))
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
## [10.0.2](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.1...v10.0.2) (2018
|
|
128
|
+
## [10.0.2](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.1...v10.0.2) (July 18, 2018)
|
|
129
129
|
|
|
130
130
|
### Other changes
|
|
131
131
|
|
|
132
132
|
* Updated translations. ([63122d1](https://github.com/ckeditor/ckeditor5-font/commit/63122d1))
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.0...v10.0.1) (2018
|
|
135
|
+
## [10.0.1](https://github.com/ckeditor/ckeditor5-font/compare/v10.0.0...v10.0.1) (June 21, 2018)
|
|
136
136
|
|
|
137
137
|
### Bug fixes
|
|
138
138
|
|
|
@@ -143,7 +143,7 @@ Changes for the past releases are available below.
|
|
|
143
143
|
* Updated translations.
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.4...v10.0.0) (2018
|
|
146
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.4...v10.0.0) (April 25, 2018)
|
|
147
147
|
|
|
148
148
|
### Other changes
|
|
149
149
|
|
|
@@ -155,14 +155,14 @@ Changes for the past releases are available below.
|
|
|
155
155
|
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018
|
|
158
|
+
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.2...v1.0.0-beta.4) (April 19, 2018)
|
|
159
159
|
|
|
160
160
|
### Other changes
|
|
161
161
|
|
|
162
162
|
* Updated translations. ([e750c16](https://github.com/ckeditor/ckeditor5-font/commit/e750c16))
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018
|
|
165
|
+
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-font/compare/v1.0.0-beta.1...v1.0.0-beta.2) (April 10, 2018)
|
|
166
166
|
|
|
167
167
|
### Other changes
|
|
168
168
|
|
|
@@ -173,7 +173,7 @@ Changes for the past releases are available below.
|
|
|
173
173
|
* In the custom format of the font size configuration the `view.style`, `view.class` and `view.attribute` properties are now called `view.styles`, `view.classes` and `view.attributes`.
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
## 1.0.0-beta.1 (2018
|
|
176
|
+
## 1.0.0-beta.1 (March 15, 2018)
|
|
177
177
|
|
|
178
178
|
### Features
|
|
179
179
|
|
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 font feature** – https://github.com/ckeditor/ckeditor5-font <br>
|
|
5
|
-
Copyright (c) 2003
|
|
5
|
+
Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
|
8
8
|
|
|
@@ -13,11 +13,11 @@ Where not otherwise indicated, all CKEditor content is authored by CKSource engi
|
|
|
13
13
|
|
|
14
14
|
The following libraries are included in CKEditor under the [MIT license](https://opensource.org/licenses/MIT):
|
|
15
15
|
|
|
16
|
-
* color-convert - Copyright (c) 2011
|
|
16
|
+
* color-convert - Copyright (c) 2011–2016 Heather Arthur <fayearthur@gmail.com>, copyright (c) 2016–2021 Josh Junon <josh@junon.me>.
|
|
17
17
|
* color-parse - Copyright (c) 2015 Dmitry Ivanov.
|
|
18
18
|
* vanilla-colorful - Copyright (c) 2020 Serhii Kulykov <iamkulykov@gmail.com>.
|
|
19
19
|
|
|
20
20
|
Trademarks
|
|
21
21
|
----------
|
|
22
22
|
|
|
23
|
-
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
|
23
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-font",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.2.0",
|
|
4
4
|
"description": "Font feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "40.
|
|
15
|
+
"ckeditor5": "40.2.0"
|
|
16
16
|
},
|
|
17
17
|
"author": "CKSource (http://cksource.com/)",
|
|
18
18
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -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';
|
|
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
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -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';
|
|
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
|
+
}
|
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';
|
|
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,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';
|
|
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,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';
|
|
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,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';
|
|
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
|
+
}
|