Skip to content

How to handle <br> tags? #305

Answered by thibaudcolas
Hereward asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Hereward 👋 Draft.js stores br tags as line breaks (\n). Here you have these configured to be transformed into spaces: whitespacedCharacters: ["\n", "\t", "📷"]. I think this would work as you expect if you remove the \n from that list.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thibaudcolas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #49 on June 06, 2022 04:05.