Module

ui/colorpicker/colorpickerview

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

module

Filtering

Classes

Type Definitions

Functions

  • tryParseHexColor( color ) → HexColor<S> | null

    Trim spaces from provided color and check if hex is valid.

    Type parameters

    S : extends string

    Parameters

    color : undefined | null | S

    Unsafe color string.

    Returns

    HexColor<S> | null

    Null if provided color is not hex value.