Skip to content

Commit

Permalink
Merge pull request #66 from erwanvivien/patch-1
Browse files Browse the repository at this point in the history
Fix List documentation
  • Loading branch information
marco-tiptap authored Nov 19, 2024
2 parents 846e9fd + aba2ea3 commit 57075e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/content/editor/api/commands/lists/split-list-item.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ The type of node that should be split into two separate list items.
## Use the splitListItem command

```js
editor.commands.splitListItem('bullet_list')
editor.commands.splitListItem('bulletList')
```
4 changes: 2 additions & 2 deletions src/content/editor/api/commands/lists/toggle-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ The attributes that should be applied to the list. **This is optional.**

```js
// toggle a bullet list with list items
editor.commands.toggleList('bullet_list', 'list_item')
editor.commands.toggleList('bulletList', 'listItem')

// toggle a numbered list with list items
editor.commands.toggleList('ordered_list', 'list_item')
editor.commands.toggleList('orderedList', 'listItem')
```

0 comments on commit 57075e0

Please sign in to comment.