Déplacement préalable à l'eggification.
[ckeditor.git] / Products / ckeditor / skins / ckeditor / samples / tabindex.html
diff --git a/Products/ckeditor/skins/ckeditor/samples/tabindex.html b/Products/ckeditor/skins/ckeditor/samples/tabindex.html
new file mode 100644 (file)
index 0000000..8952166
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.md or http://ckeditor.com/license\r
+-->\r
+<html>\r
+<head>\r
+       <meta charset="utf-8">\r
+       <title>TAB Key-Based Navigation &mdash; CKEditor Sample</title>\r
+       <script src="../ckeditor.js"></script>\r
+       <link href="sample.css" rel="stylesheet">\r
+       <style>\r
+\r
+               .cke_focused,\r
+               .cke_editable.cke_focused\r
+               {\r
+                       outline: 3px dotted blue !important;\r
+                       *border: 3px dotted blue !important;    /* For IE7 */\r
+               }\r
+\r
+       </style>\r
+       <script>\r
+\r
+               CKEDITOR.on( 'instanceReady', function( evt ) {\r
+                       var editor = evt.editor;\r
+                       editor.setData( 'This editor has it\'s tabIndex set to <strong>' + editor.tabIndex + '</strong>' );\r
+\r
+                       // Apply focus class name.\r
+                       editor.on( 'focus', function() {\r
+                               editor.container.addClass( 'cke_focused' );\r
+                       });\r
+                       editor.on( 'blur', function() {\r
+                               editor.container.removeClass( 'cke_focused' );\r
+                       });\r
+\r
+                       // Put startup focus on the first editor in tab order.\r
+                       if ( editor.tabIndex == 1 )\r
+                               editor.focus();\r
+               });\r
+\r
+       </script>\r
+</head>\r
+<body>\r
+       <h1 class="samples">\r
+               <a href="index.html">CKEditor Samples</a> &raquo; TAB Key-Based Navigation\r
+       </h1>\r
+       <div class="description">\r
+               <p>\r
+                       This sample shows how tab key navigation among editor instances is\r
+                       affected by the <code>tabIndex</code> attribute from\r
+                       the original page element. Use TAB key to move between the editors.\r
+               </p>\r
+       </div>\r
+       <p>\r
+               <textarea class="ckeditor" cols="80" id="editor4" rows="10" tabindex="1"></textarea>\r
+       </p>\r
+       <div class="ckeditor" contenteditable="true" id="editor1" tabindex="4"></div>\r
+       <p>\r
+               <textarea class="ckeditor" cols="80" id="editor2" rows="10" tabindex="2"></textarea>\r
+       </p>\r
+       <p>\r
+               <textarea class="ckeditor" cols="80" id="editor3" rows="10" tabindex="3"></textarea>\r
+       </p>\r
+       <div id="footer">\r
+               <hr>\r
+               <p>\r
+                       CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
+               </p>\r
+               <p id="copy">\r
+                       Copyright &copy; 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico\r
+                       Knabben. All rights reserved.\r
+               </p>\r
+       </div>\r
+</body>\r
+</html>\r