Make WordPress Core

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#14623 closed enhancement (maybelater)

Dragging Images with captions in Visual Editor causes unintended line breaks

Reported by: iandstewart's profile 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)

#1 @iandstewart
14 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

#2 @koopersmith
13 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.

#3 @dd32
13 years ago

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