[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 16:22:33 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:  TinyMCE       |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------
Changes (by obenland):

 * keywords:   => has-patch
 * component:  Bundled Theme => TinyMCE


Comment:

 Replying to [comment:10 SergeyBiryukov]:
 > 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; }`.

 Bummer we didn't catch that in 3.9 :(

 But let's make the selector more specific then, rather than removing the
 style resets.

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


More information about the wp-trac mailing list