fix(editor): do not use Tiptap to open links when clicking on them, use the browser native attributes instead
continuous-integration/drone/push Build is failing Details

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 #2155
This commit is contained in:
kolaente 2024-03-13 19:23:02 +01:00
parent 8ff59d4649
commit f34577f293
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

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({