mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
tiptap: fix link
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user