#14623 closed enhancement (maybelater)
Dragging Images with captions in Visual Editor causes unintended line breaks
| Reported by: | iandstewart | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | 3.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.