dont jump to next part when inserting at *start* of uneditable part

pull/21833/head
Bruno Windels 2019-05-23 10:11:46 +02:00
parent 3468cef654
commit 23465c696f
1 changed files with 3 additions and 2 deletions

View File

@ -232,8 +232,9 @@ export default class EditorModel {
index += 1;
this._insertPart(index, splitPart);
}
} else {
// not-editable, insert str after this part
} else if (offset !== 0) {
// not-editable part, caret is not at start,
// so insert str after this part
addLen += part.text.length - offset;
index += 1;
}