Module

ui/colorpicker/utils

@ckeditor/ckeditor5-ui/src/colorpicker/utils

module

Filtering

Type Definitions

Functions

  • convertColor( color, outputFormat ) → string

    Parses and converts the color string to requested format. Handles variety of color spaces like hsl, hex or rgb.

    Parameters

    color : string
    outputFormat : ColorPickerOutputFormat

    Returns

    string

    A color string.

  • convertToHex( color ) → string

    Converts a color string to hex format.

    Parameters

    color : string

    Returns

    string

    A color string.

  • registerCustomElement( elementName, constructor ) → void

    Registers the custom element in the CustomElementsRegistry.

    Parameters

    elementName : string
    constructor : CustomElementConstructor

    Returns

    void