Hi,
I’m not able to create line breaks in editor for a header tag or paragraph. In collection template these are set as multiline plain texfields. I’m able to create line breaks backend in the collection item, but they are not showing up frontend or in editor. This works fine on none collection pages.
Hi @biodust, I am sorry to hear about the trouble with the line breaks. I would like to understand better the issue, would it be possible for you to share the read-only link to the site, the page where the issue is happening, and if possible, a screenshot of the element that needs the line break in the designer?
@cyberdave thanks for looking into it.
It’s the H3 tag here I’m referring to. Paragraph below had also same issue but changed it to rich text. Would really like to able to change it back to only paragraph.
Hi @biodust, thanks for the bump on this. I have done checking and have been able to reproduce this behavior, it seems the multi-line is not working on the paragraph and header elements.
The issue has been reported to the dev team and as soon as I have an update, I will inform immediately.
Just as a note, if there was a way to set the “white-space” css property to “pre” it includes line breaks as expected. As far as I know this property isn’t available in the editor (yet?), but should be possible to fix with some custom code.
Edit:
Just confirmed this to be working for me (put it in the head custom code):
<style>
p.myclass{
white-space:pre;
}
</style>
Doesn’t show up in the designer, but as soon as you publish and preview it, it works as expected.
Thanks for the tip @marza
I tested it, and unfortunately it did not work…then only thing that happened was that text didn’t break within the the h3 and got pushed outside the h3 bounding box.