Skip to content

CodeMirrorEditor.getSearchCursor method

CodeMirrorEditor › getSearchCursor

Unofficial

Get a search cursor for the given regular expression starting at the given position.

Signature:

getSearchCursor(query: RegExp, pos: EditorPosition): CodeMirrorEditorSearchCursor

Parameters:

Parameter Type Description
query RegExp The regular expression to search for.
pos EditorPosition The position to start searching from.

Returns: CodeMirrorEditorSearchCursorThe search cursor.