Ticket #4553: replacebycode2.html

File replacebycode2.html, 2.8 KB (added by markuspaek, 15 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-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.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">
14function checkdirty()
15{
16alert(CKEDITOR.instances['editor1'].checkDirty());
17}
18</script>
19</head>
20<body>
21        <h1>
22                CKEditor Sample
23        </h1>
24        <!-- This <div> holds alert messages to be display in the sample page. -->
25        <div id="alerts">
26                <noscript>
27                        <p>
28                                <strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
29                                support, like yours, you should still see the contents (HTML data) and you should
30                                be able to edit it normally, without a rich editor interface.
31                        </p>
32                </noscript>
33        </div>
34        <!-- This <fieldset> holds the HTML that you will usually find in your
35             pages. -->
36        <form action="sample_posteddata.php" method="post">
37                        <p>
38                                <label for="editor1">
39                                        Editor 1:</label><br/>
40                                <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
41                                <script type="text/javascript">
42                                //<![CDATA[
43
44                                        // This call can be placed at any point after the
45                                        // <textarea>, or inside a <head><script> in a
46                                        // window.onload event handler.
47
48                                        // Replace the <textarea id="editor"> with an CKEditor
49                                        // instance, using default configurations.
50                                        CKEDITOR.replace( 'editor1' );
51
52                                //]]>
53                                </script>
54                        </p>
55                        <p>
56                                <label for="editor2">
57                                        Editor 2:</label><br/>
58                                <textarea cols="80" id="editor2" name="editor2" rows="10"></textarea>
59                                <script type="text/javascript">
60                                //<![CDATA[
61
62                                        // This call can be placed at any point after the
63                                        // <textarea>, or inside a <head><script> in a
64                                        // window.onload event handler.
65
66                                        // Replace the <textarea id="editor"> with an CKEditor
67                                        // instance, using default configurations.
68                                        //CKEDITOR.replace( 'editor2' );
69
70                                //]]>
71                                </script>
72                        </p>
73                        <p>
74                                <input type="submit" value="Submit"/>
75                                <input type="button" value="checkdirty" onclick="javascript:checkdirty();"/>
76                        </p>
77                </form>
78        <div id="footer">
79                <hr/>
80                <p>
81                        CKEditor - The text editor for Internet - <a href="http://ckeditor.com/" shape="rect">http://ckeditor.com</a>
82                </p>
83                <p id="copy">
84                        Copyright © 2003-2009, <a href="http://cksource.com/" shape="rect">CKSource</a> - Frederico Knabben. All rights reserved.
85                </p>
86        </div>
87</body>
88</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy