mirror of https://github.com/fantasticit/think.git
tiptap: fix link
This commit is contained in:
parent
4651453e86
commit
7425a4e53e
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue