tiptap: fix link

pull/82/head
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() {
return {
...this.parent?.(),
@ -53,13 +54,10 @@ export const Link = BuiltInLink.extend({
title: null,
parseHTML: (element) => element.getAttribute('title'),
},
hasTrigger: {
default: false,
},
};
},
}).configure({
openOnClick: false,
linkOnPaste: true,
autolink: true,
autolink: false,
});