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