@ckeditor/ckeditor5-font 47.7.1 → 47.7.2-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/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/dist/index.js
CHANGED
|
@@ -678,7 +678,7 @@ const namedPresets = {
|
|
|
678
678
|
return attachPriority(definition);
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
|
-
* Adds the priority to the view element definition if missing. It's required due to ckeditor/ckeditor5
|
|
681
|
+
* Adds the priority to the view element definition if missing. It's required due to https://github.com/ckeditor/ckeditor5/issues/2291
|
|
682
682
|
*/ function attachPriority(definition) {
|
|
683
683
|
if (definition.view && typeof definition.view !== 'string' && !definition.view.priority) {
|
|
684
684
|
definition.view.priority = 7;
|
|
@@ -1256,7 +1256,8 @@ const styleFontSize = [
|
|
|
1256
1256
|
// Register the UI component.
|
|
1257
1257
|
editor.ui.componentFactory.add(this.componentName, (locale)=>{
|
|
1258
1258
|
const dropdownView = createDropdown(locale);
|
|
1259
|
-
// Font color dropdown rendering is deferred once it gets open to improve performance
|
|
1259
|
+
// Font color dropdown rendering is deferred once it gets open to improve performance.
|
|
1260
|
+
// See https://github.com/ckeditor/ckeditor5/issues/6192.
|
|
1260
1261
|
let dropdownContentRendered = false;
|
|
1261
1262
|
const colorSelectorView = addColorSelectorToDropdown({
|
|
1262
1263
|
dropdownView,
|
|
@@ -1339,7 +1340,8 @@ const styleFontSize = [
|
|
|
1339
1340
|
icon: this.icon
|
|
1340
1341
|
});
|
|
1341
1342
|
menuView.bind('isEnabled').to(command);
|
|
1342
|
-
// Font color sub-menu rendering is deferred once it gets open to improve performance
|
|
1343
|
+
// Font color sub-menu rendering is deferred once it gets open to improve performance.
|
|
1344
|
+
// See https://github.com/ckeditor/ckeditor5/issues/6192.
|
|
1343
1345
|
let contentRendered = false;
|
|
1344
1346
|
const colorSelectorView = new ColorSelectorView(locale, {
|
|
1345
1347
|
colors: localizedColors.map((option)=>({
|