Ticket #5064: replacebycode_enter.2.html

File replacebycode_enter.2.html, 2.6 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Adjusted test file

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