Ticket #5063: replacebycode.html

File replacebycode.html, 2.7 KB (added by Pranav Prakash, 14 years ago)

Sample file to reproduce the issue

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" dir='rtl' lang='ar'>
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="editor1">
26                                Editor 1:</label><br />
27                        <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
28href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
29                        <script type="text/javascript">
30                        //<![CDATA[
31
32                                // This call can be placed at any point after the
33                                // <textarea>, or inside a <head><script> in a
34                                // window.onload event handler.
35
36                                // Replace the <textarea id="editor"> with an CKEditor
37                                // instance, using default configurations.
38CKEDITOR.config.height='208';CKEDITOR.config.width='472';CKEDITOR.config.autoLanguage = false;CKEDITOR.config.language= 'ar';CKEDITOR.config.contentsLangDirection='rtl';
39                                CKEDITOR.replace( 'editor1' );
40
41                        //]]>
42                        </script>
43                </p>
44                <p>
45                        <label for="editor2">
46                                Editor 2:</label><br />
47                        <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
48href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
49                        <script type="text/javascript">
50                        //<![CDATA[
51
52                                // This call can be placed at any point after the
53                                // <textarea>, or inside a <head><script> in a
54                                // window.onload event handler.
55
56                                // Replace the <textarea id="editor"> with an CKEditor
57                                // instance, using default configurations.
58                                CKEDITOR.replace( 'editor2' );
59
60                        //]]>
61                        </script>
62                </p>
63                <p>
64                        <input type="submit" value="Submit" />
65                </p>
66        </form>
67        <div id="footer">
68                <hr />
69                <p>
70                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
71                </p>
72                <p id="copy">
73                        Copyright &copy; 2003-2010, <a href="http://cksource.com/">CKSource</a> - Frederico
74                        Knabben. All rights reserved.
75                </p>
76        </div>
77</body>
78</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy