4 <script type=
"text/javascript">
7 var editor1
= document
.getElementById("editor1");
10 document
.getSelection().selectAllChildren(document
.body
);
11 var editor2
= document
.getElementById("editor2");
12 var editorBody
= editor2
.contentDocument
.body
;
13 editor2
.contentDocument
.getSelection().selectAllChildren(editorBody
);
20 <div id=
"editor1" contenteditable
>content editable
</div>
21 <iframe id=
"editor2" onload=
"doTest();"
22 src=
"data:text/html,<script>document.designMode='on';</script><body>editable text</body>"></iframe
>