Force Plaintext paste in the Rich Text Editor

Hello together,

i need a JS to force plain text paste in the richtext editor. Currently when i copy a HTML and paste it to the editor it has the origin html format.

Does anyone have an idea? Many thanks in advance!
Timo

1 Like

Indeed, good suggestion.
The users of my app like to make document texts in Word and then always paste with Word codes - and that is messy.
Forcing plain text only would really make life easy for the document owner/manager so he doesn’t have to clean the text up.

Do you have to use the Rich Text Editor? You could just convert the field to “Long Text” and it would do exactly as you want.

If you need the Rich Text as a field for other uses after they paste the data you could create a Rule to copy the Long Text to the Rich Text when the record is created or updated.

Yes I have to use the rich text editor. To use the longtext as intermediate is creating an extra step I don’t see the need for, when there is a JS solution. @beaugast