HighlightOption (highlight)
@ckeditor/ckeditor5-highlight/src/highlight
The highlight option descriptor. See HighlightConfig
to learn more.
Filtering
Properties
-
The CSS class used on the
<mark>
element in the view. It should match thecolor
setting. -
The CSS
var()
used for the highlighter. The color is used in the user interface to represent the highlighter. There is a possibility to use the default color format like rgb, hex or hsl, but you need to care about the color of<mark>
by adding CSS classes definition. -
The unique attribute value in the model.
-
The user-readable title of the option.
-
type : 'marker' | 'pen'
The type of highlighter:
'marker'
– Uses thecolor
as thebackground-color
style,'pen'
– Uses thecolor
as the fontcolor
style.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.