add multicolor option to highlight

This commit is contained in:
Philipp Kühn
2020-12-03 23:32:11 +01:00
parent bb8e6c8903
commit 81af92a85c
6 changed files with 14 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ export default {
Document,
Paragraph,
Text,
Highlight,
Highlight.configure({ multicolor: true }),
],
content: `
<p>This isnt highlighted.</s></p>

View File

@@ -13,9 +13,10 @@ yarn add @tiptap/extension-highlight
```
## Settings
| Option | Type | Default | Description |
| -------------- | -------- | ------- | --------------------------------------------------------------------- |
| HTMLAttributes | `Object` | `{}` | Custom HTML attributes that should be added to the rendered HTML tag. |
| Option | Type | Default | Description |
| -------------- | --------- | ------- | --------------------------------------------------------------------- |
| multicolor | `Boolean` | `false` | Add support for multiple colors. |
| HTMLAttributes | `Object` | `{}` | Custom HTML attributes that should be added to the rendered HTML tag. |
## Commands
| Command | Options | Description |