Add Line Break to RTE (Rich Text Editor)

I needed help with formatting text with line breaks for the “send email” action. The issue was that line breaks in the editor were not being reflected in the text output. For example:

[size=3]Hi there,

This is a message[/size]

Would output:

Hi there,
This is a message

I found the reason why this was occurring and wanted to share it. Line breaks and empty spaces are actually built into Bubble, but they get disabled when you use the [size] variables around it.

So instead of the example I provided above, the example below will work as you’d expect due to simply wrapping each individual line of text within the [size] variables:

[size=3]Hi there,[/size]

[size=3]This is a message[/size]

Will correctly output:

Hi there,

This is a message

Hope that helps!

This topic was automatically closed after 70 days. New replies are no longer allowed.