@ckeditor/ckeditor5-font 47.7.1 → 47.7.2
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/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/fontsize/utils.js +1 -1
- package/src/ui/colorui.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-font",
|
|
3
|
-
"version": "47.7.
|
|
3
|
+
"version": "47.7.2",
|
|
4
4
|
"description": "Font feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "47.7.
|
|
17
|
-
"@ckeditor/ckeditor5-engine": "47.7.
|
|
18
|
-
"@ckeditor/ckeditor5-icons": "47.7.
|
|
19
|
-
"@ckeditor/ckeditor5-ui": "47.7.
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "47.7.
|
|
21
|
-
"ckeditor5": "47.7.
|
|
16
|
+
"@ckeditor/ckeditor5-core": "47.7.2",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "47.7.2",
|
|
18
|
+
"@ckeditor/ckeditor5-icons": "47.7.2",
|
|
19
|
+
"@ckeditor/ckeditor5-ui": "47.7.2",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "47.7.2",
|
|
21
|
+
"ckeditor5": "47.7.2"
|
|
22
22
|
},
|
|
23
23
|
"author": "CKSource (http://cksource.com/)",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/fontsize/utils.js
CHANGED
|
@@ -121,7 +121,7 @@ function generatePixelPreset(definition) {
|
|
|
121
121
|
return attachPriority(definition);
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* Adds the priority to the view element definition if missing. It's required due to ckeditor/ckeditor5
|
|
124
|
+
* Adds the priority to the view element definition if missing. It's required due to https://github.com/ckeditor/ckeditor5/issues/2291
|
|
125
125
|
*/
|
|
126
126
|
function attachPriority(definition) {
|
|
127
127
|
if (definition.view && typeof definition.view !== 'string' && !definition.view.priority) {
|
package/src/ui/colorui.js
CHANGED
|
@@ -72,7 +72,8 @@ export class FontColorUIBase extends Plugin {
|
|
|
72
72
|
// Register the UI component.
|
|
73
73
|
editor.ui.componentFactory.add(this.componentName, locale => {
|
|
74
74
|
const dropdownView = createDropdown(locale);
|
|
75
|
-
// Font color dropdown rendering is deferred once it gets open to improve performance
|
|
75
|
+
// Font color dropdown rendering is deferred once it gets open to improve performance.
|
|
76
|
+
// See https://github.com/ckeditor/ckeditor5/issues/6192.
|
|
76
77
|
let dropdownContentRendered = false;
|
|
77
78
|
const colorSelectorView = addColorSelectorToDropdown({
|
|
78
79
|
dropdownView,
|
|
@@ -155,7 +156,8 @@ export class FontColorUIBase extends Plugin {
|
|
|
155
156
|
icon: this.icon
|
|
156
157
|
});
|
|
157
158
|
menuView.bind('isEnabled').to(command);
|
|
158
|
-
// Font color sub-menu rendering is deferred once it gets open to improve performance
|
|
159
|
+
// Font color sub-menu rendering is deferred once it gets open to improve performance.
|
|
160
|
+
// See https://github.com/ckeditor/ckeditor5/issues/6192.
|
|
159
161
|
let contentRendered = false;
|
|
160
162
|
const colorSelectorView = new ColorSelectorView(locale, {
|
|
161
163
|
colors: localizedColors.map(option => ({
|