Merge branch 'KoboldAI:main' into united
This commit is contained in:
commit
9ac47f6f54
|
@ -1359,9 +1359,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);
|
||||
|
|
Loading…
Reference in New Issue