Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js |
— | — | @@ -275,7 +275,8 @@ |
276 | 276 | // Update the linear model |
277 | 277 | this.model.data.splice( this.cursor, op.data.length ); |
278 | 278 | // Emit an update so things sync up |
279 | | - node.emit( 'update', this.cursor ); |
| 279 | + var offset = this.model.getOffsetFromNode( node ); |
| 280 | + node.emit( 'update', this.cursor - offset ); |
280 | 281 | } |
281 | 282 | }; |
282 | 283 | |