Skip to content

CodeMirrorEditor.getLineNumber method

CodeMirrorEditor › getLineNumber

Unofficial

Get the line number from a line handle, or null if the handle is invalid.

Signature:

getLineNumber(handle: LineHandle): null | number

Parameters:

Parameter Type Description
handle LineHandle The line handle to get the number for.

Returns: null | numberThe line number, or null if the handle is invalid.