Skip to content

CodeMirrorEditor.getLine method

CodeMirrorEditor › getLine

Unofficial

Get the text content of the given line number.

Signature:

getLine(line: number): string

Parameters:

Parameter Type Description
line number The line number to get text for.

Returns: stringThe text content of the line.