Ticket #5892: 5892_tc.html

File 5892_tc.html, 1.0 KB (added by Frederico Caldeira Knabben, 14 years ago)

Test page

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4        <title>#5892 - Test Page</title>
5        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
6        <script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script>
7</head>
8<body>
9                <p>
10                        <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
11                        <script type="text/javascript">
12
13CKEDITOR.replace( 'editor1',
14        {
15                on :
16                {
17                        key : function( ev )
18                        {
19                                var editor = ev.editor,
20                                        keyCode = ev.data.keyCode;
21
22                                if ( keyCode == 9 )
23                                {
24                                        ev.cancel();
25                                        editor.execCommand("indent");
26                                }
27                                else if ( keyCode == ( CKEDITOR.SHIFT + 9 ) )
28                                {
29                                        ev.cancel();
30                                        editor.execCommand("outdent");
31                                }
32                        }
33                }
34        });
35
36                        </script>
37                </p>
38</body>
39</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy