Hi, I'm trying to create a email composer and I'm having trouble with the formatting.
The textinput ignores any new line.
The rich text editor instead uses <p>
instead of <br>
:
Is it possible to have simple <br>
for new lines?
In the meantime seems working with some replace, but I'm not sure it's the best approach.
text.replace('<p>', '').replaceAll('<br>', '').replaceAll('<p>', '<br>').replaceAll('</p>', '')
Thanks
+1 on this issue.
It doesn't make sense for tags to be wrapped in
tags. A workaround that worked for me was simply removing the tags since
tags make a new line anyway.
While this might be the best approach for now, I don't think it should be made this way.
Tess
February 27, 2024, 10:41pm
3
We'll post here if our team ships a more permanent fix aside from these workarounds!
Yep this one is annoying, I have html tags in the default value, it renders in the rich text area, but when actually passing the value to an API it's modifying the html. Removing tags, adding paragraph tags etc...