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
);
21 <div id=
"editor1" contenteditable
>content editable
</div>
22 <iframe id=
"editor2" onload=
"doTest();"
23 src=
"data:text/html,<script>document.designMode='on';</script><body>editable text</body>"></iframe
>