WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#32007 closed defect (bug) (fixed)

Twenty Fifteen: Image captions are shifted down in TinyMCE

Reported by: azaozz Owned by: 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 4 years ago.

Download all attachments as: .zip

Change History (9)

#1 @azaozz
4 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 4 years ago by azaozz (previous) (diff)

#2 @SergeyBiryukov
4 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.


4 years ago

#6 @DrewAPicture
4 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.


4 years ago

#8 @azaozz
4 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.