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]: Link Extension Issue After Line Break in Google Chat #5335

Open
1 task done
giuseppeagostini-hotmart opened this issue Jul 12, 2024 · 2 comments
Open
1 task done
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

@giuseppeagostini-hotmart
Copy link

giuseppeagostini-hotmart commented Jul 12, 2024

Affected Packages

core, react

Version(s)

v2.0.4

Bug Description

Gravacao.de.Tela.2024-07-12.as.15.32.14.mov

Good afternoon, I am experiencing an issue, and it is also occurring on the tiptap platform(as shown in the video). Using Google Chat, I sent a test message to myself with two links, one from Google and one from Yahoo. The problem is as follows: when I have a link, followed by a line break, the link extends into the next word after the line break, making the link invalid.

First test:
One: https://www.google.com/
Two: https://www.yahoo.com/

As shown in the video, in the above example, the first link generates an error because it concatenates the line break and the first word (two) into the link. However, in the example below, everything works correctly.

Second test:
One: https://www.google.com/ x
Two: https://www.yahoo.com/ y

Browser Used

Chrome

Code Example URL

https://templates.tiptap.dev/9PPbJz7h9d

Expected Behavior

After fixing this issue, links should not extend into the next word after a line break. Each link should remain valid and separate from any text following a line break. For instance, in the first test, the link to Google should remain as https://www.google.com, without including the word "Two" or any subsequent text. This behavior should be consistent regardless of the position of line breaks and surrounding text.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@giuseppeagostini-hotmart giuseppeagostini-hotmart 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 Jul 12, 2024
@github-project-automation github-project-automation bot moved this to Triage open in Tiptap Jul 12, 2024
@giuseppeagostini-hotmart
Copy link
Author

giuseppeagostini-hotmart commented Jul 15, 2024

Is this the last version?

"@tiptap/extension-bubble-menu": "^2.5.1",
"@tiptap/extension-character-count": "^2.5.1",
"@tiptap/extension-floating-menu": "^2.5.1",
"@tiptap/extension-link": "^2.5.1",
"@tiptap/extension-placeholder": "^2.5.1",
"@tiptap/extension-underline": "^2.5.1",
"@tiptap/pm": "^2.5.1",
"@tiptap/react": "^2.5.1",
"@tiptap/starter-kit": "^2.5.1"
Gravacao.de.Tela.2024-07-15.as.15.18.04.mov

Does the video editor always follow the latest version? As shown in the video, the error continues. I updated my application to 2.5.1, and the error also continues

@giuseppeagostini-hotmart

This comment was marked as duplicate.

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
No open projects
Status: Triage open
Development

No branches or pull requests

1 participant