Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js |
— | — | @@ -259,7 +259,8 @@ |
260 | 260 | var node, |
261 | 261 | index, |
262 | 262 | offset; |
263 | | - if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) ) { |
| 263 | + |
| 264 | + if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) && this.cursor != this.model.data.length ) { |
264 | 265 | // FIXME: This fails when inserting something like </list><list> between 2 list items |
265 | 266 | // @see test #30 in es.TransactionProcessor.test.js |
266 | 267 | es.insertIntoArray( this.model.data, this.cursor, op.data ); |