user1750290
user1750290

Reputation: 125

tinymce - how to disable smart paste

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

Answers (2)

Thariama
Thariama

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

Er KK Chopra
Er KK Chopra

Reputation: 1850

just add this line

paste_remove_styles: true

Upvotes: 2

Related Questions