Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!DOCTYPE html>
2
<!--
3
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4
For licensing, see LICENSE.md or http://ckeditor.com/license
5
-->
6
<html>
7
 
8
    <head>
9
        <meta charset="utf-8">
10
        <title>TAB Key-Based Navigation &mdash; CKEditor Sample</title>
11
        <script src="../ckeditor.js"></script>
12
        <link href="sample.css" rel="stylesheet">
13
        <style>
14
            .cke_focused,
15
            .cke_editable.cke_focused {
16
                outline: 3px dotted blue !important;
17
                *border: 3px dotted blue !important;
18
                /* For IE7 */
19
            }
20
        </style>
21
        <script>
22
            CKEDITOR.on('instanceReady', function(evt)
23
            {
24
                var editor = evt.editor;
25
                editor.setData('This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>');
26
                // Apply focus class name.
27
                editor.on('focus', function()
28
                {
29
                    editor.container.addClass('cke_focused');
30
                });
31
                editor.on('blur', function()
32
                {
33
                    editor.container.removeClass('cke_focused');
34
                });
35
                // Put startup focus on the first editor in tab order.
36
                if (editor.tabIndex == 1) editor.focus();
37
            });
38
        </script>
39
    </head>
40
 
41
    <body>
42
        <h1 class="samples">
43
            <a href="index.html">CKEditor Samples</a> &raquo; TAB Key-Based Navigation </h1>
44
        <div class="description">
45
            <p> This sample shows how tab key navigation among editor instances is affected by the <code>tabIndex</code> attribute from the original page element. Use TAB key to move between the editors. </p>
46
        </div>
47
        <p>
48
            <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea>
49
        </p>
50
        <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div>
51
        <p>
52
            <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea>
53
        </p>
54
        <p>
55
            <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea>
56
        </p>
57
        <div id="footer">
58
            <hr>
59
            <p> CKEditor - The text editor for the Internet -
60
                <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
61
            </p>
62
            <p id="copy"> Copyright &copy; 2003-2014,
63
                <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p>
64
        </div>
65
    </body>
66
 
67
</html>