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]: Unformatted spaces are removed between two formatted words #247

Open
davidnelson777 opened this issue Dec 19, 2024 · 3 comments · May be fixed by #261
Open

[BUG]: Unformatted spaces are removed between two formatted words #247

davidnelson777 opened this issue Dec 19, 2024 · 3 comments · May be fixed by #261

Comments

@davidnelson777
Copy link

davidnelson777 commented Dec 19, 2024

Describe the bug
Any time you have two words with bold, italic, underline, etc, formatting on them and a space between them without any of that format, it is removed when used as the initialContent for the editor.

To Reproduce

  1. Create a string with test test
  2. Use this as initial content for the editor
  3. Notice the space is gone

Expected Behavior
Spaces should not be removed

@canlongdifisoft102
Copy link

i have the same problem

@davidnelson777
Copy link
Author

This appears to be where they fixed it in tiptap: https://github.com/ueberdosis/tiptap/pull/4838/files Does that mean I just need to update the core dependency or...?

@davidnelson777
Copy link
Author

davidnelson777 commented Feb 4, 2025

I created a PR to fix the issue! Fix: Updates tiptap/core dependency to fix space trim issue #261
It's my first time contributing to open source, so let me know if there's any problems!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants