Make WordPress Core

Opened 4 years ago

Closed 21 months ago

#18134 closed defect (bug) (worksforme)

TinyMCE messes up text when its "caption" contains only a space

Reported by: szotsaki Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: TinyMCE Keywords: needs-patch
Focuses: Cc:


1.) Have a long text
2.) Insert an image inside there with no link pointing anywhere and a caption that contains only a space
3.) Make some <dl>-s, numbered lists etc after that
4.) Insert a new image with full size also, and a caption with only a space.

After this everything is messed up. The whole text before the second image becomes the caption of the first image and the second image disappears.

Change History (6)

comment:1 @szotsaki4 years ago

  • Cc szotsaki added
  • Component changed from General to Editor

comment:2 @DrewAPicture4 years ago

  • Keywords needs-patch added
  • Version set to 3.2.1

Reproduced this in 3.2.1 and latest trunk, haven't tried earlier versions.

Last edited 4 years ago by DrewAPicture (previous) (diff)

comment:3 @hew4 years ago

Related: #19389

comment:5 @nacin3 years ago

  • Component changed from Editor to TinyMCE

comment:6 @azaozz21 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Seems fixed in 3.5 (with the new media modal). Empty captions (containing only white space) are not inserted any more, only the image is inserted.

Note: See TracTickets for help on using tickets.