Streaming live at 10am (PST)

How to make a Line break CMS

Do I have to use Richtext in the CMS to make a line break? I would like to decide where certain Line Breaks are.

1 Like

Use cntrl+enter for a new line (break). Works everywhere (Not only in CMS richtexts).

or "shift+enter" (Also the shortcut in microsoft word)

paragraphs-and-line-breaks

https://www.mintox.com/support/wysiwyg-editor/paragraphs-and-line-breaks

<br>

2 Likes

doesn’t work for me… everytime i do a break, the text jumps back to normal

1 Like

With WF’s plain text field, the save in the CMS Item editor (designer) strips all blank lines when saving the collection item. If you added HTML WF would encode it.

The only possible way around this would be to add a HTML Line Break element or something you could target for replacement. If I used <br> for example, which Webflow will encode on publish, then you run a script that decodes the encoded value so the browser would render it.

2 Likes

@webdev Could you please explain more on the decoding process? I’m not quite sure how I’d go about that. Thanks

1 Like

@boafo- The process would be the same as what I have written about (along with a code solution) on my blog. See =>

1 Like

@webdev Thanks for the response I will check this out!

Are you telling me that I have to custom code for a line break? Half of the images in your blog post are not working.

Can you elaborate on what you are trying to accomplish? If inside a RTF you can use a code embed. FYI: I was able to update the post so image issue resolved.

Is there an important step missing from the instructions? There is a line that reads “I added the ‘custom styles’ field binding to the Head”, but no instruction as to what that means or how its accomplished.

It looks like this is only possible on cms pages?

This was super helpful! Thank you.

1 Like