tiptap/docs/api/commands/create-paragraph-near.md
2022-06-08 12:15:59 +02:00

347 B

createParagraphNear

If a block node is currently selected, the createParagraphNear command creates an empty paragraph after the currently selected block node. If the selected block node is the first child of its parent, the new paragraph will be inserted before the current selection.

Usage

editor.commands.createParagraphNear()