ui/colorgrid/utils
@ckeditor/ckeditor5-ui/src/colorgrid/utils
module
Filtering
Functions
-
getLocalizedColorOptions( locale, options ) → Array.<ColorDefinition>
Returns color configuration options as defined in
editor.config.(fontColor|fontBackgroundColor).colors
or `editor.config.table.(tableProperties|tableCellProperties).(background|border).colors but processed to account for editor localization in the correct language.Note: The reason behind this method is that there is no way to use
t
when the user configuration is defined because the editor does not exist yet.Parameters
locale : Locale
The
locale
instance.options : Array.<ColorDefinition>
Returns
Array.<ColorDefinition>
.
-
normalizeColorOptions( options ) → Array.<ColorDefinition>
Creates a unified color definition object from color configuration options. The object contains the information necessary to both render the UI and initialize the conversion.