Ticket #4269: replacebycode.html

File replacebycode.html, 2.5 KB (added by Pranav, 15 years ago)

Sample HTML File

Line 
1<!--
2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4-->
5<html xmlns="http://www.w3.org/1999/xhtml">
6<head>
7        <title>Sample - CKEditor</title>
8        <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
9        <script type="text/javascript" src="../ckeditor.js"></script>
10        <script src="sample.js" type="text/javascript"></script>
11        <link href="sample.css" rel="stylesheet" type="text/css"/>
12<script TYPE="text/javascript">
13<!--
14function submitenter(e)
15{
16var keycode;
17var frm = document.getElementById("myform");
18if (window.event) keycode = window.event.keyCode;
19else if (e) keycode = e.which || e.keyCode;
20else return true;
21
22if (keycode == 13 || keycode == 27)
23   {
24   frm.submit();
25   return false;
26   }
27else
28   return true;
29}
30//-->
31</script>
32        </head>
33<body onkeypress="return submitenter(event)">
34        <h1>
35                CKEditor Sample
36        </h1>
37        <!-- This <div> holds alert messages to be display in the sample page. -->
38        <div id="alerts">
39                <noscript>
40                        <p>
41                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
42                                support, like yours, you should still see the contents (HTML data) and you should
43                                be able to edit it normally, without a rich editor interface.
44                        </p>
45                </noscript>
46        </div>
47                <!-- This <fieldset> holds the HTML that you will usually find in your
48             pages. -->
49        <form id="myform" action="sample_posteddata.php" method="post">
50                        <p>
51                                <label for="editor1">
52                                        Editor 1:</label><br/>                         
53                                <textarea id='editor1' >&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
54                                <script type="text/javascript">
55                                //<![CDATA[
56
57                                        // This call can be placed at any point after the
58                                        // <textarea>, or inside a <head><script> in a
59                                        // window.onload event handler.
60
61                                        // Replace the <textarea id="editor"> with an CKEditor
62                                        // instance, using default configurations.
63                                        CKEDITOR.replace( 'editor1' );
64
65                                //]]>
66                                </script>
67                        </p>
68                        <p>
69                                <input name="myform" type="submit" value="Submit"/>
70                        </p>
71                </form>
72        <div id="footer">
73                <hr/>
74                <p>
75                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/" shape="rect">http://ckeditor.com</a>
76                </p>
77                <p id="copy">
78                        Copyright © 2003-2009, <a href="http://cksource.com/" shape="rect">CKSource</a> - Frederico Knabben. All rights reserved.
79                </p>
80        </div>
81</body>
82</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy