Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js |
— | — | @@ -1072,7 +1072,7 @@ |
1073 | 1073 | } else if ( op.type === 'remove' ) { |
1074 | 1074 | // we add one because to remove(3,5) we need to slice(3,6), the ending is last |
1075 | 1075 | // subscript removed + 1. |
1076 | | - tx.pushRemove( this.data.slice( op.start, op.end + 1 ) ); |
| 1076 | + tx.pushRemove( doc.data.slice( op.start, op.end + 1 ) ); |
1077 | 1077 | } else { |
1078 | 1078 | console.log( "this is impossible" ); |
1079 | 1079 | } |