Page MenuHomePhabricator

VisualEditor: Pasting copied template cause it to be inserted twice, once broken
Closed, ResolvedPublic

Description

Steps to reproduce:

  • go to page (for example [1]) that has only this as contents: {{done}}
  • edit the page with visual editor
  • copy/paste the template
  • I was expecting the page now to contain only this text: {{done}}{{done}}
  • instead, the page text is: {{done}}{{done}}<span data-ve-ignore="true"> </span>'''Done.'''
  • that causes "Done." to be displayed three times (instead of two), see screenshot[2]
  • two minute video recording reproducing the bug is available at [3]
  • Sauce Labs is pretty slow to respond, so the actions looks really really slow, the best way to view the video is to download it from [4] and play it with VLC on maximum speed (4x)

1: https://test2.wikipedia.org/wiki/Done
2: https://saucelabs.com/jobs/9dd0291def28413bb7f9ca3a9fd7e891/0001screenshot.png
3: https://saucelabs.com/tests/9dd0291def28413bb7f9ca3a9fd7e891
4: https://saucelabs.com/jobs/9dd0291def28413bb7f9ca3a9fd7e891/video_9dd0291def28413bb7f9ca3a9fd7e891.flv


Version: unspecified
Severity: major

Details

Reference
bz59902