Fix Android Keyboards

This commit is contained in:
Henk 2022-04-10 09:04:31 +02:00
parent 8153f21d5c
commit b3fea7f526

View File

@ -1325,9 +1325,7 @@ function chunkOnBeforeInput(event) {
document.execCommand('delete');
}
var s = rangy.getSelection();
if(!s.isCollapsed) {
s.deleteFromDocument();
}
if(buildChunkSetFromNodeArray(getSelectedNodes()).size === 0) {
var s = rangy.getSelection();
var r = s.getRangeAt(0);