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: "page" | "line", goalColumn: number): EditorPosition

Parameters:

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

Returns: EditorPositionThe resulting editor position.