| 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 2 | <head> |
|---|
| 3 | <title>Sample - CKEditor</title> |
|---|
| 4 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 5 | <script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | |
|---|
| 8 | function DestroyIt() |
|---|
| 9 | { |
|---|
| 10 | CKEDITOR.instances.editor1.destroy(); |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | </script> |
|---|
| 14 | </head> |
|---|
| 15 | <body> |
|---|
| 16 | <p> |
|---|
| 17 | <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">CKEditor</a>.</p></textarea></div> |
|---|
| 18 | <script type="text/javascript"> |
|---|
| 19 | CKEDITOR.replace( 'editor1' ); |
|---|
| 20 | </script> |
|---|
| 21 | </p> |
|---|
| 22 | <p> |
|---|
| 23 | <input type="button" value="Make a selection inside the editor and click this button" onclick='javascript:DestroyIt();' /> |
|---|
| 24 | </p> |
|---|
| 25 | </body> |
|---|
| 26 | </html> |
|---|