diff --git a/apps/web/components/common/rich-text-editor.tsx b/apps/web/components/common/rich-text-editor.tsx index a7a92247..c9cf9135 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", },