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-2010, 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 | <script type="text/javascript" src="../ckeditor.js"></script>
|
---|
11 | <script src="sample.js" type="text/javascript"></script>
|
---|
12 | <link href="sample.css" rel="stylesheet" type="text/css" />
|
---|
13 | <script>
|
---|
14 | Object.prototype.FOO = function()
|
---|
15 | {};
|
---|
16 | </script>
|
---|
17 | </head>
|
---|
18 | <body>
|
---|
19 | <h1>
|
---|
20 | CKEditor Sample
|
---|
21 | </h1>
|
---|
22 | <!-- This <div> holds alert messages to be display in the sample page. -->
|
---|
23 | <div id="alerts">
|
---|
24 | <noscript>
|
---|
25 | <p>
|
---|
26 | <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
|
---|
27 | support, like yours, you should still see the contents (HTML data) and you should
|
---|
28 | be able to edit it normally, without a rich editor interface.
|
---|
29 | </p>
|
---|
30 | </noscript>
|
---|
31 | </div>
|
---|
32 | <form action="sample_posteddata.php" method="post">
|
---|
33 | <p>
|
---|
34 | <label for="editor1">
|
---|
35 | Editor 1:</label><br />
|
---|
36 | <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
---|
37 | <script type="text/javascript">
|
---|
38 | //<![CDATA[
|
---|
39 |
|
---|
40 | // This call can be placed at any point after the
|
---|
41 | // <textarea>, or inside a <head><script> in a
|
---|
42 | // window.onload event handler.
|
---|
43 |
|
---|
44 | // Replace the <textarea id="editor"> with an CKEditor
|
---|
45 | // instance, using default configurations.
|
---|
46 | CKEDITOR.replace( 'editor1' );
|
---|
47 |
|
---|
48 | //]]>
|
---|
49 | </script>
|
---|
50 | </p>
|
---|
51 | <p>
|
---|
52 | <label for="editor2">
|
---|
53 | Editor 2:</label><br />
|
---|
54 | <textarea cols="80" id="editor2" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>
|
---|
55 | <script type="text/javascript">
|
---|
56 | //<![CDATA[
|
---|
57 |
|
---|
58 | // This call can be placed at any point after the
|
---|
59 | // <textarea>, or inside a <head><script> in a
|
---|
60 | // window.onload event handler.
|
---|
61 |
|
---|
62 | // Replace the <textarea id="editor"> with an CKEditor
|
---|
63 | // instance, using default configurations.
|
---|
64 | CKEDITOR.replace( 'editor2' );
|
---|
65 |
|
---|
66 | //]]>
|
---|
67 | </script>
|
---|
68 | </p>
|
---|
69 | <p>
|
---|
70 | <input type="submit" value="Submit" />
|
---|
71 | </p>
|
---|
72 | </form>
|
---|
73 | <div id="footer">
|
---|
74 | <hr />
|
---|
75 | <p>
|
---|
76 | CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
|
---|
77 | </p>
|
---|
78 | <p id="copy">
|
---|
79 | Copyright © 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
|
---|
80 | Knabben. All rights reserved.
|
---|
81 | </p>
|
---|
82 | </div>
|
---|
83 | </body>
|
---|
84 | </html>
|
---|