mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
refactor: remove logs and fix typo
This commit is contained in:
parent
444e6e5a11
commit
6bdb5917a5
@ -263,9 +263,8 @@ export const Link = Mark.create<LinkOptions>({
|
|||||||
const foundLinks: PasteRuleMatch[] = []
|
const foundLinks: PasteRuleMatch[] = []
|
||||||
|
|
||||||
if (text) {
|
if (text) {
|
||||||
console.log(text)
|
|
||||||
const { validate, protocols, defaultProtocol } = this.options
|
const { validate, protocols, defaultProtocol } = this.options
|
||||||
const links = find(text).filter(item => item.isLink && validate(item.href, { defaultValidate: href => !!isAllowedUri(href, protocols), protocols, defaultProtocol }))
|
const links = find(text).filter(item => item.isLink && validate(item.value, { defaultValidate: href => !!isAllowedUri(href, protocols), protocols, defaultProtocol }))
|
||||||
|
|
||||||
if (links.length) {
|
if (links.length) {
|
||||||
links.forEach(link => (foundLinks.push({
|
links.forEach(link => (foundLinks.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user