Page MenuHomePhabricator

Pasting formatted code at the end of a paragraph breaks cursor positioning
Open, Stalled, Needs TriagePublic0 Story Points


  1. Open an article in 2017 wikitext editor.
  2. From another article, copy text which only contains the bold style
  3. Place the cursor at the end of a paragraph, and paste with Ctrl+V.
  4. The text is not copied.
  5. For as long as the clipboard contains text with bold style, clicking anywhere in the editor doesn't move the cursor, although occasionally it extends the selection from the paste point to the place you've clicked.

Reproduced in Firefox and Chrome. It works fine if you paste the same selection as unformatted text with Ctrl+Shift+V.

Event Timeline

Restricted Application added a project: VisualEditor. · View Herald TranscriptFeb 15 2017, 11:03 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dialmove updated the task description. (Show Details)Feb 15 2017, 11:04 AM

The console shows:

TypeError: annotation is undefined

  • openAnnotation()
  • ve.ce.ContentBranchNode.prototype.getRenderedContents()
  • ve.ce.ContentBranchNode.prototype.renderContents()
  • ve.ce.ContentBranchNode.prototype.onChildUpdate()
  • oo.EventEmitter.prototype.emit()
Jdforrester-WMF changed the task status from Open to Stalled.Mar 25 2017, 2:02 AM
Jdforrester-WMF set the point value for this task to 0.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

I'm unable to reproduce. I've copied both text that is entirely bold and text that is partially bold and neither has crashed. Have we fixed it since your report?