| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 4 | For licensing, see LICENSE.html or http://ckeditor.com/license |
|---|
| 5 | --> |
|---|
| 6 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 7 | <head> |
|---|
| 8 | <title>Replace Textarea by Code — CKEditor Sample</title> |
|---|
| 9 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
|---|
| 10 | <!-- CKReleaser %REMOVE_LINE% |
|---|
| 11 | <script type="text/javascript" src="../ckeditor.js"></script> |
|---|
| 12 | CKReleaser %REMOVE_START% --> |
|---|
| 13 | <script type="text/javascript" src="../ckeditor_source.js"></script> |
|---|
| 14 | <!-- CKReleaser %REMOVE_END% --> |
|---|
| 15 | <script src="sample.js" type="text/javascript"></script> |
|---|
| 16 | <link href="sample.css" rel="stylesheet" type="text/css" /> |
|---|
| 17 | </head> |
|---|
| 18 | <body> |
|---|
| 19 | <form action="sample_posteddata.php" method="post"> |
|---|
| 20 | <p> |
|---|
| 21 | <div style="width:900px;overflow:hidden"> |
|---|
| 22 | <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea> |
|---|
| 23 | </div> |
|---|
| 24 | <script type="text/javascript"> |
|---|
| 25 | CKEDITOR.replace( 'editor1', { width : '100%' } ); |
|---|
| 26 | </script> |
|---|
| 27 | </p> |
|---|
| 28 | <p> |
|---|
| 29 | <input type="submit" value="Submit" /> |
|---|
| 30 | </p> |
|---|
| 31 | </form> |
|---|
| 32 | </body> |
|---|
| 33 | </html> |
|---|