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]: Inconsistent text between the editor and the plain text #5095

Open
1 of 2 tasks
VladislavRUS opened this issue Apr 25, 2024 · 1 comment
Open
1 of 2 tasks

[Bug]: Inconsistent text between the editor and the plain text #5095

VladislavRUS opened this issue Apr 25, 2024 · 1 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

Comments

@VladislavRUS
Copy link

VladislavRUS commented Apr 25, 2024

Which packages did you experience the bug in?

react, @blocknote/react

What Tiptap version are you using?

2.0.3

What’s the bug you are facing?

If user edits text in the editor and moves (select/copy/insert) paragraphs a little bit then he can ends up in a situation when he sees only 1 new line in the editor but there will be 3 new lines in plain text that is extracted via getText()

Screenshot 2024-04-25 at 18 33 40

What browser are you using?

Chrome

Code example

https://stackblitz.com/edit/github-yztwza?file=App.tsx

What did you expect to happen?

I expected editor to correctly display 3 new lines same as in plain text

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@VladislavRUS VladislavRUS 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 Apr 25, 2024
@hivokas
Copy link
Contributor

hivokas commented Apr 29, 2024

@VladislavRUS seems to be related: #5055 (comment)

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

No branches or pull requests

2 participants