Page MenuHomePhabricator

VisualEditor: Gallery code gets added in the Table of Content and gets overlapped with the next item in the VE mode
Open, MediumPublic

Description

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:

  1. The text inside gallery inspector gets overlapped with the heading
  2. 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:

Screen_Shot_2014-03-21_at_4.24.56_PM.png (514×1 px, 80 KB)

Details

Reference
bz62943