17 lines
499 B
HTML
17 lines
499 B
HTML
<style>
|
|
* { display: table-caption }
|
|
body { display: contents }
|
|
</style>
|
|
<script>
|
|
function onLoad() {
|
|
// For emulating the traditional behavior, collapse Selection to end of the
|
|
// text node in the <th> which is the deepest last child of the <body>.
|
|
const th = document.querySelector("th");
|
|
getSelection().collapse(th.lastChild, th.lastChild.length);
|
|
document.execCommand("enableInlineTableEditing");
|
|
}
|
|
</script>
|
|
<body onload="onLoad()">
|
|
<table contenteditable>
|
|
<th>
|
|
</th></table></body>
|