feat: add linkOnPaste option for adding a link to the current selection if the pasted content only contains an url, fix #1210
This commit is contained in:
@@ -18,10 +18,11 @@ yarn add @tiptap/extension-link
|
||||
```
|
||||
|
||||
## Settings
|
||||
| Option | Type | Default | Description |
|
||||
| -------------- | --------- | ----------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| HTMLAttributes | `Object` | `{ target: '_blank', rel: 'noopener noreferrer nofollow' }` | Custom HTML attributes that should be added to the rendered HTML tag. |
|
||||
| openOnClick | `Boolean` | `true` | If enabled, links will be opened on click. |
|
||||
| Option | Type | Default | Description |
|
||||
| -------------- | --------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| HTMLAttributes | `Object` | `{ target: '_blank', rel: 'noopener noreferrer nofollow' }` | Custom HTML attributes that should be added to the rendered HTML tag. |
|
||||
| openOnClick | `Boolean` | `true` | If enabled, links will be opened on click. |
|
||||
| linkOnPaste | `Boolean` | `true` | Adds a link to the current selection if the pasted content only contains an url. |
|
||||
|
||||
## Commands
|
||||
| Command | Parameters | Description |
|
||||
|
||||
Reference in New Issue
Block a user