1
0

fix(editor): do not use Tiptap to open links when clicking on them, use the browser native attributes instead

It looks like links are opened twice, when the openOnClick option is enabled. That means they will get opened twice when clicking on them. Disabling that option will not fire the click handler and only rely on browser functionality to open links.

Resolves https://kolaente.dev/vikunja/vikunja/issues/2155
This commit is contained in:
kolaente
2024-03-13 19:23:02 +01:00
parent 8ff59d4649
commit f34577f293

View File

@ -374,7 +374,7 @@ const editor = useEditor({
Typography,
Underline,
Link.configure({
openOnClick: true,
openOnClick: false,
validate: (href: string) => /^https?:\/\//.test(href),
}),
Table.configure({