while (script = document.querySelector('script'))
script.parentNode.removeChild(script);
-getSelection().setPosition(document.body, 0);
+getSelection().collapse(document.body, 0);
document.execCommand("InsertImage",false);
document.execCommand("Indent");
document.execCommand("Bold");