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"><head> |
---|
3 | <!-- |
---|
4 | |
---|
5 | Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. |
---|
6 | |
---|
7 | For licensing, see LICENSE.html or http://ckeditor.com/license |
---|
8 | |
---|
9 | --> |
---|
10 | |
---|
11 | |
---|
12 | <title>Replace Textarea by Code — CKEditor Sample</title> |
---|
13 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"> |
---|
14 | <script type="text/javascript" src="../ckeditor.js"></script> |
---|
15 | <script src="./sample.js" type="text/javascript"></script> |
---|
16 | <link href="./sample.css" rel="stylesheet" type="text/css"> |
---|
17 | </head><body onpageshow='event.persisted && (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){ editor = allInstances[ i ]; doc = editor.document; if ( doc ) { doc.$.designMode = "off"; doc.$.designMode = "on"; }}})();'> |
---|
18 | |
---|
19 | <input value="FirstButton" type="submit"> |
---|
20 | |
---|
21 | <form action="sample_posteddata.php" method="post"> |
---|
22 | |
---|
23 | <table> |
---|
24 | <tbody> |
---|
25 | |
---|
26 | <tr> <td><label for="editor1">I am Read</label> </td> |
---|
27 | <td><textarea id="editor1" rows="4" cols="30" name="nameeditarea"> test </textarea> </td> |
---|
28 | </tr> |
---|
29 | |
---|
30 | <tr> <td><label for="editor2">I am not Read</label></td> |
---|
31 | <td> |
---|
32 | <textarea cols="80" id="editor2" name="Testing" rows="10"> sample content</textarea> |
---|
33 | <script type="text/javascript"> |
---|
34 | //<![CDATA[ |
---|
35 | |
---|
36 | CKEDITOR.replace( 'editor2' ); |
---|
37 | //]]> |
---|
38 | </script> |
---|
39 | </td> |
---|
40 | </tr> |
---|
41 | </tbody></table> |
---|
42 | <p> |
---|
43 | <input value="Submit" type="submit"> |
---|
44 | </p> |
---|
45 | </form> |
---|
46 | |
---|
47 | </body></html> |
---|