Add \r removal for firefox

This commit is contained in:
kwaroran
2024-10-12 19:16:43 +09:00
parent 5c61a870e1
commit 7827ad3432

View File

@@ -269,6 +269,9 @@
}
function insertTextAtSelection(txt:string) {
txt = txt.replace(/\r/g, '')
let div = inputDom;
let sel = window.getSelection();
let text = div.textContent;