Testcase: http://en.wikipedia.beta.wmflabs.org/wiki/T76100_test
Steps to reproduce:
- VE - insert a table and add a caption.
- click in the Caption and type some text and then Insert Media ->the inserted media will be placed inside of the Caption boundaries(a border with thin grey line).
<figure class="ve-ce-mwBlockImageNode ve-ce-mwBlockImageNode-type-thumb mw-default-size ve-ce-branchNode ve-ce-mwBlockImageNode-borderwrap mw-halign-right ve-ce-focusableNode" typeof="mw:Image/Thumb" style="width: 222px; height: auto;" contenteditable="false">
- Save the page - the image gets de-attached from a table's caption(the screenshots are attached).