Screenshot
Steps to reproduce:
1.Open a page with VE
2.Insert a gallery
3.Select the gallery
4.Open a Math Formula window.
5.Type something on the editor
Observed Result:
The math function appears inside gallery .However, if you close the math inspector it will place the math function properly after the gallery not inside it.
See the screenshot attached.
Test Environment: https://test2.wikipedia.org/
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5
Page:https://test2.wikipedia.org/w/index.php?title=3rdfebFF&veaction=edit
Version: unspecified
Severity: normal
Attached: