You cannot insert specific line breaks directly into plain text fields in Webflow CMS like you can in a Rich Text field, but there are a few workarounds depending on how you're displaying the content.
\n
or Return key) during rendering. All line breaks are collapsed into a single space when outputted.<br>
tags or paragraph breaks.Enter a custom string, such as [[br]]
, where you want a line break within your plain text field.
Then, use custom code in an Embed element or inside a <script>
block to detect that string and insert <br>
tags in its place.
For example:
Target the element with JavaScript (text.replace
).
Replace [[br]]
with an actual line break (<br>
).
If your content source includes actual line breaks (e.g., typed with Shift+Enter), you can use JavaScript to render them properly.
Example:
JavaScript can parse \n
and replace it with <br>
within the text content dynamically on page load.
Webflow CMS plain text fields do not support line breaks, but you can simulate them using placeholder text and JavaScript, or by switching to a Rich Text field for full formatting control.