| <body style="font-weight: bold;" id="div" contenteditable="true"><img src="../resources/abe.png"></body> |
| |
| <script> |
| var body = document.body; |
| var sel = window.getSelection(); |
| sel.setBaseAndExtent(body, 0, body, body.childNodes.length); |
| |
| document.execCommand("Copy"); |
| sel.setPosition(body, body.childNodes.length); |
| document.execCommand("Paste"); |
| document.execCommand("Paste"); |
| document.execCommand("InsertLineBreak"); |
| document.execCommand("InsertText", false, "This tests for a bug where an images pasted on the same line would appear on different lines. You should see several pictures above all in the same line/paragraph."); |
| </script> |