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

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 20 01:38:19 UTC 2009


#11193: aligncenter Broken in Visual Editor When Caption Blank
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:  azaozz     
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.9        
Component:  TinyMCE       |     Version:  2.8.4      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 I assume this is a bug in the editor or the admin style sheets.  If I
 upload two images, set them both to align center, and only type a caption
 for one of them, then the one with the caption will be centered, and the
 other will be left aligned.

 In other words, this works:

 {{{
 [caption align="aligncenter"]<img />[/caption]
 }}}

 This does not work:

 {{{
 <img class="aligncenter" />
 }}}

 The workaround is to click the Preview button, in which case both are
 aligned center according to my theme.

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


More information about the wp-trac mailing list