fix(editor): do not use Tiptap to open links when clicking on them, use the browser native attributes instead
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
8ff59d4649
commit
f34577f293
@ -374,7 +374,7 @@ const editor = useEditor({
|
||||
Typography,
|
||||
Underline,
|
||||
Link.configure({
|
||||
openOnClick: true,
|
||||
openOnClick: false,
|
||||
validate: (href: string) => /^https?:\/\//.test(href),
|
||||
}),
|
||||
Table.configure({
|
||||
|
Loading…
x
Reference in New Issue
Block a user