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

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",
},