Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | this.applyAnnotations( this.cursor + op.data.length ); |
192 | 192 | node = this.model.getNodeFromOffset( this.cursor ); |
193 | 193 | offset = this.model.getOffsetFromNode( node ); |
194 | | - index = node.getIndexFromOffset( this.cursor + offset ); |
| 194 | + index = node.getIndexFromOffset( this.cursor - offset ); |
195 | 195 | this.rebuildNodes( op.data, null, node, index ); |
196 | 196 | } else { |
197 | 197 | node = this.model.getNodeFromOffset( this.cursor ); |