| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <style> | |
| 5 .editing { | |
| 6 border: 2px solid red; | |
| 7 padding: 12px; | |
| 8 font-size: 24px; | |
| 9 } | |
| 10 </style> | |
| 11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 12 | |
| 13 <script> | |
| 14 | |
| 15 function editingTest() { | |
| 16 for (i = 0; i < 76; i++) | |
| 17 moveSelectionForwardByCharacterCommand(); | |
| 18 for (i = 0; i < 2; i++) | |
| 19 extendSelectionForwardByCharacterCommand(); | |
| 20 copyCommand(); | |
| 21 pasteCommand(); | |
| 22 pasteCommand(); | |
| 23 } | |
| 24 | |
| 25 </script> | |
| 26 | |
| 27 <title>Editing Test</title> | |
| 28 </head> | |
| 29 <body contenteditable id="root"> | |
| 30 | |
| 31 <div class="editing" id="test">Omitted, all the voyage of their life,<div class=
"editing">Is bound in shallows and in miseries.</div>Upon such a full sea are we
now afloat,</div> | |
| 32 | |
| 33 <script> | |
| 34 runEditingTest(); | |
| 35 </script> | |
| 36 | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |