Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Wrong link on paste with hard break #5679

Open
1 task done
Ste35 opened this issue Sep 29, 2024 · 0 comments
Open
1 task done

[Bug]: Wrong link on paste with hard break #5679

Ste35 opened this issue Sep 29, 2024 · 0 comments
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

Comments

@Ste35
Copy link

Ste35 commented Sep 29, 2024

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:

  • a line with a link and
  • a following line separated by an hard break (that is a br)

the pasted link "extends" to the first word of the following line and the link pasted is incorrect:
tiptap-issue-1
(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:
tiptap-issue-2

You can also see the same issue in the Tiptap public demo: https://templates.tiptap.dev/
tiptap-issue-3

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

  • Yes, I've updated all my dependencies.
@Ste35 Ste35 added 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 labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant