NEWCKEditor AI is here! Learn how to supercharge your editor with AI on our webinar.
Sign up (with export icon)

CollaborationUserColor

Api-class iconclass

The color object used to generate specified CSS classes with an individual color number assigned to the user.

Properties

  • Chevron-right icon

    id : number
    readonly

    Color's unique id. Used as a part of the generated class names.

    You can use this value to implement more color-related classes.

Methods

  • Chevron-right icon

    constructor( colorId )

    Parameters

    colorId : number
  • Chevron-right icon

    Returns CSS class for user avatar background color.

    Returns

    string
  • Chevron-right icon

    getMarkerClass() → string

    Returns CSS class for user caret position element (the pipe).

    Returns

    string
  • Chevron-right icon

    getSelectionClass() → string

    Returns CSS class for user selection highlight (the selected range).

    Returns

    string