Explorar el Código

Docs: Improvement in docs. Extended contexts.json.

Aleksander Nowodzinski hace 6 años
padre
commit
38abace295

+ 2 - 0
packages/ckeditor5-font/lang/contexts.json

@@ -6,6 +6,8 @@
 	"Huge": "Dropdown option label for the 'huge' font size preset.",
 	"Font Family": "Tooltip for the font family dropdown.",
 	"Default": "Dropdown option label for the default font family.",
+	"Font color": "Label of a button that allows selecting a font color.",
+	"Font Background Color": "Label of a button that allows selecting a font background color.",
 	"Remove color": "Label or a button that removes the color from the text (font color and background).",
 	"Black": "Label of a button that applies a black text color (font color and background)",
 	"Dim grey": "Label of a button that applies a dim grey text color (font color and background)",

+ 1 - 1
packages/ckeditor5-font/src/fontcolor/fontcolorui.js

@@ -12,7 +12,7 @@ import { FONT_COLOR } from '../utils';
 import fontColorIcon from '../../theme/icons/font-color.svg';
 
 /**
- * The font background color UI plugin. It introduces the `'fontColor'` dropdown.
+ * The font color UI plugin. It introduces the `'fontColor'` dropdown.
  *
  * @extends module:core/plugin~Plugin
  */

+ 3 - 1
packages/ckeditor5-font/src/ui/colorui.js

@@ -17,7 +17,9 @@ import {
 
 /**
  * The color UI plugin which isolates the common logic responsible for displaying dropdowns with color grids.
- * It is used to create the `'fontBackgroundColor'` and the `'fontColor'` dropdowns.
+ *
+ * It is used to create the `'fontBackgroundColor'` and the `'fontColor'` dropdowns, each hosting
+ * a {@link module:font/ui/colortableview~ColorTableView}.
  *
  * @extends module:core/plugin~Plugin
  */

+ 5 - 4
packages/ckeditor5-font/src/utils.js

@@ -89,13 +89,14 @@ export function normalizeOptions( colorRow ) {
 }
 
 /**
- * Helper which add {@link module:font/ui/colortableview~ColorTableView} to dropdown with proper initial values.
+ * Helper which add {@link module:font/ui/colortableview~ColorTableView} to a dropdown with proper initial values.
  *
  * @param {Object} config Configuration object
  * @param {module:ui/dropdown/dropdownview~DropdownView} config.dropdownView Dropdown view to which
- * will be added {@link module:font/ui/colortableview~ColorTableView}.
- * @param {Array.<module:ui/colorgrid/colorgrid~ColorDefinition>}  Array with definitions representing colors to be displayed
- * in the color table.
+ * a {@link module:font/ui/colortableview~ColorTableView} will be added.
+ * @param {Array.<module:ui/colorgrid/colorgrid~ColorDefinition>} config.colors An array with definitions
+ * representing colors to be displayed in the color table.
+ * @param {String} config.removeButtonLabel A label of a button responsible for removing the color.
  * @returns {module:font/ui/colortableview~ColorTableView} The new color table view.
  */
 export function addColorTableToDropdown( { dropdownView, colors, columns, removeButtonLabel } ) {