Screenshot
Steps to reproduce:]
1.Open a page with VE
2.Select the whole line just preceding a Heading
3.Insert a gallery with some invalid code: for example:
An example image. It has flowers and flowers It has flowers and flowersIt has flowers and flowersIt has flowers and flowersIt has flowers and flowersIt has flowers and flowers
Observed Result:
- The text inside gallery inspector gets overlapped with the heading
- After saving you will see the gallery code got inserted in the TOC
3.The heading got converted to paragraph format
4.The gallery code is appearing just beside the heading in paragraph format ( in addition to appearing inside the gallery)
See the screenshot attached
Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Newpagetocheck62934
Version: unspecified
Severity: normal
Attached: