| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Replace Textarea by Code — CKEditor Sample</title> |
|---|
| 5 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 6 | <script type="text/javascript" src="../ckeditor_source.js"></script><!-- Can be changed to ckeditor.js--> |
|---|
| 7 | <script src="sample.js" type="text/javascript"></script> |
|---|
| 8 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
|---|
| 9 | </head> |
|---|
| 10 | <body > |
|---|
| 11 | <h1 class="samples"> |
|---|
| 12 | CKEditor Sample — Replace Textarea Elements Using JavaScript Code |
|---|
| 13 | </h1> |
|---|
| 14 | <form action="sample_posteddata.php" method="post"> |
|---|
| 15 | <p> |
|---|
| 16 | <label for="editor1">Editor 1:</label> |
|---|
| 17 | |
|---|
| 18 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
|---|
| 19 | <p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p> |
|---|
| 20 | </textarea> |
|---|
| 21 | |
|---|
| 22 | <script type="text/javascript"> |
|---|
| 23 | var e = CKEDITOR.replace( 'editor1'); |
|---|
| 24 | </script> |
|---|
| 25 | </p> |
|---|
| 26 | <p> |
|---|
| 27 | <input type="submit" value="Submit" /> |
|---|
| 28 | </p> |
|---|
| 29 | </form> |
|---|
| 30 | </body> |
|---|
| 31 | </html> |
|---|