| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 3 | <head> |
|---|
| 4 | <title>FCKeditor - Accessibility Focus Control Sample</title> |
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 6 | <meta name="robots" content="noindex, nofollow" /> |
|---|
| 7 | <link href="../sample.css" rel="stylesheet" type="text/css" /> |
|---|
| 8 | <script type="text/javascript" src="../../fckeditor.js"></script> |
|---|
| 9 | <script type="text/javascript"> |
|---|
| 10 | var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; |
|---|
| 11 | </script> |
|---|
| 12 | <style> |
|---|
| 13 | .accessReminder {font-size:50%;position:absolute;left:-1000px} |
|---|
| 14 | </style> |
|---|
| 15 | </head> |
|---|
| 16 | <body> |
|---|
| 17 | <p class="accessReminder">Screen readers should switch to the accessible platform.</p> |
|---|
| 18 | <h1> |
|---|
| 19 | FCKeditor - JavaScript - Sample 9c - Accessibility Message</h1> |
|---|
| 20 | <div> |
|---|
| 21 | This sample shows an FCKeditor with an inital focus control problem in IE7.<br /><br /> |
|---|
| 22 | Initial focus is placed in the second editor instance, it should be left on the window.<br /><br /> |
|---|
| 23 | There are two way of changing the page so that the problem DOES NOT occur:<br /> |
|---|
| 24 | 1) Remove the accessibility statement or comment out the associated CSS; this problem is something to do with this style being used on the page.<br /> |
|---|
| 25 | 2) Put some initial text in the second textarea; focus always seems to end up in an empty FCKeditor.<br /> |
|---|
| 26 | <br /> |
|---|
| 27 | </div> |
|---|
| 28 | <hr /> |
|---|
| 29 | <br /> |
|---|
| 30 | FCKeditor with Default toolbar: |
|---|
| 31 | <textarea cols="80" readonly="readonly" rows="10" id="richTextEditor01">Mary had a little lamb.</textarea> |
|---|
| 32 | <script type="text/javascript"> |
|---|
| 33 | var oFCKeditor = new FCKeditor("richTextEditor01"); |
|---|
| 34 | oFCKeditor.BasePath = sBasePath; |
|---|
| 35 | oFCKeditor.Config['ToolbarStartExpanded'] = false ; |
|---|
| 36 | oFCKeditor.ReplaceTextarea(); |
|---|
| 37 | </script> |
|---|
| 38 | <br /> |
|---|
| 39 | FCKeditor with Default toolbar: |
|---|
| 40 | <textarea cols="80" readonly="readonly" rows="10" id="richTextEditor02"></textarea> |
|---|
| 41 | <script type="text/javascript"> |
|---|
| 42 | var oFCKeditor = new FCKeditor("richTextEditor02"); |
|---|
| 43 | oFCKeditor.BasePath = sBasePath; |
|---|
| 44 | oFCKeditor.Config['ToolbarStartExpanded'] = false ; |
|---|
| 45 | oFCKeditor.ReplaceTextarea(); |
|---|
| 46 | </script> |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | </body></html> |
|---|