Ticket #10269: index.html

File index.html, 1.3 KB (added by jhhawk, 11 years ago)

sample html file. requires ckeditor 4.0.2 standard to be in same directory to run.

Line 
1<!doctype html>
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3    <head>
4        <meta name="X-UA-Compatible" content="IE=Edge" />
5        <meta name="robots" content="all"/>
6        <title>Dialog Test</title>
7        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
8        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
9        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
10        <script type="text/javascript">
11        $(function() {
12            CKEDITOR.replace( 'editor1' );
13
14            $('#editor_dialog').dialog({
15                modal: true
16            });
17
18            $('#open_dialog').click(function() {
19                $('#editor_dialog').dialog('open');
20                return false;
21            });
22        });
23    </script>
24
25    </head>
26
27    <body>
28        <div>
29            <button id="open_dialog" title="Open Dialog">Open Dialog</button>
30            <div id="editor_dialog" style="width:600px;height:600px">
31                <form id="frmHTML" onsubmit="return false">
32                    <textarea id="editor1" name="editor1"></textarea>
33                </form>
34            </div>
35        </div>
36    </body>
37</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy