tiptap: fix link

This commit is contained in:
fantasticit 2022-06-07 16:32:41 +08:00
parent 4651453e86
commit 7425a4e53e
1 changed files with 2 additions and 4 deletions

View File

@ -42,6 +42,7 @@ export const Link = BuiltInLink.extend({
}), }),
]; ];
}, },
addAttributes() { addAttributes() {
return { return {
...this.parent?.(), ...this.parent?.(),
@ -53,13 +54,10 @@ export const Link = BuiltInLink.extend({
title: null, title: null,
parseHTML: (element) => element.getAttribute('title'), parseHTML: (element) => element.getAttribute('title'),
}, },
hasTrigger: {
default: false,
},
}; };
}, },
}).configure({ }).configure({
openOnClick: false, openOnClick: false,
linkOnPaste: true, linkOnPaste: true,
autolink: true, autolink: false,
}); });