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:

ParameterTypeDescription
queryRegExpThe regular expression to search for.
posEditorPositionThe position to start searching from.

Returns: CodeMirrorEditorSearchCursorThe search cursor.