How do I copy the spacing from my form's message box to make.com and back to webflow cms rte

I’m building a marketplace where users can create a post on the site via a form, send the data to make/integromat, and then create a cms item using that data. My problem is that when I’m filling out the form and I get to the description box for that listing (I’m using the native webflow “text area” ), that data gets sent to integromat and the cms item is made, but it all comes in one straight line. All the “next lines” for that data doesn’t copy along into the Rich Text Element. its just one long line without the formatting
Is there a custom code i can use either on webflow or through integromat to make sure that any new line on the text area is also there in the rich text field of the cms?
thanks


Interesting!!

You could take advantage of contenteditable and see if you can make that work:

Which has this handy attribute to turn off so that RT formatting is turned on:

plaintext-only, which indicates that the elements raw text is editable, but rich text formatting is disabled.

You could try one or more combinations of:

white-space: pre-line; whitespace trimmed to single whitespace or
white-space: pre-wrap; all whitespace preserved
overflow-wrap: break-word;

You could also try the HTML tags:

<pre></pre>

You could also tap into an HTML Beautifier via an API from Make. Something like this: Best HTML Viewer, HTML Beautifier, HTML Formatter and to Test / Preview HTML Output

You can also look into Make string functions (and other available functions):


Without testing too much of this myself I’d think a combination of a few of these solutions could possible meet your needs.

@ChrisDrit Thank you. I’ll look into these solutions

1 Like