Ticket #6516: 6516.html

File 6516.html, 2.3 KB (added by Garry Yao, 13 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
4For 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        <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">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</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', { width: 300 } );
47
48                        //]]>
49                        </script>
50                </p>
51                <p>
52                        <input type="submit" value="Submit" />
53                </p>
54        </form>
55        <div id="footer">
56                <hr />
57                <p>
58                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
59                </p>
60                <p id="copy">
61                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
62                        Knabben. All rights reserved.
63                </p>
64        </div>
65</body>
66</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy