Skip to content

EditorView.moveVertically method

EditorView › moveVertically

Official

Move a cursor position vertically.

Signature:

moveVertically(start: SelectionRange, forward: boolean, distance?: number | undefined): SelectionRange

Parameters:

ParameterTypeDescription
startSelectionRangeThe start selection range.
forwardbooleanWhether to move forward.
distance?number | undefinedThe distance in pixels.

Returns: SelectionRangeThe new selection range.