Ticket #5649: replacebycode.html

File replacebycode.html, 2.1 KB (added by Senthil, 14 years ago)

C:\Documents and Settings\SKumaran\Desktop\ckeditor_3.4\ckeditor\_samples

Line 
1<html xmlns="http://www.w3.org/1999/xhtml">
2<head>
3        <title>Replace Textarea by Code - CKEditor Sample</title>
4        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
5        <script type="text/javascript" src="../ckeditor.js"></script>
6        <script src="sample.js" type="text/javascript"></script>
7        <link href="sample.css" rel="stylesheet" type="text/css" />
8</head>
9<body>
10        <h1>
11                CKEditor Sample
12        </h1>
13        <!-- This <div> holds alert messages to be display in the sample page. -->
14        <div id="alerts">
15                <noscript>
16                        <p>
17                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
18                                support, like yours, you should still see the contents (HTML data) and you should
19                                be able to edit it normally, without a rich editor interface.
20                        </p>
21                </noscript>
22        </div>
23        <form action="sample_posteddata.php" method="post">
24                <p>
25                        <label for="editor2">
26                                Editor 2:</label><br />
27                        <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/" id="123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890">CKEditor</a>.</p></textarea>
28                        <script type="text/javascript">
29                        //<![CDATA[
30
31                                // This call can be placed at any point after the
32                                // <textarea>, or inside a <head><script> in a
33                                // window.onload event handler.
34
35                                // Replace the <textarea id="editor"> with an CKEditor
36                                // instance, using default configurations.
37                                CKEDITOR.config.skin = 'office2003';
38                                CKEDITOR.replace( 'editor2' );
39
40                        //]]>
41                        </script>
42                </p>
43                <p>
44                        <input type="submit" value="Submit" />
45                </p>
46        </form>
47        <div id="footer">
48                <hr />
49                <p>
50                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
51                </p>
52                <p id="copy">
53                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
54                        Knabben. All rights reserved.
55                </p>
56        </div>
57</body>
58</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy