Steps to replicate the issue (include links if applicable):
- From a desktop computer, visit a page with a level-2 heading; click Edit to open VisualEditor. Example.
- Select text in first heading along with some previous text, i.e. last words of introduction text. (e.g. "du xve siècle. Bio" in example page)
- Press Del, Back, or any key to remove or replace the highlighted content.
What happens?:
- The text is not removed/replaced.
- You cannot highlight other text. You cannot type anything anymore.
- JavaScript console displays:
Uncaught Error: Cannot add a child to mwAlienMeta node checkCanInsertNodeType ve.dm.TreeModifier.js:1134 pushMoveNodeOp ve.dm.TreeModifier.js:804 processRetain ve.dm.TreeModifier.js:600 processLinearOperation ve.dm.TreeModifier.js:441 calculateTreeOperations ve.dm.TreeModifier.js:425 process ve.dm.TreeModifier.js:391 process ve.dm.TransactionProcessor.js:110 commit ve.dm.Document.js:391 changeInternal ve.dm.Surface.js:970 change ve.dm.Surface.js:939 change ve.dm.SurfaceFragment.js:125 removeContent ve.dm.SurfaceFragment.js:962 handleInsertion ve.ce.Surface.js:4465 onDocumentKeyPress ve.ce.Surface.js:1752 callListener ve.EventSequencer.js:426 onEvent ve.EventSequencer.js:258 makeEventHandler ve.EventSequencer.js:62 jQuery 2 ve.dm.TreeModifier.js:1134:8
What should have happened instead?:
The text you had selected is removed. If you pressed a letter key, the letter is inserted replacing previous text.