[wp-trac] [WordPress Trac] #4667: Text alignment problem with
TinyMCE ("style" attribute not allowed with "p" tag in kses.php)
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 24 15:02:07 GMT 2007
#4667: Text alignment problem with TinyMCE ("style" attribute not allowed with "p"
tag in kses.php)
--------------------------+-------------------------------------------------
Reporter: dreamer12345 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2.2
Component: TinyMCE | Version: 2.2.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Hi,
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),
Frederic.
--
Ticket URL: <http://trac.wordpress.org/ticket/4667>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list