Aggressive Line-Breaking with Hyphens and Multiple Spaces #7791
Unanswered
mohitbhrgv
asked this question in
General Questions
Replies: 1 comment 2 replies
|
Hi, can you create an issue? Also, can you provide us with a code snippet on how you've initialized the editor + extensions, so we can reproduce? Any extra info is very useful to us |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the Tiptap editor, text breaks unexpectedly around hyphens and multiple spaces.
Steps to Reproduce:
Type Hand-Wash → text after the hyphen moves to the next line even when space is available.
Insert double spaces between words → text after the spaces jumps to the next line prematurely.
Expected Behavior:
Hyphenated words should stay on the same line unless space runs out.
Multiple spaces should not trigger early line breaks.
Impact:
This makes certain phrases difficult to read and edit.
Environment:
Tiptap version: [3.22.5]
Browser/OS: [Chrome/Window]
All reactions