[Bug]: Newline characters are replaced with spaces when any key is pressed #5501
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
Affected Packages
core, react
Version(s)
2.5.9
Bug Description
When newline (\n) characters are inserted into the editor, any change to the editor content immediately replaces all of them with spaces.
To reproduce:
Hit enter a few times in the editor to create some newlines.
Type any other character.
Note:
preserveWhitespace
doesn't seem to have any impact here.Browser Used
Chrome
Code Example URL
No response
Expected Behavior
I expect newlines to be preserved, at least if preserveWhitespace is enabled.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: