Ticket #5420: ckeditortest.html
| File ckeditortest.html, 465 bytes (added by , 16 years ago) |
|---|
| Line | |
|---|---|
| 1 | <html> |
| 2 | <head> |
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 4 | <script src="ckeditor.js" type="text/javascript" language="javascript"></script> |
| 5 | |
| 6 | <script> |
| 7 | function toggleState() { |
| 8 | var editor = CKEDITOR.instances["area"]; |
| 9 | if (editor) { |
| 10 | editor.destroy(); |
| 11 | } else { |
| 12 | CKEDITOR.replace("area"); |
| 13 | } |
| 14 | } |
| 15 | </script> |
| 16 | |
| 17 | </head> |
| 18 | <body> |
| 19 | <textarea id = "area"></textarea><input type="button" value="Toggle state" onclick="toggleState()" /> |
| 20 | </body> |
| 21 | </html> |
