Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#38313 closed defect (bug) (fixed)

TinyMCE: using the "Indent" or "Outdent" buttons on image with a caption breaks the caption elements.

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.6
Component: TinyMCE Keywords:
Focuses: Cc:

Description

When using one of these buttons the caption <dt> is changed to <dd>. This can also result in the user typing in the caption wrapper div which is removed on saving, so part of the content may be lost (will need restoring from autosave, etc.).

Change History (1)

#1 @azaozz
10 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 38796:

TinyMCE:

  • Prevent applying Indent and Outdent while an image with a caption is selected. It doesn't do anything and breaks the caption elements.
  • Keep all of the text when a caption <dl> was somehow changed.

Fixes #38313.

Note: See TracTickets for help on using tickets.