<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function onLoad() { // For emulating the traditional behavior, collapse Selection to end of the // <td> which is the deepest last child of the <body>. getSelection().collapse( document.querySelector("td"), document.querySelector("td").childNodes.length ); try { document.execCommand("removeformat"); } catch(e) {} document.adoptNode(document.documentElement); } </script> </head> <body onload="onLoad();"><td contenteditable="true"/></body> </html>