Skip to main content

Single Line

createSingleLinePlugin#

Allows you to force the editor to only have one line.

Installation#

npm install @udecode/plate-break

Usage#

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

Source Code#