Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<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>