Ticket #6153: 6153.html

File 6153.html, 3.0 KB (added by Sa'ar Zac Elias, 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                        <input type="text" />
35                        <label for="editor1">
36                                Editor 1:</label><br />
37                        <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>
38                        <script type="text/javascript">
39                        //<![CDATA[
40
41                                // This call can be placed at any point after the
42                                // <textarea>, or inside a <head><script> in a
43                                // window.onload event handler.
44
45                                // Replace the <textarea id="editor"> with an CKEditor
46                                // instance, using default configurations.
47                                CKEDITOR.replace( 'editor1' );
48
49                        //]]>
50                        </script>
51                </p>
52                <p>
53                        <label for="editor2">
54                                Editor 2:</label><br />
55                        <textarea cols="80" id="editor2" name="editor2" 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>
56                        <script type="text/javascript">
57                        //<![CDATA[
58
59                                // This call can be placed at any point after the
60                                // <textarea>, or inside a <head><script> in a
61                                // window.onload event handler.
62
63                                // Replace the <textarea id="editor"> with an CKEditor
64                                // instance, using default configurations.
65                                CKEDITOR.replace( 'editor2' );
66
67                        //]]>
68                        </script>
69                </p>
70                <p>
71                        <input type="submit" value="Submit" />
72                </p>
73        </form>
74        <div id="footer">
75                <hr />
76                <p>
77                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
78                </p>
79                <p id="copy">
80                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
81                        Knabben. All rights reserved.
82                </p>
83        </div>
84</body>
85</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy