Reputation: 125
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?
Upvotes: 4
Views: 1884
Reputation: 50832
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.
Upvotes: 5
Reputation: 1850
just add this line
paste_remove_styles: true
Upvotes: 2