event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / lang / _getfontformat.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21 -->\r
22 <html>\r
23         <head>\r
24                 <title></title>\r
25         </head>\r
26         <script language="javascript">\r
27 \r
28 window.onload = function()\r
29 {\r
30         var oRange = document.selection.createRange() ;\r
31 \r
32         var sNormal ;\r
33         var sFormats = '' ;\r
34         for ( var i = 1 ; i <= 9 ; i++ )\r
35         {\r
36                 oRange.moveToElementText( document.getElementById( 'x' + i ) ) ;\r
37                 sFormats += oRange.queryCommandValue( 'FormatBlock' ) ;\r
38                 if ( i == 1 )\r
39                         sNormal = sFormats ;\r
40                 sFormats += ';' ;\r
41         }\r
42 \r
43         document.getElementById('xFontFormats').innerHTML = sFormats + sNormal + ' (DIV)' ;\r
44 }\r
45         </script>\r
46         <body>\r
47                 <table width="70%" align="center">\r
48                         <tr>\r
49                                 <td>\r
50                                         <h3>FontFormats Localization</h3>\r
51                                         <p>\r
52                                                 IE has some limits when handling the "Font Format". It actually uses localized\r
53                                                 strings to retrieve the current format value. This makes it very difficult to\r
54                                                 make a system that works on every single computer in the world.\r
55                                         </p>\r
56                                         <p>\r
57                                                 With FCKeditor, this problem impacts in the "Format" toolbar command that\r
58                                                 doesn't reflects the format of the current cursor position.\r
59                                         </p>\r
60                                         <p>\r
61                                                 There is only one way to make it work. We must localize FCKeditor using the\r
62                                                 strings used by IE. In this way, we will have the expected behavior at least\r
63                                                 when using FCKeditor in the same language as the browser. So, when localizing\r
64                                                 FCKeditor, go to a computer with IE in the target language, open this page and\r
65                                                 use the following string to the "FontFormats" value:\r
66                                         </p>\r
67                                         <div style="white-space: nowrap">\r
68                                                 FontFormats : "<span id="xFontFormats" style="COLOR: #000099"></span>",\r
69                                         </div>\r
70                                 </td>\r
71                         </tr>\r
72                 </table>\r
73                 <div style="DISPLAY: none">\r
74                         <p id="x1">&nbsp;</p>\r
75                         <pre id="x2">&nbsp;</pre>\r
76                         <address id="x3">&nbsp;</address>\r
77                         <h1 id="x4">&nbsp;</h1>\r
78                         <h2 id="x5">&nbsp;</h2>\r
79                         <h3 id="x6">&nbsp;</h3>\r
80                         <h4 id="x7">&nbsp;</h4>\r
81                         <h5 id="x8">&nbsp;</h5>\r
82                         <h6 id="x9">&nbsp;</h6>\r
83                 </div>\r
84         </body>\r
85 </html>\r