1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/ckeditor/samples/old/tabindex.html Thu Dec 15 18:10:20 2016 +0300
1.3 @@ -0,0 +1,78 @@
1.4 +<!DOCTYPE html>
1.5 +<!--
1.6 +Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
1.7 +For licensing, see LICENSE.md or http://ckeditor.com/license
1.8 +-->
1.9 +<html>
1.10 +<head>
1.11 + <meta charset="utf-8">
1.12 + <title>TAB Key-Based Navigation — CKEditor Sample</title>
1.13 + <script src="../../ckeditor.js"></script>
1.14 + <link href="sample.css" rel="stylesheet">
1.15 + <style>
1.16 +
1.17 + .cke_focused,
1.18 + .cke_editable.cke_focused
1.19 + {
1.20 + outline: 3px dotted blue !important;
1.21 + *border: 3px dotted blue !important; /* For IE7 */
1.22 + }
1.23 +
1.24 + </style>
1.25 + <script>
1.26 +
1.27 + CKEDITOR.on( 'instanceReady', function( evt ) {
1.28 + var editor = evt.editor;
1.29 + editor.setData( 'This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>' );
1.30 +
1.31 + // Apply focus class name.
1.32 + editor.on( 'focus', function() {
1.33 + editor.container.addClass( 'cke_focused' );
1.34 + });
1.35 + editor.on( 'blur', function() {
1.36 + editor.container.removeClass( 'cke_focused' );
1.37 + });
1.38 +
1.39 + // Put startup focus on the first editor in tab order.
1.40 + if ( editor.tabIndex == 1 )
1.41 + editor.focus();
1.42 + });
1.43 +
1.44 + </script>
1.45 +</head>
1.46 +<body>
1.47 + <h1 class="samples">
1.48 + <a href="index.html">CKEditor Samples</a> » TAB Key-Based Navigation
1.49 + </h1>
1.50 + <div class="warning deprecated">
1.51 + This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/tabindex.html">brand new version in CKEditor SDK</a>.
1.52 + </div>
1.53 + <div class="description">
1.54 + <p>
1.55 + This sample shows how tab key navigation among editor instances is
1.56 + affected by the <code>tabIndex</code> attribute from
1.57 + the original page element. Use TAB key to move between the editors.
1.58 + </p>
1.59 + </div>
1.60 + <p>
1.61 + <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea>
1.62 + </p>
1.63 + <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div>
1.64 + <p>
1.65 + <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea>
1.66 + </p>
1.67 + <p>
1.68 + <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea>
1.69 + </p>
1.70 + <div id="footer">
1.71 + <hr>
1.72 + <p>
1.73 + CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
1.74 + </p>
1.75 + <p id="copy">
1.76 + Copyright © 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
1.77 + Knabben. All rights reserved.
1.78 + </p>
1.79 + </div>
1.80 +</body>
1.81 +</html>