From 094e1d139d12e95c1c01f4cd5adaced2f64435ed Mon Sep 17 00:00:00 2001 From: Matej Date: Thu, 26 Feb 2026 22:04:31 +0100 Subject: [PATCH] fix: make links clickable in comments (#376) (#415) Move Link extension before Markdown in the TipTap extensions array to ensure URL detection happens before markdown processing. Also explicitly enable linkOnPaste for paste detection. Fixes #376 Co-authored-by: Claude Opus 4.5 --- apps/web/src/components/Editor.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/web/src/components/Editor.tsx b/apps/web/src/components/Editor.tsx index 7d82e92a..603e89a3 100644 --- a/apps/web/src/components/Editor.tsx +++ b/apps/web/src/components/Editor.tsx @@ -463,13 +463,6 @@ export default function Editor({ StarterKit.configure({ heading: disableHeadings ? false : undefined, }), - Markdown, - Placeholder.configure({ - placeholder: readOnly - ? "" - : placeholder ?? - t`Add description... (type '/' to open commands or '@' to mention)`, - }), Link.configure({ openOnClick: true, HTMLAttributes: { @@ -479,6 +472,14 @@ export default function Editor({ }, validate: (href) => /^https?:\/\//.test(href), autolink: true, + linkOnPaste: true, + }), + Markdown, + Placeholder.configure({ + placeholder: readOnly + ? "" + : placeholder ?? + t`Add description... (type '/' to open commands or '@' to mention)`, }), SlashCommands.configure({ commandItems: getCommandItems(disableHeadings),