Add support for custom protocols in extension-link (#2832)

This commit is contained in:
Shengchen Zhang
2022-06-06 23:33:45 +08:00
committed by GitHub
parent d85444c310
commit 50083f3be1
2 changed files with 23 additions and 1 deletions

View File

@@ -20,6 +20,17 @@ npm install @tiptap/extension-link
## Settings
### protocols
Additional custom protocols you would like to be recognized as links.
Default: `[]`
```js
Link.configure({
protocols: ['ftp', 'mailto'],
})
```
### autolink
If enabled, it adds links as you type.