Skip to main content

Soft Break

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

Options#

export interface SoftBreakRule {
hotkey: string;
/**
* Filter the block types where the rule applies.
*/
query?: QueryNodeOptions;
}
export interface SoftBreakPlugin {
rules?: SoftBreakRule[];
}

Source Code#