3 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript"></script>
5 function log(message
) {
6 var console
= document
.getElementById("console");
7 var li
= document
.createElement("li");
8 var text
= document
.createTextNode(message
);
10 console
.appendChild(li
);
13 function editingTest() {
14 insertImageCommand("../resources/abe.png");
15 insertImageCommand("../resources/do-not-name-an-image-this.jpg");
21 <p>This is a test of execCommand(InsertImage, ...). The first test passes execCommand a path to a valid image, the second passes execCommand a path where no image should exist.
</p>
23 <div id=
"test" contenteditable=
"true"></div>
24 <ul id=
"console"></ul>