Ticket #8570: 8570.html

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