Skip to main content

Reset Node

createResetNodePlugin#

Allows you to reset the block type based on certain rules.

In the following example, you can press Enter in an empty block quote or Backspace at the start of a block so it resets to a paragraph.

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