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

@@ -21,9 +21,11 @@ yarn add @tiptap/extension-link
| openOnClick | `Boolean` | `true` | If enabled, links will be opened on click. |
## Commands
| Command | Parameters | Description |
| ------- | -------------- | ----------------------------------------------------------- |
| link | href<br>target | Link the selected text. Removes a link, if `href` is empty. |
| Command | Parameters | Description |
| ---------- | ------------------ | -------------------------------------------- |
| setLink | `href`<br>`target` | Link the selected text. |
| toggleLink | `href`<br>`target` | Add or remove a link from the selected text. |
| unsetLink | | Removes a link. |
## Keyboard shortcuts
:::warning Doesnt have a keyboard shortcut