Skip to content

CodeMirrorEditor.findPosV method

CodeMirrorEditor › findPosV

Unofficial

Find a position vertically relative to the given start position.

Signature:

findPosV(start: EditorPosition, amount: number, unit: "line" | "page", goalColumn: number): EditorPosition

Parameters:

ParameterTypeDescription
startEditorPositionThe starting editor position.
amountnumberThe number of units to move.
unit"line" | "page"The unit of movement.
goalColumnnumberThe desired column to maintain.

Returns: EditorPosition — The resulting editor position.