I’ve written a WYSIWYG plugin for my BBPress install. It replaces the standard textarea with the TinyMCE WYSIWYG editor based on an option in the user profile.
I’ve incorporated code from Michael D Adams’ ‘Allow Images’ plugin and extended it a little to include paragraph <p> tags and <span> tags.
Everything is working fine, except for one issue that is driving me mad.
When a span with color set in it’s style attribute set, the color: gets stripped out. For example <span style=”color: #ff0000;”> becomes <span style=””>.
I can’t figure this out for the life of me! Other CSS attributes are fine, for example text-align:, background-color:, text-decoration: all work fine.
I’ve tried the following two bits of code with no success:
1. $tags = array(‘style’ => array());
2. $tags = array(‘style’ => array(‘color’ => array()));
Does anyone know if there is a way I can modify this behavior?
This is my first attempt at a plugin, so apologies if I’m missing something obvious here!
- You must be logged in to reply to this topic.