We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When copying and pasting content in the rich text editor, hitting return causes the last piece of pasted text to strip all new lines.
Lexical version: ^0.7.4
console.log($getRoot().getTextContent())
Link to code example: Example Project
Lines are being concatenated when reading $getRoot().getTextContent()
Text should maintain line breaks when reading $getRoot().getTextContent()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When copying and pasting content in the rich text editor, hitting return causes the last piece of pasted text to strip all new lines.
Lexical version: ^0.7.4
Steps To Reproduce
console.log($getRoot().getTextContent())
in an `onChange handler.Link to code example: Example Project
The current behavior
Lines are being concatenated when reading $getRoot().getTextContent()
The expected behavior
Text should maintain line breaks when reading $getRoot().getTextContent()
Screen.Recording.2022-12-20.at.16.33.51.mov
The text was updated successfully, but these errors were encountered: