[Bug]: Wrong link on paste with hard break #5679
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-link
Version(s)
2.6.6
Bug Description
Hi, I'd like to report a possibile bug that occurs when pasting a link with a new line separated by an hard break (I hope it's not a duplicate!).
When coping and pasting together:
br
)the pasted link "extends" to the first word of the following line and the link pasted is incorrect:
(in this case, the pasted link will be
https://google.comThis
)The problem doesn't show up if the two lines are in different paragraphs:
You can also see the same issue in the Tiptap public demo: https://templates.tiptap.dev/
Is this an actual issue or am I missing something?
Thank you for your work!
Browser Used
Chrome
Code Example URL
https://stackblitz.com/edit/react-xqt1gu?file=src%2FApp.js
Expected Behavior
The copied link and the following line should be kept as in the original source.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: