docs: make all node commands a list

This commit is contained in:
Hans Pagel
2021-10-02 00:14:44 +02:00
parent 2fccba79cb
commit 4487fb0d75
13 changed files with 229 additions and 49 deletions

View File

@@ -29,9 +29,13 @@ HorizontalRule.configure({
```
## Commands
| Command | Parameters | Description |
| -------------- | ---------- | ------------------------- |
| horizontalRule | — | Create a horizontal rule. |
### setHorizontalRule()
Create a horizontal rule.
```js
editor.commands.setHorizontalRule()
```
## Source code
[packages/extension-horizontal-rule/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-horizontal-rule/)