Merge "Strip trailing linebreaks on paste due to Chrome bug"

This commit is contained in:
jenkins-bot 2013-12-17 18:53:09 +00:00 committed by Gerrit Code Review
commit b5a3cfe30c

View file

@ -1058,6 +1058,10 @@ ve.ce.Surface.prototype.afterPaste = function () {
right--;
context.splice( context.getLength() - 1, 1 );
}
// HACK: Strip trailing linebreaks probably introduced by Chrome bug
while ( data.getType( right - 1 ) === 'break' ) {
right--;
}
contextRange = new ve.Range( left, right );
}