3 testRunner
.dumpEditingCallbacks();
5 <p>This tests copy/paste of styled elements, like images. The image in the region below should be centered after its copied and pasted.
</p>
6 <p><b>This demonstrates a bug: createMarkup puts the text-align property on the image, which doesn't center it, so its left aligned on paste.
</b></p>
7 <div contenteditable=
"true" id=
"copy"><center><img src=
"../resources/abe.png"></center></div>
8 <div contenteditable=
"true" id=
"paste"></div>
11 window
.getSelection().collapse(document
.getElementById("copy"));
12 document
.execCommand("SelectAll");
13 document
.execCommand("Copy");
14 window
.getSelection().collapse(document
.getElementById("paste"));
15 document
.execCommand("Paste");