4
votes

When I paste something in tinymce editor and save it to db it automatically saves all styles related to that copy. I would like only to keep html tags but not css styles. How to achieve this?

2

2 Answers

5
votes

You may use the tinymce init configuration parameter paste_remove_styles

paste_remove_styles: true,

there are even far more settings concerning paste - those you can find here.

2
votes

just add this line

paste_remove_styles: true