Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(editor): prevent link mark from sticking to cursor

Naiyuan Qing222f60d2dd6f
diff --git a/apps/web/components/common/rich-text-editor.tsx b/apps/web/components/common/rich-text-editor.tsx
index a7a922471a..c9cf9135e8 100644
--- a/apps/web/components/common/rich-text-editor.tsx
+++ b/apps/web/components/common/rich-text-editor.tsx
@@ -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",
},