Hi, didn't want to reopen #553104: Why is my img tag class attribute keep stripping out where this started, so let me post this in a separate issue:

Im wondering why isn't it possible to allow all class names that fall under a-z0-9-_* ? Basically if I wanted to do that now, I would need to write some 35 rules like a*, b*, c*... why not allow people to do just.. * everything or something?

Comments

rajmataj’s picture

Agreed. This is sorely needed in order to make this module a practical choice.

markus_petrux’s picture

Category: support » feature
Status: Active » Closed (duplicate)
texas-bronius’s picture

Issue summary: View changes

For anyone looking for a way to whitelist all css class names in wyswig_filter, lacking regular expression, here's the closest I've come so far (providing not as a super solution but as a simple one you can copy/paste):
In the HTML Elements and Attributes, be sure to include:
@[class],
and in the Rules for CSS Class Names have:
a*,b*,c*,d*,e*,f*,g*,h*,i*,j*,k*,l*,m*,n*,o*,p*,q*,r*,s*,t*,u*,v*,w*,x*,y*,z*
Also note that unlike core html filter, the changes are not immediately available on refresh of the node. I don't know whether clearing cache will do it, but definitely editing and saving with no changes will.