Skip to content

setHighlightRegistry

setHighlightRegistry(registry): void

Override the HighlightRegistry used by all Editor instances. Useful for testing environments where CSS.highlights is unavailable. Pass undefined to revert to the default CSS.highlights.

HighlightRegistry | undefined

void