Skip to content

Editor.hasHighlight method

Editor › hasHighlight

Unofficial

Checks whether the editor has a highlight of specified class.

Signature:

hasHighlight(style?: string | undefined): boolean

Parameters:

Parameter Type Description
style? string | undefined The highlight style class to check for.

Returns: booleanWhether the editor has the specified highlight.

Remarks:

If no style is specified, checks whether the editor has unknown highlights.