docs: make all tables with only HTMLAttributes as a setting a lis

This commit is contained in:
Hans Pagel
2021-10-01 23:27:39 +02:00
parent 86d8ecd238
commit 2fccba79cb
14 changed files with 154 additions and 42 deletions

View File

@@ -16,9 +16,17 @@ yarn add @tiptap/extension-list-item
This extension requires the [`BulletList`](/api/nodes/bullet-list) or [`OrderedList`](/api/nodes/ordered-list) node.
## Settings
| Option | Type | Default | Description |
| -------------- | -------- | ------- | --------------------------------------------------------------------- |
| HTMLAttributes | `Object` | `{}` | Custom HTML attributes that should be added to the rendered HTML tag. |
### HTMLAttributes
Custom HTML attributes that should be added to the rendered HTML tag.
```js
ListItem.configure({
HTMLAttributes: {
class: 'my-custom-class',
},
})
```
## Keyboard shortcuts
| Command | Windows/Linux | macOS |