﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
19389,Subsequent image insertion after captioned image causes breakage,hew,azaozz,"'''Repro (trunk):'''

1. Insert an image with a caption. The Visual Editor should now report a path like this:
{{{
Path: div » dl.wp-caption alignnone » dd.wp-caption-dd
}}}

2. Immediately click ""Add Media"" and insert another image again (don't move cursor or anything else) with another caption. The insertion should mangle the previous image and leave a path like this in the Visual Editor:
{{{
Path: div » dl.wp-caption alignnone » dd.wp-caption-dd » div » dl.wp-caption alignnone » dd.wp-caption-dd
}}}

Bonus: Enter can be pressed in the Visual Editor after step #1. That inserts a new paragraph as expected with the Visual Editor reporting ""Path: p"". Toggle to the HTML editor and then back to the Visual Editor. The caption element is now active (Path: div » dl.wp-caption alignnone » dd.wp-caption-dd) and an insertion at this point will cause chaos (step #2).

'''Repro (3.2.1):'''[[br]]
Same as trunk except that the ""Bonus"" (toggling to HTML and back to Visual) does not apply.

'''Expected behavior:'''
That a subsequent image insertion would be cleanly inserted without requiring manual cursor movement.",defect (bug),closed,normal,3.5,TinyMCE,2.7,normal,fixed,needs-testing,xoodrew@…
