| <html> | |
| <head> | |
| <style> | |
| .editing { | |
| border: 2px solid red; | |
| padding: 12px; | |
| font-size: 24px; | |
| } | |
| </style> | |
| <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> | |
| <script> | |
| function editingTest() { | |
| var selection = window.getSelection(); | |
| selection.setPosition(document.getElementById("selStart"), 0); | |
| extendSelectionForwardByLineCommand(); | |
| extendSelectionForwardByLineCommand(); | |
| justifyCenterCommand(); | |
| fontSizeDeltaCommand(); | |
| } | |
| </script> | |
| <title>Editing Test</title> | |
| </head> | |
| <body id="root" contenteditable> | |
| <div id="test" class="editing"> | |
| <table> <tr> <td id="selStart"> foo </td> </tr> <tr> <td id="selEnd"> bar </td> </tr> </table> | |
| </div> | |
| <script> | |
| runEditingTest(); | |
| </script> | |
| </body> | |
| </html> |