[wp-trac] [WordPress Trac] #11193: aligncenter Broken in Visual Editor When Caption Blank

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 24 06:56:25 UTC 2009


#11193: aligncenter Broken in Visual Editor When Caption Blank
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:  azaozz        
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  TinyMCE       |     Version:  2.8.4         
 Severity:  normal        |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------

Comment(by azaozz):

 It's been a while since I've seen a patch for one of the TinyMCE plugins,
 thanks. It won't be that easy to properly fix this. The current patch
 inserts a <div> inside the wrapping <p> and when you switch to the html
 editor and back it inserts another one inside the <a> tag that is around
 the image, so it ends up looking pretty bad:
 {{{
 <p><div><a><div><img />...
 }}}

 The align center button adds `text-align: center;` directly on the
 wrapping <p> which although not ideal, fixes the annoying IE bug.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11193#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list