Skip to content

Type Editor


Type Editor / @type-editor/commands / insert-hard-break

insert-hard-break

Functions

FunctionDescription

insertHardBreak

Creates a command that inserts a hard break (line break) at the current selection.

The hard break replaces the current selection and scrolls the view to ensure the inserted break is visible.