ui/colorpicker/utils
@ckeditor/ckeditor5-ui/src/colorpicker/utils
module
Filtering
Type Definitions
-
ColorPickerConfig
module:ui/colorpicker/utils~ColorPickerConfig
-
ColorPickerOutputFormat
module:ui/colorpicker/utils~ColorPickerOutputFormat
-
ColorPickerViewConfig
module:ui/colorpicker/utils~ColorPickerViewConfig
Functions
-
convertColor( color, outputFormat ) → string
module:ui/colorpicker/utils~convertColor
Parses and converts the color string to requested format. Handles variety of color spaces like
hsl
,hex
orrgb
.Parameters
color : string
outputFormat : ColorPickerOutputFormat
Returns
string
A color string.
-
convertToHex( color ) → string
module:ui/colorpicker/utils~convertToHex
Converts a color string to hex format.
Parameters
color : string
Returns
string
A color string.
-
registerCustomElement( elementName, constructor ) → void
module:ui/colorpicker/utils~registerCustomElement
Registers the custom element in the CustomElementsRegistry.
Parameters
elementName : string
constructor : CustomElementConstructor
Returns
void
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.