[wp-trac] [WordPress Trac] #28681: Removes Margin from Editor Style as it overrides CSS in editor style

WordPress Trac noreply at wordpress.org
Sat Jul 12 02:19:07 UTC 2014


#28681: Removes Margin from Editor Style as it overrides CSS in editor style
---------------------------+------------------
 Reporter:  RDall          |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  4.0
Component:  Bundled Theme  |     Version:  3.9
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:8 obenland]:
 > Okay, that's a Twenty Thirteen bug then, where the editor styles need to
 be more specific.
 > A center-aligned caption in `_s` and Twenty Fourteen is center aligned.

 We had to fix it for Twenty Fourteen in [28941]. Twenty Thirteen doesn't
 have that style and uses the default one.

 I think the point of this ticket is that center-aligned images with
 captions should be displayed correctly in TinyMCE regardless of the theme.
 Currently, `.html5-captions .wp-caption { margin: 0; }` in default styles
 overrides `.aligncenter { margin-left: auto; margin-right: auto; }`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28681#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list