---
title: "createParagraphNear 命令"
description: "使用 Tiptap 中的 createParagraphNear 命令在当前块节点选择附近添加段落。更多信息请查看我们的文档！"
canonical_url: "https://tiptap.zhcndoc.com/editor/api/commands/nodes-and-marks/create-paragraph-near"
---

# createParagraphNear 命令

使用 Tiptap 中的 createParagraphNear 命令在当前块节点选择附近添加段落。更多信息请查看我们的文档！

如果当前选中了一个块节点，`createParagraphNear` 命令将在当前选中的块节点之后创建一个空段落。如果选中的块节点是其父节点的第一个子节点，则新段落将插入到当前选择之前。

## 使用 createParagraphNear 命令

```js
editor.commands.createParagraphNear()
```
