WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#14623 closed enhancement (maybelater)

Dragging Images with captions in Visual Editor causes unintended line breaks

Reported by: iandstewart Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: TinyMCE Keywords:
Focuses: Cc:

Description

In the Visual Editor, dragging images with captions into the middle of a paragraph causes unintended splitting of that paragraph. As a suggestion, to avoid confusion between captioned images and uncaptioned images (that aren't wrapped in div tags), captioned images should probably be prevented from dragging inbetween paragraph tags or automatically move just before the opening of a paragraph or just below the closing depending on where they were dropped in a paragraph.

Change History (3)

comment:1 iandstewart4 years ago

  • Summary changed from Dragging Images with captions in Visual Editor causes unitended line breaks to Dragging Images with captions in Visual Editor causes unintended line breaks

comment:2 koopersmith3 years ago

  • Resolution set to maybelater
  • Status changed from new to closed
  • Type changed from defect (bug) to enhancement

If I'm understanding the issue correctly, this is due to the implementation of TinyMCE, which will attempt to insert dragged contents at the point of release. Since the contents in the case contain a div, the p tag is forced to separate.

Bumping the image to the beginning/end of the paragraph would be a bit more usable, but likely isn't worth the investment. Patches welcome.

comment:3 dd323 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.