Skip to content

CodeMirrorEditor.getMainSelection method

CodeMirrorEditor › getMainSelection

Unofficial

Get the primary selection as anchor and head positions.

Signature:

getMainSelection(): EditorSelection

Returns: EditorSelectionThe primary editor selection.