Skip to content

CodeMirrorAdapterExCommands.newlineAndIndentBefore method

CodeMirrorAdapterExCommands › newlineAndIndentBefore

Unofficial

Insert a new line before the current line and auto-indent.

Signature:

newlineAndIndentBefore(editor: CodeMirrorEditor): void

Parameters:

Parameter Type Description
editor CodeMirrorEditor The editor instance.

Returns: void