| <html> |
| <head> |
| |
| <style> |
| body { |
| font-size: 24px; |
| } |
| .editing { |
| border: 2px solid red; |
| padding: 12px; |
| } |
| div { |
| border: 2px solid blue; |
| padding: 12px; |
| } |
| |
| </style> |
| <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| |
| <script> |
| |
| function editingTest() { |
| for (i = 0; i < 4; i++) |
| moveSelectionForwardByCharacterCommand(); |
| insertParagraphCommand(); |
| } |
| |
| </script> |
| |
| <title>Editing Test</title> |
| </head> |
| <body contenteditable id="root"> |
| |
| Test inserting paragraphs: should see an empty blue box above an empty line between "foo" and "bar" |
| |
| <div style="border: none; height: 12px"></div> |
| |
| <p id="test" class="editing">foo</p><br><p class="editing">bar</p> |
| |
| <script> |
| runEditingTest(); |
| </script> |
| |
| </body> |
| </html> |