need to learn: wordpress remove styles

There has to be a way to add a button to tinymce to strip out all the style=”bla” information before it gets posted. The remove formatting eraser is nice, but i want something more because sometimes it’s not enough.

This is my current starting point

Related Posts:

  • No Related Posts
This entry was posted in Web Development. Bookmark the permalink.

2 Responses to need to learn: wordpress remove styles

  1. Marc says:

    sweet, thanks!

  2. Here’s how to do it with TinyMCE.

    The valid_elements string is the Full XHTML rule set taken from here, but with ‘style’ removed from every tag in the rule set.

Leave a Reply

Your email address will not be published. Required fields are marked *