function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Troy StoneTroy Stone 

How to default unformatted text to "normal" so it has <p> tags around it in the RTE?

Hello all;

Is there a way to default unformatted text typed in the RTE to automatically surround it with <p> tags? 

Thank you.
Andy BoettcherAndy Boettcher
Procedurally:  Honestly, I take most text I am copy/pasting from anything into Notepad (specifically Notepad...) first so all formatting and weird stuff is stripped out, then copy/paste from there to Salesforce.

Systemically:  The RTE stores HTML - you could use a insert/update trigger to interrogate that field and do the replacement as you wish.