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?
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.