11 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
15 function moveNSpacesAndType(n
) {
16 for (i
= 0; i
< n
; i
++) {
17 moveSelectionForwardByCharacterCommand();
19 for (i
= 0; i
< 3; i
++) {
20 typeCharacterCommand();
24 function editingTest() {
25 moveNSpacesAndType(2);
26 moveNSpacesAndType(3);
27 moveNSpacesAndType(1);
28 moveNSpacesAndType(3);
29 moveNSpacesAndType(1);
30 moveNSpacesAndType(1);
31 moveNSpacesAndType(1);
32 moveNSpacesAndType(3);
37 <title>Editing Test
</title>
40 <div contenteditable
id=
"root" class=
"editing">
41 <span id=
"test">XX
<br>XX
<br><br>XX
<br><br><br><br>XX
</span>