Add \r removal for firefox
This commit is contained in:
@@ -269,6 +269,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function insertTextAtSelection(txt:string) {
|
function insertTextAtSelection(txt:string) {
|
||||||
|
|
||||||
|
txt = txt.replace(/\r/g, '')
|
||||||
|
|
||||||
let div = inputDom;
|
let div = inputDom;
|
||||||
let sel = window.getSelection();
|
let sel = window.getSelection();
|
||||||
let text = div.textContent;
|
let text = div.textContent;
|
||||||
|
|||||||
Reference in New Issue
Block a user