document.execCommand("InsertText", false, "The caret should be at the end of this sentence.");
document.execCommand("Undo");
document.execCommand("Redo");
document.execCommand("InsertText", false, "The caret should be at the end of this sentence.");
document.execCommand("Undo");
document.execCommand("Redo");