OLD | NEW |
---|---|
(Empty) | |
1 <div id="div" contenteditable="true"></div> | |
2 | |
3 <script> | |
4 div = document.getElementById("div"); | |
5 div.focus(); | |
6 document.execCommand("InsertText", false, "foo"); | |
7 document.execCommand("Delete"); | |
8 document.execCommand("Undo"); | |
9 </script> | |
OLD | NEW |