mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Temporary fix for insert method in TransactionProcessor
This commit is contained in:
parent
37d3b7ceac
commit
224fc98449
|
@ -259,7 +259,8 @@ es.TransactionProcessor.prototype.insert = function( op ) {
|
|||
var node,
|
||||
index,
|
||||
offset;
|
||||
if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) ) {
|
||||
|
||||
if ( es.DocumentModel.isStructuralOffset( this.model.data, this.cursor ) && this.cursor != this.model.data.length ) {
|
||||
// FIXME: This fails when inserting something like </list><list> between 2 list items
|
||||
// @see test #30 in es.TransactionProcessor.test.js
|
||||
es.insertIntoArray( this.model.data, this.cursor, op.data );
|
||||
|
|
Loading…
Reference in a new issue