Make WordPress Core

Opened 9 years ago

Closed 6 years 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)

#1 @szotsaki
9 years ago

  • Cc szotsaki added
  • Component changed from General to Editor

#2 @DrewAPicture
9 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 9 years ago by DrewAPicture (previous) (diff)

#3 @hew
9 years ago

Related: #19389

#5 @nacin
8 years ago

  • Component changed from Editor to TinyMCE

#6 @azaozz
6 years 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.