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