Type Editor / @type-editor/search / get-match-highlights / getMatchHighlights
Function: getMatchHighlights()
ts
function getMatchHighlights(state): DecorationSet;Defined in: get-match-highlights.ts:15
Access the decoration set holding the currently highlighted search matches in the document.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | PmEditorState | The editor state to retrieve decorations from |
Returns
DecorationSet
A decoration set containing all highlighted search matches