Text alignment problem with TinyMCE ("style" attribute not allowed with "p" tag in kses.php)
|Reported by:||dreamer12345||Owned by:|
When writing / editing a post with TinyMCE, sometimes centering a text or an image can cause TinyMCE to generate this code:
<p style="text-align: center">
But WordPress 2.2.1 (I'm working with WordPress MU 1.2.3, I suppose this bug affects both versions) does not allow the use of the attribute "style" with the "p" tag, resulting in an impossibility to change the alignment of text / image (in the case where TinyMCE chooses to use the "style" attribute to do the alignment).
I fixed this in my WordPress installation by allowing the "style" attribute with the "p" tag in the wp-includes/kses.php file.
Thank you for your attention (sorry if this bug has already been reported),