| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 5 | <title>tracwysiwyg test</title> |
|---|
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|---|
| 7 | <link rel="stylesheet" href="./chrome/common/css/trac.css" type="text/css" /> |
|---|
| 8 | <link rel="stylesheet" href="../tracwysiwyg/htdocs/wysiwyg.css" type="text/css" /> |
|---|
| 9 | <script type="text/javascript" src="./trac.js"></script> |
|---|
| 10 | <script type="text/javascript" src="../tracwysiwyg/htdocs/wysiwyg.js"></script> |
|---|
| 11 | <script type="text/javascript" src="./testunit.js"></script> |
|---|
| 12 | <script type="text/javascript" src="./testcase.js"></script> |
|---|
| 13 | <style type="text/css"> |
|---|
| 14 | html { font-size: 13px; *font-size: small; } |
|---|
| 15 | body { font-family: Arial, Helvetica, sans-serif; font-size: 100%; } |
|---|
| 16 | textarea { font-size: 11px; width: 100%; border: 1px solid #999; } |
|---|
| 17 | #testunit .current { background-color: #FFFF80; } |
|---|
| 18 | #testunit .success { background-color: #33dd88; } |
|---|
| 19 | #testunit .failure textarea { background-color: #ff3333; border-style: none; } |
|---|
| 20 | #wysiwyg-html { |
|---|
| 21 | width: 100%; |
|---|
| 22 | border: 1px solid #999; |
|---|
| 23 | font-size: 11px; |
|---|
| 24 | white-space: -moz-pre-wrap; |
|---|
| 25 | white-space: -pre-wrap; |
|---|
| 26 | white-space: -o-pre-wrap; |
|---|
| 27 | white-space: pre-wrap; |
|---|
| 28 | word-wrap: break-word; |
|---|
| 29 | } |
|---|
| 30 | </style> |
|---|
| 31 | </head> |
|---|
| 32 | <body> |
|---|
| 33 | <form method="post"> |
|---|
| 34 | <textarea id="textarea" class="wikitext" cols="50" rows="20" wrap="off"></textarea> |
|---|
| 35 | <div> |
|---|
| 36 | <label><input type="checkbox" id="show-wysiwyg-html" value="1" |
|---|
| 37 | onclick="document.getElementById('wysiwyg-html').style.display=this.checked?'':'none'" |
|---|
| 38 | />show html</label> |
|---|
| 39 | <textarea id="wysiwyg-html" cols="50" rows="12" style="display:none;"></textarea> |
|---|
| 40 | </div> |
|---|
| 41 | </form> |
|---|
| 42 | </body> |
|---|
| 43 | </html> |
|---|