Merge pull request #345 from multica-ai/fix/link-sticky-cursor

fix(editor): prevent link mark from sticking to cursor
This commit is contained in:
Naiyuan Qing 2026-04-02 17:01:35 +08:00 committed by GitHub
commit 565afed447
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,9 +50,10 @@ interface RichTextEditorRef {
insertFile: (filename: string, url: string, isImage: boolean) => void;
}
const LinkExtension = Link.configure({
const LinkExtension = Link.extend({ inclusive: false }).configure({
openOnClick: true,
autolink: true,
linkOnPaste: false,
HTMLAttributes: {
class: "text-primary hover:underline cursor-pointer",
},