fix(desktop): prevent URL highlight from bleeding past link boundary (#452)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Wes
2026-05-02 09:52:49 -06:00
committed by GitHub
parent c9f287958d
commit 83e5fb6494

View File

@@ -183,7 +183,11 @@ export function useRichTextEditor({
Placeholder.configure({
placeholder: () => placeholderRef.current ?? "Write a message…",
}),
Link.configure({
Link.extend({
inclusive() {
return false;
},
}).configure({
openOnClick: false,
autolink: true,
linkOnPaste: true,