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:

ParameterTypeDescription
editorCodeMirrorEditorThe editor instance.

Returns: void