tiptap/docs/api/commands/split-list-item.md

13 lines
330 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# splitListItem
`splitListItem` splits one list item into two separate list items. If this is a nested list, the wrapping list item should be split.
2021-04-21 17:03:33 +08:00
## Parameters
`typeOrName: string | NodeType`
The type of node that should be split into two separate list items.
## Usage
```js
editor.commands.splitListItem('bullet_list')
```