Page MenuHomePhabricator

VisualEditor: Inserting text content around inline alien nodes throws an exception
Closed, ResolvedPublic

Description

Specifically it fails when trying to insert text content between two inline aliens or after last inline alien inside its parent.

Exception:
Uncaught TypeError: Cannot read property 'start' of undefined ve.dm.TransactionProcessor.js:259
ve.dm.TransactionProcessor.processors.replace

// Set change markers on the parents of the affected nodes
for ( i = 0; i < selection.length; i++ ) {
this.setChangeMarker(

		selection[i].parentOuterRange.start + this.adjustment,
		'content'

);
}


Version: unspecified
Severity: normal

Details

Reference
bz42212

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:12 AM
bzimport set Reference to bz42212.

It also happens when inserting text content before inline alien if that alien is a first child of its parent.