Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#32007 closed defect (bug) (fixed)

Twenty Fifteen: Image captions are shifted down in TinyMCE

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 4.2 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

Happens only in Firefox as the caption <dt> is padded with <br data-mce-bogus="1"> (like any other empty block element in the editor).

Caused by a img { display: block } in the theme's editor-style.css.

Attachments (1)

caption-in-firefox.png (133.4 KB) - added by azaozz 9 years ago.

Download all attachments as: .zip

Change History (9)

#1 @azaozz
9 years ago

Not sure why images that are wrapped in links have to be display:block inside the editor. Removing that doesn't seem to break anything.

Last edited 9 years ago by azaozz (previous) (diff)

#2 @SergeyBiryukov
9 years ago

  • Summary changed from Image captions are shifter down when Twenty Fifteen is used to Twenty Fifteen: Image captions are shifted down in TinyMCE

This ticket was mentioned in Slack in #core-editor by azaozz. View the logs.


9 years ago

#6 @DrewAPicture
9 years ago

  • Owner set to azaozz
  • Status changed from new to reviewing

This ticket was mentioned in Slack in #core by drew. View the logs.


9 years ago

#8 @azaozz
9 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 32231:

Twenty Fifteen: remove a img { display: block; } from editor-style.css. Matches previous changes to style.css and fixes extra space when displaying captions in Firefox.
Fixes #32007.

Note: See TracTickets for help on using tickets.