Skip to main content

Soft Break

createSoftBreakPlugin#

Allows you to create hotkeys which insert a line break, without exiting the current block.

Installation#

npm install @udecode/plate-break

Usage#

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^

Source Code#