<script> | |
if (window.testRunner) | |
testRunner.dumpEditingCallbacks(); | |
</script> | |
<p>This tests InsertParagraphSeparator inside table cells. 'Cell' and 'Two' should be on separate lines.</p> | |
<div contenteditable="true"><table border="1"><tr><td>Cell One</td><td>Cell<span id="test">Two</span></td></tr></table></div> | |
<script> | |
var e = document.getElementById("test").firstChild; | |
var s = window.getSelection(); | |
s.setPosition(e, 0); | |
document.execCommand("InsertParagraph"); | |
</script> |