tiptap/docs/api/commands/create-paragraph-near.md

8 lines
347 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# 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.
2021-04-21 17:03:33 +08:00
## Usage
```js
editor.commands.createParagraphNear()
```