I am using execCommand with javascript to insert text into editable iframes like this:

element.execCommand("insertHTML",false,"some text");

Anyone know how to insert that text instead of the first character to the left of the cursor? So the same effect as pressing a backspace before doing the above?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top