HighlightOption
interface
The highlight option descriptor. See HighlightConfig
to learn more.
{
model: 'pinkMarker',
class: 'marker-pink',
title: 'Pink Marker',
color: 'var(--ck-content-highlight-marker-pink)',
type: 'marker'
}
Properties
-
class : string
module:highlight/highlightconfig~HighlightOption#class
The CSS class used on the
<mark>
element in the view. It should match thecolor
setting. -
color : string
module:highlight/highlightconfig~HighlightOption#color
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. -
model : string
module:highlight/highlightconfig~HighlightOption#model
The unique attribute value in the model.
-
title : string
module:highlight/highlightconfig~HighlightOption#title
The user-readable title of the option.
-
type : 'marker' | 'pen'
module:highlight/highlightconfig~HighlightOption#type
The type of highlighter:
'marker'
– Uses thecolor
as thebackground-color
style,'pen'
– Uses thecolor
as the fontcolor
style.