Page MenuHomePhabricator

Cursor repositions itself at the beginning of the article and throws error "TypeError: oldChunks[((oldChunks.length - 1) - change.end)] is undefined" while trying to type something before a an external link
Closed, DuplicatePublic


Steps to reproduce:

  1. Open a page

2.Insert an external link

  1. Place your cursor right before the added link node
  2. Type something

Observed Result:
The typed letters started appearing at the beginning of the article and there are errors in the console:
TypeError: oldChunks[((oldChunks.length - 1) - change.end)] is undefined (line 426, col 112)
Error: Opening element for node that cannot have children must be followed by closing element

Screen Shot 2015-12-10 at 11.55.00 AM.png (718×1 px, 335 KB)

Event Timeline

Ryasmeen raised the priority of this task from to Needs Triage.
Ryasmeen updated the task description. (Show Details)
Ryasmeen added a project: VisualEditor.
Ryasmeen added a subscriber: Ryasmeen.