add style-level screening to clean_html!

Ticket

+tags
+commit
 

we are currently stripping inline style attributes on save.  this gets rid of lots of undesired stuff like fonts and such but also many things that are often desirable, like strike-through.  And these style attributes are used by tinyMCE, so stripping them means many tinyMCE options won't work.

 

if we make it configurable (to developers and eventually to wagneers) to choose which style settings can and can't be used, we can improve signal to noise here.

 

 

note: requested by Meyer Trust.


note that this would allow us to stop supporting CSS in inclusions (which is patently ugly imo).

 

For example, we could use tinyMCE's alignment tools to add right floats (by far the most common CSS).

  --Ethan McCutchen.....2013-03-27 16:40:16 +0000