@ckeditor/ckeditor5-font 45.0.0 → 45.1.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/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/fontsize/fontsizeediting.js +1 -1
- package/src/fontsize.d.ts +1 -1
- package/src/fontsize.js +1 -1
- package/src/ui/colorui.d.ts +1 -0
- package/src/ui/colorui.js +1 -0
- package/src/utils.d.ts +9 -6
- package/src/utils.js +9 -6
package/dist/index.js
CHANGED
|
@@ -132,13 +132,16 @@ import { isLength, isPercentage, addBackgroundRules } from '@ckeditor/ckeditor5-
|
|
|
132
132
|
/**
|
|
133
133
|
* A helper that adds {@link module:ui/colorselector/colorselectorview~ColorSelectorView} to the color dropdown with proper initial values.
|
|
134
134
|
*
|
|
135
|
-
* @param
|
|
135
|
+
* @param options Configuration options
|
|
136
|
+
* @param options.dropdownView The dropdown view to which a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}
|
|
136
137
|
* will be added.
|
|
137
|
-
* @param
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
140
|
-
* @param
|
|
141
|
-
* @param
|
|
138
|
+
* @param options.colors An array with definitions representing colors to be displayed in the color selector.
|
|
139
|
+
* @param options.columns The number of columns in the color grid.
|
|
140
|
+
* @param options.removeButtonLabel The label for the button responsible for removing the color.
|
|
141
|
+
* @param options.colorPickerLabel The label for the color picker button.
|
|
142
|
+
* @param options.documentColorsLabel The label for the section with document colors.
|
|
143
|
+
* @param options.documentColorsCount The number of document colors inside the dropdown.
|
|
144
|
+
* @param options.colorPickerViewConfig Configuration of the color picker view.
|
|
142
145
|
* @returns The new color selector view.
|
|
143
146
|
*/ function addColorSelectorToDropdown({ dropdownView, colors, columns, removeButtonLabel, colorPickerLabel, documentColorsLabel, documentColorsCount, colorPickerViewConfig }) {
|
|
144
147
|
const locale = dropdownView.locale;
|
|
@@ -781,7 +784,7 @@ const styleFontSize = [
|
|
|
781
784
|
* See valid examples described in the {@link module:font/fontconfig~FontSizeConfig#options plugin configuration}.
|
|
782
785
|
*
|
|
783
786
|
* @error font-size-invalid-use-of-named-presets
|
|
784
|
-
* @param {Array.<
|
|
787
|
+
* @param {Array.<string>} presets Invalid values.
|
|
785
788
|
*/ throw new CKEditorError('font-size-invalid-use-of-named-presets', null, {
|
|
786
789
|
presets
|
|
787
790
|
});
|
|
@@ -1019,7 +1022,7 @@ const styleFontSize = [
|
|
|
1019
1022
|
* Normalizes and translates the {@link module:font/fontconfig~FontSizeConfig#options configuration options}
|
|
1020
1023
|
* to the {@link module:font/fontconfig~FontSizeOption} format.
|
|
1021
1024
|
*
|
|
1022
|
-
* @param
|
|
1025
|
+
* @param options An array of options taken from the configuration.
|
|
1023
1026
|
*/ normalizeSizeOptions(options) {
|
|
1024
1027
|
return normalizeOptions(options);
|
|
1025
1028
|
}
|
|
@@ -1197,6 +1200,7 @@ const styleFontSize = [
|
|
|
1197
1200
|
* Creates a plugin which introduces a dropdown with a pre–configured
|
|
1198
1201
|
* {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
|
|
1199
1202
|
*
|
|
1203
|
+
* @param editor An editor instance.
|
|
1200
1204
|
* @param config The configuration object.
|
|
1201
1205
|
* @param config.commandName The name of the command which will be executed when a color tile is clicked.
|
|
1202
1206
|
* @param config.componentName The name of the dropdown in the {@link module:ui/componentfactory~ComponentFactory}
|