Formatting Custom Form text fields


(Oliver Kass) #1

Hi,

 

Has anyone managed to successfully implement a WYSIWIG editor into custom form text fields? I can get it working on the front end but can't get the submission action emails to accept the new HTML. i.e. it just prints the html as text alongside the copy like the below...

 

<p style=&quot;text-align: justify; line-height: 14px; margin: 0px 0px 14px; padding: 0px; font-family: Arial, Helvetica, sans;&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consectetur fermentum magna, non lobortis lacus pulvinar at. Aliquam in dictum urna, non porta nibh. Praesent lobortis ullamcorper orci, non vehicula risus volutpat sed. Nunc nisl eros, volutpat et ultrices vel, ullamcorper id elit. Vivamus et massa bibendum, consequat tortor eget, lobortis metus.</p>
 
Thanks
 
Oli

 

 


(Oliver Kass) #2

It seems I was barking up the wrong tree with this. A simple keyword modifier helps to preserve the text-area formatting:

 

^nl2br

 

Oli