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 Owned by: azaozz
Priority: normal Milestone: 4.7
Component: TinyMCE Version: 4.6
Severity: normal Keywords:
Cc: Focuses:

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
  • Resolutionfixed
  • Status newclosed

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.