Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391749
_getfontformat.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
_getfontformat.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
-->
<
html
>
<
head
>
<
title
></
title
>
</
head
>
<
script
language
=
"javascript"
>
window
.
onload
=
function
()
{
var
oRange
=
document
.
selection
.
createRange
()
;
var
sNormal
;
var
sFormats
=
''
;
for
(
var
i
=
1
;
i
<=
9
;
i
++
)
{
oRange
.
moveToElementText
(
document
.
getElementById
(
'x'
+
i
)
)
;
sFormats
+=
oRange
.
queryCommandValue
(
'FormatBlock'
)
;
if
(
i
==
1
)
sNormal
=
sFormats
;
sFormats
+=
';'
;
}
document
.
getElementById
(
'xFontFormats'
).
innerHTML
=
sFormats
+
sNormal
+
' (DIV)'
;
}
</
script
>
<
body
>
<
table
width
=
"70%"
align
=
"center"
>
<
tr
>
<
td
>
<
h3
>
FontFormats Localization
</
h3
>
<
p
>
IE has some limits when handling the "Font Format". It actually uses localized
strings to retrieve the current format value. This makes it very difficult to
make a system that works on every single computer in the world.
</
p
>
<
p
>
With FCKeditor, this problem impacts in the "Format" toolbar command that
doesn't reflects the format of the current cursor position.
</
p
>
<
p
>
There is only one way to make it work. We must localize FCKeditor using the
strings used by IE. In this way, we will have the expected behavior at least
when using FCKeditor in the same language as the browser. So, when localizing
FCKeditor, go to a computer with IE in the target language, open this page and
use the following string to the "FontFormats" value:
</
p
>
<
div
style
=
"white-space: nowrap"
>
FontFormats : "
<
span
id
=
"xFontFormats"
style
=
"COLOR: #000099"
></
span
>
",
</
div
>
</
td
>
</
tr
>
</
table
>
<
div
style
=
"DISPLAY: none"
>
<
p
id
=
"x1"
>
</
p
>
<
pre
id
=
"x2"
>
</
pre
>
<
address
id
=
"x3"
>
</
address
>
<
h1
id
=
"x4"
>
</
h1
>
<
h2
id
=
"x5"
>
</
h2
>
<
h3
id
=
"x6"
>
</
h3
>
<
h4
id
=
"x7"
>
</
h4
>
<
h5
id
=
"x8"
>
</
h5
>
<
h6
id
=
"x9"
>
</
h6
>
</
div
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Feb 22, 20:24 (1 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26194
Default Alt Text
_getfontformat.html (2 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment