docs: update content

This commit is contained in:
Hans Pagel
2020-12-03 17:05:22 +01:00
parent e1fe9b4d50
commit 7c64c41084
14 changed files with 66 additions and 33 deletions

View File

@@ -18,9 +18,11 @@ yarn add @tiptap/extension-highlight
| HTMLAttributes | `Object` | `{}` | Custom HTML attributes that should be added to the rendered HTML tag. |
## Commands
| Command | Options | Description |
| --------- | ------- | ----------------------------------------------------------- |
| highlight | color | Mark text as highlighted, optionally pass a specific color. |
| Command | Options | Description |
| --------------- | ------------------ | ------------------------- |
| setHighlight | `color` (optional) | Mark text as highlighted. |
| toggleHighlight | `color` (optional) | Toggle a text highlight. |
| unsetHighlight | — | Removes the highlight. |
## Keyboard shortcuts
* Windows/Linux: `Control` `Shift` `H`