mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 15:31:22 +02:00
dont jump to next part when inserting at *start* of uneditable part
This commit is contained in:
parent
3468cef654
commit
23465c696f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user