equal
deleted
inserted
replaced
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html> |
|
3 <head> |
|
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
5 <title>Copy HTML content</title> |
|
6 </head> |
|
7 <body> |
|
8 <h1>Copy HTML content from currently editable area</h1> |
|
9 <div title="EditableArea" contentEditable="true" |
|
10 style="display: block; border: 2px solid black; margin: 5px; padding: 15px;"> |
|
11 Here is a Editable Area,<br /> |
|
12 <img title="It's the test image" src="http://webkit.org/images/icon-gold.png" /><br /><br /> |
|
13 <b>STEPS TO TEST:</b><br /> |
|
14 <ol> |
|
15 <li>Select all that text or picture in this editable area (type <b>Ctrl-A</b> / Option-A)</li> |
|
16 <li><b>Copy</b> them use <b>Ctrl-C</b> / Option-C</li> |
|
17 <li>Move the cursor to a blank line below</li> |
|
18 <li>Paste them use <b>Ctrl-V</b> / Option-V</li> |
|
19 </ol> |
|
20 <p><b>Ensure</b> that text and image has been pasted with formats and no garbled.</p> |
|
21 <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> |
|
22 </div> |
|
23 </body> |
|
24 </html> |