/trunk/api/fckeditor/editor/dialog/fck_spellerpages.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_spellerpages.html |
* Spell Check dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_table.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_table.html |
* Table dialog window. |
* |
75,7 → 77,7 |
document.getElementById('txtCellSpacing').value = table.cellSpacing ; |
// document.getElementById('cmbFontStyle').value = table.className ; |
if (table.caption) document.getElementById('txtCaption').value = table.caption.innerText ; |
if (table.caption) document.getElementById('txtCaption').value = table.caption.innerHTML ; |
document.getElementById('txtRows').disabled = true ; |
document.getElementById('txtColumns').disabled = true ; |
110,10 → 112,15 |
if ( document.getElementById('txtCaption').value != '') |
{ |
if (! table.caption) table.createCaption() ; |
table.caption.innerText = document.getElementById('txtCaption').value ; |
table.caption.innerHTML = document.getElementById('txtCaption').value ; |
} |
// else if ( bExists && table.caption ) |
// table.deleteCaption() ; // TODO: It causes an IE internal error. |
else if ( bExists && table.caption ) |
{ |
if ( document.all ) |
table.caption.innerHTML = '' ; // TODO: It causes an IE internal error if using removeChild. |
else |
table.caption.parentNode.removeChild( table.caption ) ; |
} |
if (! bExists) |
{ |
133,7 → 140,17 |
} |
oEditor.FCKUndo.SaveUndoStep() ; |
oEditor.FCK.InsertElement( table ) ; |
// START iCM MODIFICATIONS |
// Amended to ensure that newly inserted tables are not incorrectly nested in P tags, etc |
// We insert the table first and then rectify any nestings afterwards so we can re-use the |
// FCKTablesProcessor function that corrects tables on SetHTML() |
table = oEditor.FCK.InsertElementAndGetIt( table ) ; |
if ( !oEditor.FCKConfig.UseBROnCarriageReturn ) |
{ |
oEditor.FCKTablesProcessor.CheckTableNesting( table ) ; |
} |
// END iCM MODIFICATIONS |
} |
return true ; |
/trunk/api/fckeditor/editor/dialog/fck_tablecell.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_tablecell.html |
* Cell properties dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_textfield.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_textfield.html |
* Text field dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_flash/fck_flash.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_flash.js |
* Scripts related to the Flash dialog window (see fck_flash.html). |
* |
196,8 → 198,8 |
function OpenServerBrowser( type, url, width, height ) |
{ |
var iLeft = (screen.width - width) / 2 ; |
var iTop = (screen.height - height) / 2 ; |
var iLeft = (FCKConfig.ScreenWidth - width) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - height) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + width ; |
205,7 → 207,17 |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
var oWindow = window.open( url, "FCKBrowseWindow", sOptions ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( url, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( url, "FCKBrowseWindow", sOptions ) ; |
} |
function SetUrl( url ) |
/trunk/api/fckeditor/editor/dialog/fck_radiobutton.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_radiobutton.html |
* Radio Button dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_link/fck_link.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_link.js |
* Scripts related to the Link dialog window (see fck_link.html). |
* |
53,7 → 55,8 |
oRegex.UrlOnChangeProtocol.compile( '^(http|https|ftp|news)://(?=.)', 'gi' ) ; |
oRegex.UrlOnChangeTestOther = new RegExp('') ; |
oRegex.UrlOnChangeTestOther.compile( '^(javascript:|#|/)', 'gi' ) ; |
//oRegex.UrlOnChangeTestOther.compile( '^(javascript:|#|/)', 'gi' ) ; |
oRegex.UrlOnChangeTestOther.compile( '^((javascript:)|[#/\.])', 'gi' ) ; |
oRegex.ReserveTarget = new RegExp('') ; |
oRegex.ReserveTarget.compile( '^_(blank|self|top|parent)$', 'i' ) ; |
153,8 → 156,18 |
function LoadAnchorNamesAndIds() |
{ |
var aAnchors = oEditor.FCK.EditorDocument.anchors ; |
var aIds = oEditor.FCKTools.GetAllChildrenIds( oEditor.FCK.EditorDocument.body ) ; |
// Since version 2.0, the anchors are replaced in the DOM by IMGs so the user see the icon |
// to edit them. So, we must look for that images now. |
var aAnchors = new Array() ; |
var oImages = oEditor.FCK.EditorDocument.getElementsByTagName( 'IMG' ) ; |
for( var i = 0 ; i < oImages.length ; i++ ) |
{ |
if ( oImages[i].getAttribute('_fckanchor') ) |
aAnchors[ aAnchors.length ] = oEditor.FCK.GetRealElement( oImages[i] ) ; |
} |
var aIds = oEditor.FCKTools.GetAllChildrenIds( oEditor.FCK.EditorDocument.body ) ; |
bHasAnchors = ( aAnchors.length > 0 || aIds.length > 0 ) ; |
505,8 → 518,8 |
var iWidth = FCKConfig.LinkBrowserWindowWidth ; |
var iHeight = FCKConfig.LinkBrowserWindowHeight ; |
var iLeft = (screen.width - iWidth) / 2 ; |
var iTop = (screen.height - iHeight) / 2 ; |
var iLeft = (FCKConfig.ScreenWidth - iWidth) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - iHeight) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + iWidth ; |
514,8 → 527,17 |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
// Open the browser window. |
var oWindow = window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ; |
} |
function SetUrl( url ) |
/trunk/api/fckeditor/editor/dialog/fck_link.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_link.html |
* Link dialog window. |
* |
102,7 → 104,7 |
<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br /> |
<br /> |
<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /> |
<iframe name="UploadWindow" style="DISPLAY: none"></iframe> |
<iframe name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe> |
</form> |
</div> |
<div id="divTarget" style="DISPLAY: none"> |
/trunk/api/fckeditor/editor/dialog/fck_flash.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_flash.html |
* Flash Properties dialog window. |
* |
86,7 → 88,7 |
<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br /> |
<br /> |
<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /> |
<iframe name="UploadWindow" style="DISPLAY: none"></iframe> |
<iframe name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe> |
</form> |
</div> |
<div id="divAdvanced" style="DISPLAY: none"> |
/trunk/api/fckeditor/editor/dialog/fck_hiddenfield.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_hiddenfield.html |
* Hidden Field dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/common/fcknumericfield.htc |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/api/fckeditor/editor/dialog/common/fck_dialog_common.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_dialog_common.css |
* This is the CSS file used for interface details in some dialog |
* windows. |
74,5 → 76,5 |
.FCK__FieldNumeric |
{ |
behavior: url(fcknumericfield.htc) ; |
behavior: url(common/fcknumericfield.htc) ; |
} |
/trunk/api/fckeditor/editor/dialog/common/fck_dialog_common.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_dialog_common.js |
* Useful functions used by almost all dialog window pages. |
* |
/trunk/api/fckeditor/editor/dialog/fck_form.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_form.html |
* Checkbox dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_about/lgpl.html |
---|
New file |
0,0 → 1,434 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<html> |
<head> |
<title>GNU Lesser General Public License</title> |
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> |
<STYLE> |
BODY { FONT-SIZE: 12px } |
</STYLE> |
</head> |
<body> |
<H3>GNU Lesser General Public License</H3> |
<TT> |
<P>Version 2.1, February 1999</P> |
<BLOCKQUOTE> |
<P>Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite |
330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute |
verbatim copies of this license document, but changing it is not allowed.</P> |
<P>[This is the first released version of the Lesser GPL. It also counts as the |
successor of the GNU Library Public License, version 2, hence the version |
number 2.1.]</P> |
</BLOCKQUOTE> |
<H4>Preamble</H4> |
<P>The licenses for most software are designed to take away your freedom to share |
and change it. By contrast, the GNU General Public Licenses are intended to |
guarantee your freedom to share and change free software--to make sure the |
software is free for all its users. |
</P> |
<P>This license, the Lesser General Public License, applies to some specially |
designated software packages--typically libraries--of the Free Software |
Foundation and other authors who decide to use it. You can use it too, but we |
suggest you first think carefully about whether this license or the ordinary |
General Public License is the better strategy to use in any particular case, |
based on the explanations below. |
</P> |
<P>When we speak of free software, we are referring to freedom of use, not price. |
Our General Public Licenses are designed to make sure that you have the freedom |
to distribute copies of free software (and charge for this service if you |
wish); that you receive source code or can get it if you want it; that you can |
change the software and use pieces of it in new free programs; and that you are |
informed that you can do these things.</P> |
<P>To protect your rights, we need to make restrictions that forbid distributors to |
deny you these rights or to ask you to surrender these rights. These |
restrictions translate to certain responsibilities for you if you distribute |
copies of the library or if you modify it. |
</P> |
<P>For example, if you distribute copies of the library, whether gratis or for a |
fee, you must give the recipients all the rights that we gave you. You must |
make sure that they, too, receive or can get the source code. If you link other |
code with the library, you must provide complete object files to the |
recipients, so that they can relink them with the library after making changes |
to the library and recompiling it. And you must show them these terms so they |
know their rights. |
</P> |
<P>We protect your rights with a two-step method: (1) we copyright the library, and |
(2) we offer you this license, which gives you legal permission to copy, |
distribute and/or modify the library. |
</P> |
<P>To protect each distributor, we want to make it very clear that there is no |
warranty for the free library. Also, if the library is modified by someone else |
and passed on, the recipients should know that what they have is not the |
original version, so that the original author's reputation will not be affected |
by problems that might be introduced by others. |
</P> |
<P>Finally, software patents pose a constant threat to the existence of any free |
program. We wish to make sure that a company cannot effectively restrict the |
users of a free program by obtaining a restrictive license from a patent |
holder. Therefore, we insist that any patent license obtained for a version of |
the library must be consistent with the full freedom of use specified in this |
license. |
</P> |
<P>Most GNU software, including some libraries, is covered by the ordinary GNU |
General Public License. This license, the GNU Lesser General Public License, |
applies to certain designated libraries, and is quite different from the |
ordinary General Public License. We use this license for certain libraries in |
order to permit linking those libraries into non-free programs. |
</P> |
<P>When a program is linked with a library, whether statically or using a shared |
library, the combination of the two is legally speaking a combined work, a |
derivative of the original library. The ordinary General Public License |
therefore permits such linking only if the entire combination fits its criteria |
of freedom. The Lesser General Public License permits more lax criteria for |
linking other code with the library. |
</P> |
<P>We call this license the "Lesser" General Public License because it does Less to |
protect the user's freedom than the ordinary General Public License. It also |
provides other free software developers Less of an advantage over competing |
non-free programs. These disadvantages are the reason we use the ordinary |
General Public License for many libraries. However, the Lesser license provides |
advantages in certain special circumstances. |
</P> |
<P>For example, on rare occasions, there may be a special need to encourage the |
widest possible use of a certain library, so that it becomes a de-facto |
standard. To achieve this, non-free programs must be allowed to use the |
library. A more frequent case is that a free library does the same job as |
widely used non-free libraries. In this case, there is little to gain by |
limiting the free library to free software only, so we use the Lesser General |
Public License. |
</P> |
<P>In other cases, permission to use a particular library in non-free programs |
enables a greater number of people to use a large body of free software. For |
example, permission to use the GNU C Library in non-free programs enables many |
more people to use the whole GNU operating system, as well as its variant, the |
GNU/Linux operating system. |
</P> |
<P>Although the Lesser General Public License is Less protective of the users' |
freedom, it does ensure that the user of a program that is linked with the |
Library has the freedom and the wherewithal to run that program using a |
modified version of the Library. |
</P> |
<P>The precise terms and conditions for copying, distribution and modification |
follow. Pay close attention to the difference between a "work based on the |
library" and a "work that uses the library". The former contains code derived |
from the library, whereas the latter must be combined with the library in order |
to run. |
</P> |
<H4>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H4> |
<P><STRONG>0.</STRONG> This License Agreement applies to any software library or |
other program which contains a notice placed by the copyright holder or other |
authorized party saying it may be distributed under the terms of this Lesser |
General Public License (also called "this License"). Each licensee is addressed |
as "you".</P> |
<P>A "library" means a collection of software functions and/or data prepared so as |
to be conveniently linked with application programs (which use some of those |
functions and data) to form executables. |
</P> |
<P>The "Library", below, refers to any such software library or work which has been |
distributed under these terms. A "work based on the Library" means either the |
Library or any derivative work under copyright law: that is to say, a work |
containing the Library or a portion of it, either verbatim or with |
modifications and/or translated straightforwardly into another language. |
(Hereinafter, translation is included without limitation in the term |
"modification".) |
</P> |
<P>"Source code" for a work means the preferred form of the work for making |
modifications to it. For a library, complete source code means all the source |
code for all modules it contains, plus any associated interface definition |
files, plus the scripts used to control compilation and installation of the |
library.</P> |
<P>Activities other than copying, distribution and modification are not covered by |
this License; they are outside its scope. The act of running a program using |
the Library is not restricted, and output from such a program is covered only |
if its contents constitute a work based on the Library (independent of the use |
of the Library in a tool for writing it). Whether that is true depends on what |
the Library does and what the program that uses the Library does. |
</P> |
<P><STRONG>1.</STRONG> You may copy and distribute verbatim copies of the Library's |
complete source code as you receive it, in any medium, provided that you |
conspicuously and appropriately publish on each copy an appropriate copyright |
notice and disclaimer of warranty; keep intact all the notices that refer to |
this License and to the absence of any warranty; and distribute a copy of this |
License along with the Library. |
</P> |
<P>You may charge a fee for the physical act of transferring a copy, and you may at |
your option offer warranty protection in exchange for a fee. |
</P> |
<P><STRONG>2.</STRONG> You may modify your copy or copies of the Library or any |
portion of it, thus forming a work based on the Library, and copy and |
distribute such modifications or work under the terms of Section 1 above, |
provided that you also meet all of these conditions: |
</P> |
<BLOCKQUOTE> |
<P>a) The modified work must itself be a software library. |
</P> |
<P>b) You must cause the files modified to carry prominent notices stating that you |
changed the files and the date of any change.</P> |
<P>c) You must cause the whole of the work to be licensed at no charge to all third |
parties under the terms of this License. |
</P> |
<P>d) If a facility in the modified Library refers to a function or a table of data |
to be supplied by an application program that uses the facility, other than as |
an argument passed when the facility is invoked, then you must make a good |
faith effort to ensure that, in the event an application does not supply such |
function or table, the facility still operates, and performs whatever part of |
its purpose remains meaningful. |
</P> |
<P>(For example, a function in a library to compute square roots has a purpose that |
is entirely well-defined independent of the application. Therefore, Subsection |
2d requires that any application-supplied function or table used by this |
function must be optional: if the application does not supply it, the square |
root function must still compute square roots.) |
</P> |
<P>These requirements apply to the modified work as a whole. If identifiable |
sections of that work are not derived from the Library, and can be reasonably |
considered independent and separate works in themselves, then this License, and |
its terms, do not apply to those sections when you distribute them as separate |
works. But when you distribute the same sections as part of a whole which is a |
work based on the Library, the distribution of the whole must be on the terms |
of this License, whose permissions for other licensees extend to the entire |
whole, and thus to each and every part regardless of who wrote it. |
</P> |
<P>Thus, it is not the intent of this section to claim rights or contest your |
rights to work written entirely by you; rather, the intent is to exercise the |
right to control the distribution of derivative or collective works based on |
the Library. |
</P> |
<P>In addition, mere aggregation of another work not based on the Library with the |
Library (or with a work based on the Library) on a volume of a storage or |
distribution medium does not bring the other work under the scope of this |
License. |
</P> |
</BLOCKQUOTE> |
<P><STRONG>3.</STRONG> You may opt to apply the terms of the ordinary GNU General |
Public License instead of this License to a given copy of the Library. To do |
this, you must alter all the notices that refer to this License, so that they |
refer to the ordinary GNU General Public License, version 2, instead of to this |
License. (If a newer version than version 2 of the ordinary GNU General Public |
License has appeared, then you can specify that version instead if you wish.) |
Do not make any other change in these notices. |
</P> |
<P>Once this change is made in a given copy, it is irreversible for that copy, so |
the ordinary GNU General Public License applies to all subsequent copies and |
derivative works made from that copy. |
</P> |
<P>This option is useful when you wish to copy part of the code of the Library into |
a program that is not a library. |
</P> |
<P><STRONG>4.</STRONG> You may copy and distribute the Library (or a portion or |
derivative of it, under Section 2) in object code or executable form under the |
terms of Sections 1 and 2 above provided that you accompany it with the |
complete corresponding machine-readable source code, which must be distributed |
under the terms of Sections 1 and 2 above on a medium customarily used for |
software interchange. |
</P> |
<P>If distribution of object code is made by offering access to copy from a |
designated place, then offering equivalent access to copy the source code from |
the same place satisfies the requirement to distribute the source code, even |
though third parties are not compelled to copy the source along with the object |
code.</P> |
<P><STRONG>5.</STRONG> A program that contains no derivative of any portion of the |
Library, but is designed to work with the Library by being compiled or linked |
with it, is called a "work that uses the Library". Such a work, in isolation, |
is not a derivative work of the Library, and therefore falls outside the scope |
of this License. |
</P> |
<P>However, linking a "work that uses the Library" with the Library creates an |
executable that is a derivative of the Library (because it contains portions of |
the Library), rather than a "work that uses the library". The executable is |
therefore covered by this License. Section 6 states terms for distribution of |
such executables. |
</P> |
<P>When a "work that uses the Library" uses material from a header file that is |
part of the Library, the object code for the work may be a derivative work of |
the Library even though the source code is not. Whether this is true is |
especially significant if the work can be linked without the Library, or if the |
work is itself a library. The threshold for this to be true is not precisely |
defined by law. |
</P> |
<P>If such an object file uses only numerical parameters, data structure layouts |
and accessors, and small macros and small inline functions (ten lines or less |
in length), then the use of the object file is unrestricted, regardless of |
whether it is legally a derivative work. (Executables containing this object |
code plus portions of the Library will still fall under Section 6.) |
</P> |
<P>Otherwise, if the work is a derivative of the Library, you may distribute the |
object code for the work under the terms of Section 6. Any executables |
containing that work also fall under Section 6, whether or not they are linked |
directly with the Library itself. |
</P> |
<P><STRONG>6.</STRONG> As an exception to the Sections above, you may also combine |
or link a "work that uses the Library" with the Library to produce a work |
containing portions of the Library, and distribute that work under terms of |
your choice, provided that the terms permit modification of the work for the |
customer's own use and reverse engineering for debugging such modifications. |
</P> |
<P>You must give prominent notice with each copy of the work that the Library is |
used in it and that the Library and its use are covered by this License. You |
must supply a copy of this License. If the work during execution displays |
copyright notices, you must include the copyright notice for the Library among |
them, as well as a reference directing the user to the copy of this License. |
Also, you must do one of these things: |
</P> |
<BLOCKQUOTE> |
<P>a) Accompany the work with the complete corresponding machine-readable source |
code for the Library including whatever changes were used in the work (which |
must be distributed under Sections 1 and 2 above); and, if the work is an |
executable linked with the Library, with the complete machine-readable "work |
that uses the Library", as object code and/or source code, so that the user can |
modify the Library and then relink to produce a modified executable containing |
the modified Library. (It is understood that the user who changes the contents |
of definitions files in the Library will not necessarily be able to recompile |
the application to use the modified definitions.) |
</P> |
<P>b) Use a suitable shared library mechanism for linking with the Library. A |
suitable mechanism is one that (1) uses at run time a copy of the library |
already present on the user's computer system, rather than copying library |
functions into the executable, and (2) will operate properly with a modified |
version of the library, if the user installs one, as long as the modified |
version is interface-compatible with the version that the work was made with. |
</P> |
<P>c) Accompany the work with a written offer, valid for at least three years, to |
give the same user the materials specified in Subsection 6a, above, for a |
charge no more than the cost of performing this distribution. |
</P> |
<P>d) If distribution of the work is made by offering access to copy from a |
designated place, offer equivalent access to copy the above specified materials |
from the same place. |
</P> |
<P>e) Verify that the user has already received a copy of these materials or that |
you have already sent this user a copy.</P> |
</BLOCKQUOTE> |
<P>For an executable, the required form of the "work that uses the Library" must |
include any data and utility programs needed for reproducing the executable |
from it. However, as a special exception, the materials to be distributed need |
not include anything that is normally distributed (in either source or binary |
form) with the major components (compiler, kernel, and so on) of the operating |
system on which the executable runs, unless that component itself accompanies |
the executable. |
</P> |
<P>It may happen that this requirement contradicts the license restrictions of |
other proprietary libraries that do not normally accompany the operating |
system. Such a contradiction means you cannot use both them and the Library |
together in an executable that you distribute. |
</P> |
<P><STRONG>7.</STRONG> You may place library facilities that are a work based on |
the Library side-by-side in a single library together with other library |
facilities not covered by this License, and distribute such a combined library, |
provided that the separate distribution of the work based on the Library and of |
the other library facilities is otherwise permitted, and provided that you do |
these two things: |
</P> |
<BLOCKQUOTE> |
<P>a) Accompany the combined library with a copy of the same work based on the |
Library, uncombined with any other library facilities. This must be distributed |
under the terms of the Sections above. |
</P> |
<P>b) Give prominent notice with the combined library of the fact that part of it |
is a work based on the Library, and explaining where to find the accompanying |
uncombined form of the same work.</P> |
</BLOCKQUOTE> |
<P><STRONG>8.</STRONG> You may not copy, modify, sublicense, link with, or |
distribute the Library except as expressly provided under this License. Any |
attempt otherwise to copy, modify, sublicense, link with, or distribute the |
Library is void, and will automatically terminate your rights under this |
License. However, parties who have received copies, or rights, from you under |
this License will not have their licenses terminated so long as such parties |
remain in full compliance. |
</P> |
<P><STRONG>9.</STRONG> You are not required to accept this License, since you have |
not signed it. However, nothing else grants you permission to modify or |
distribute the Library or its derivative works. These actions are prohibited by |
law if you do not accept this License. Therefore, by modifying or distributing |
the Library (or any work based on the Library), you indicate your acceptance of |
this License to do so, and all its terms and conditions for copying, |
distributing or modifying the Library or works based on it. |
</P> |
<P><STRONG>10.</STRONG> Each time you redistribute the Library (or any work based |
on the Library), the recipient automatically receives a license from the |
original licensor to copy, distribute, link with or modify the Library subject |
to these terms and conditions. You may not impose any further restrictions on |
the recipients' exercise of the rights granted herein. You are not responsible |
for enforcing compliance by third parties with this License. |
</P> |
<P><STRONG>11.</STRONG> If, as a consequence of a court judgment or allegation of |
patent infringement or for any other reason (not limited to patent issues), |
conditions are imposed on you (whether by court order, agreement or otherwise) |
that contradict the conditions of this License, they do not excuse you from the |
conditions of this License. If you cannot distribute so as to satisfy |
simultaneously your obligations under this License and any other pertinent |
obligations, then as a consequence you may not distribute the Library at all. |
For example, if a patent license would not permit royalty-free redistribution |
of the Library by all those who receive copies directly or indirectly through |
you, then the only way you could satisfy both it and this License would be to |
refrain entirely from distribution of the Library. |
</P> |
<P>If any portion of this section is held invalid or unenforceable under any |
particular circumstance, the balance of the section is intended to apply, and |
the section as a whole is intended to apply in other circumstances. |
</P> |
<P>It is not the purpose of this section to induce you to infringe any patents or |
other property right claims or to contest validity of any such claims; this |
section has the sole purpose of protecting the integrity of the free software |
distribution system which is implemented by public license practices. Many |
people have made generous contributions to the wide range of software |
distributed through that system in reliance on consistent application of that |
system; it is up to the author/donor to decide if he or she is willing to |
distribute software through any other system and a licensee cannot impose that |
choice. |
</P> |
<P>This section is intended to make thoroughly clear what is believed to be a |
consequence of the rest of this License. |
</P> |
<P><STRONG>12.</STRONG> If the distribution and/or use of the Library is restricted |
in certain countries either by patents or by copyrighted interfaces, the |
original copyright holder who places the Library under this License may add an |
explicit geographical distribution limitation excluding those countries, so |
that distribution is permitted only in or among countries not thus excluded. In |
such case, this License incorporates the limitation as if written in the body |
of this License. |
</P> |
<P><STRONG>13.</STRONG> The Free Software Foundation may publish revised and/or new |
versions of the Lesser General Public License from time to time. Such new |
versions will be similar in spirit to the present version, but may differ in |
detail to address new problems or concerns.</P> |
<P>Each version is given a distinguishing version number. If the Library specifies |
a version number of this License which applies to it and "any later version", |
you have the option of following the terms and conditions either of that |
version or of any later version published by the Free Software Foundation. If |
the Library does not specify a license version number, you may choose any |
version ever published by the Free Software Foundation. |
</P> |
<P><STRONG>14.</STRONG> If you wish to incorporate parts of the Library into other |
free programs whose distribution conditions are incompatible with these, write |
to the author to ask for permission. For software which is copyrighted by the |
Free Software Foundation, write to the Free Software Foundation; we sometimes |
make exceptions for this. Our decision will be guided by the two goals of |
preserving the free status of all derivatives of our free software and of |
promoting the sharing and reuse of software generally. |
</P> |
<P>NO WARRANTY |
</P> |
<P><STRONG>15. </STRONG>BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT |
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR |
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE |
QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE |
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR |
CORRECTION. |
</P> |
<P><STRONG>16.</STRONG> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO |
IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT |
OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS |
OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN |
IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
DAMAGES. |
</P> |
<H4><STRONG>END OF TERMS AND CONDITIONS</STRONG></H4> |
</TT> |
</body> |
</html> |
/trunk/api/fckeditor/editor/dialog/fck_anchor.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_anchor.html |
* Anchor dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_template.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_template.html |
* Template selection dialog window. |
* |
139,14 → 141,14 |
var sInner = '<table><tr>' ; |
if ( oTemplate.Image ) |
sInner += '<td valign="top"><img src="' + oTemplate.Image + '"></td>' ; |
sInner += '<td valign="top"><img src="' + oTemplate.Image + '"><\/td>' ; |
sInner += '<td valign="top"><div class="TplTitle">' + oTemplate.Title + '</div>' ; |
sInner += '<td valign="top"><div class="TplTitle">' + oTemplate.Title + '<\/div>' ; |
if ( oTemplate.Description ) |
sInner += '<div>' + oTemplate.Description + '</div>' ; |
sInner += '<div>' + oTemplate.Description + '<\/div>' ; |
sInner += '</td></tr></table>' ; |
sInner += '<\/td><\/tr><\/table>' ; |
oItemDiv.innerHTML = sInner ; |
/trunk/api/fckeditor/editor/dialog/fck_button.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_button.html |
* Button dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_select/fck_select.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_select.js |
* Scripts for the fck_select.html page. |
* |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/data.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: data.js |
* Scripts for the fck_universalkey.html page. |
* Definition des 104 caracteres en hexa unicode. |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/dialogue.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: dialogue.js |
* Scripts for the fck_universalkey.html page. |
* |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/diacritic.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: diacritic.js |
* Scripts for the fck_universalkey.html page. |
* |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/fck_universalkey.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_universalkey.css |
* CSS styles for the Universal Keyboard. |
* |
/trunk/api/fckeditor/editor/dialog/fck_universalkey/multihexa.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: multihexa.js |
* Scripts for the fck_universalkey.html page. |
* Definition des 104 caracteres en hexa unicode. |
223,23 → 225,29 |
document.cookie=escape("langue")+"="+escape(inval)+"; "+"expires="+exp.toGMTString() |
} |
} |
// Arabic Keystroke Translator |
function arkey(a) { |
if ((document.layers)|(navigator.userAgent.indexOf("MSIE 4")>-1)|(langue!="Arabic")) return true; |
keyCode=event.keyCode; |
entry=true; |
cont=event.srcElement ; |
function arkey(e) { |
if ((document.layers)|(navigator.userAgent.indexOf("MSIE 4")>-1)|(langue!="Arabic")) return true; |
if (!e) var e = window.event; |
if (e.keyCode) keyCode = e.keyCode; |
else if (e.which) keyCode = e.which; |
var character = String.fromCharCode(keyCode); |
entry = true; |
cont=e.srcElement || e.currentTarget || e.target; |
if (keyCode>64 && keyCode<91) { |
entry=false; |
source='ش لاؤ ي ث ب ل ا ه ت ن م ة ى خ ح ض ق س ف ع ر ص ء غ ئ '; |
shsource='Ù ÙØ¢} ] Ù [ Ùأأ ÷ Ù Ø / Ø¢ × Ø Ù Ù Ù ÙØ¥ { ٠٠إ ~'; |
if (event.shiftKey) cont.value += shsource.substr((keyCode-64)*2-2,2); |
if (e.shiftKey) cont.value += shsource.substr((keyCode-64)*2-2,2); |
else |
cont.value += source.substr((keyCode-64)*2-2,2); |
if (cont.value.substr(cont.value.length-1,1)==' ') cont.value=cont.value.substr(0,cont.value.length-1); |
} |
if (event.shiftKey) { |
if (e.shiftKey) { |
if (keyCode==186) {cont.value += ':';entry=false;} |
if (keyCode==188) {cont.value += ',';entry=false;} |
if (keyCode==190) {cont.value += '.';entry=false;} |
248,7 → 256,7 |
if (keyCode==219) {cont.value += '<';entry=false;} |
if (keyCode==221) {cont.value += '>';entry=false;} |
} else { |
if (keyCode==186) {cont.value += 'ك';entry=false;} |
if (keyCode==186||keyCode==59) {cont.value += 'ك';entry=false;} |
if (keyCode==188) {cont.value += 'و';entry=false;} |
if (keyCode==190) {cont.value += 'ز';entry=false;} |
if (keyCode==191) {cont.value += 'ظ';entry=false;} |
257,10 → 265,45 |
if (keyCode==221) {cont.value += 'د';entry=false;} |
if (keyCode==222) {cont.value += 'ط';entry=false;} |
} |
return entry; |
} |
function hold_it(e){ |
if ((document.layers)|(navigator.userAgent.indexOf("MSIE 4")>-1)|(langue!="Arabic")) return true; |
var keyCode; |
if (!e) var e = window.event; |
if (e.keyCode) keyCode = e.keyCode; |
else if (e.which) keyCode = e.which; |
var character = String.fromCharCode(keyCode); |
switch(keyCode){ |
case 186: |
case 188: |
case 190: |
case 191: |
case 192: |
case 219: |
case 221: |
case 222: |
case 116: |
case 59: |
case 47: |
case 46: |
case 44: |
case 39: |
return false; |
case 92: |
return true; |
} |
if (keyCode<63) return true; |
return false; |
} |
return entry; |
var obj = document.getElementById( 'uni_area' ); |
if ( obj && langue=="Arabic"){ |
with (navigator) { |
if (appName=="Netscape") |
obj.onkeypress = hold_it; |
} |
var obj = document.getElementById( 'uni_area' ); |
if ( obj ) |
obj.onkeydown = arkey |
obj.onkeydown = arkey; |
} |
// Arabic Keystroke Translator End |
/trunk/api/fckeditor/editor/dialog/fck_image/fck_image.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_image.js |
* Scripts related to the Image dialog window (see fck_image.html). |
* |
337,8 → 339,8 |
{ |
sActualBrowser = type ; |
var iLeft = (screen.width - width) / 2 ; |
var iTop = (screen.height - height) / 2 ; |
var iLeft = (FCKConfig.ScreenWidth - width) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - height) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + width ; |
346,7 → 348,17 |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
var oWindow = window.open( url, "FCKBrowseWindow", sOptions ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( url, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( url, "FCKBrowseWindow", sOptions ) ; |
} |
var sActualBrowser ; |
/trunk/api/fckeditor/editor/dialog/fck_select.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_select.html |
* Select dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_universalkey.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_universalkey.html |
* Unicode Keyboard dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_docprops.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_docprops.html |
* Link dialog window. |
* |
370,8 → 372,8 |
function BrowseServerBack() |
{ |
var iLeft = (screen.width - FCKConfig.ImageBrowserWindowWidth) / 2 ; |
var iTop = (screen.height - FCKConfig.ImageBrowserWindowHeight) / 2 ; |
var iLeft = (FCKConfig.ScreenWidth - FCKConfig.ImageBrowserWindowWidth) / 2 ; |
var iTop = (FCKConfig.ScreenHeight - FCKConfig.ImageBrowserWindowHeight) / 2 ; |
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; |
sOptions += ",width=" + FCKConfig.LinkBrowserWindowWidth ; |
379,7 → 381,17 |
sOptions += ",left=" + iLeft ; |
sOptions += ",top=" + iTop ; |
var oWindow = window.open( FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; |
if ( oEditor.FCKBrowserInfo.IsIE ) |
{ |
// The following change has been made otherwise IE will open the file |
// browser on a different server session (on some cases): |
// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 |
// by Simone Chiaretta. |
var oWindow = oEditor.window.open( FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; |
oWindow.opener = window ; |
} |
else |
window.open( FCKConfig.ImageBrowserURL, "FCKBrowseWindow", sOptions ) ; |
} |
function SetUrl( url ) |
/trunk/api/fckeditor/editor/dialog/fck_source.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_source.html |
* Source editor dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_smiley.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_smiley.html |
* Smileys (emoticons) dialog window. |
* |
76,10 → 78,10 |
} |
else |
document.write("<TD width='1%' class='DarkBackground'> ") ; |
document.write("</TD>") ; |
document.write("<\/TD>") ; |
i++ ; |
} |
document.write("</TR>") ; |
document.write("<\/TR>") ; |
} |
//--> |
</script> |
/trunk/api/fckeditor/editor/dialog/fck_about.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_about.html |
* "About" dialog window. |
* |
26,6 → 28,7 |
var FCKLang = oEditor.FCKLang ; |
window.parent.AddTab( 'About', FCKLang.DlgAboutAboutTab ) ; |
window.parent.AddTab( 'License', 'License' ) ; |
window.parent.AddTab( 'BrowserInfo', FCKLang.DlgAboutBrowserInfoTab ) ; |
// Function called when a dialog tag is selected. |
32,6 → 35,7 |
function OnDialogTabChange( tabCode ) |
{ |
ShowE('divAbout', ( tabCode == 'About' ) ) ; |
ShowE('divLicense', ( tabCode == 'License' ) ) ; |
ShowE('divInfo' , ( tabCode == 'BrowserInfo' ) ) ; |
} |
68,7 → 72,7 |
<td align="center" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"> |
<span fckLang="DlgAboutVersion">version</span> |
<br> |
<b>2.0</b></td> |
<b>2.1</b></td> |
</tr> |
</table> |
</td> |
75,23 → 79,39 |
</tr> |
<tr height="100%"> |
<td align="center"> |
<br> |
<span style="FONT-SIZE: 14px" dir="ltr">Support <b>Open Source</b> software.<br> |
<b><a href="http://www.fckeditor.net/donate/?about" target="_blank" title="Click to go to the donation page"> |
What about a donation today?</a></b> </span> |
<br><br><br> |
<span fckLang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/" target="_blank"> |
http://www.fckeditor.net/</a>. |
<br> |
Copyright © 2003-2005 <a href="#" onclick="SendEMail();">Frederico Caldeira |
Knabben</a> |
<br> |
<br> |
</td> |
</tr> |
<tr> |
<td align="center"> |
<img alt="" src="fck_about/logo_fredck.gif" width="87" height="36"> |
</td> |
</tr> |
</table> |
</div> |
<div id="divLicense" style="DISPLAY: none"> |
<table height="100%" width="100%"> |
<tr> |
<td> |
<span fckLang="DlgAboutLicense">Licensed under the terms of the GNU Lesser General |
Public License</span> |
<br> |
<a href="http://www.opensource.org/licenses/lgpl-license.php" target="_blank">http://www.opensource.org/licenses/lgpl-license.php</a> |
<br> |
<br> |
<span fckLang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/" target="_blank"> |
http://www.fckeditor.net/</a>. |
</td> |
</tr> |
<tr> |
<td align="center"> |
<img alt="" src="fck_about/logo_fredck.gif" width="87" height="36"> |
<td height="100%"> |
<iframe height="100%" width="100%" src="fck_about/lgpl.html"></iframe> |
</td> |
</tr> |
</table> |
102,9 → 122,9 |
<td> |
<script language="javascript"> |
<!-- |
document.write( '<b>User Agent</b><br>' + window.navigator.userAgent + '<br><br>' ) ; |
document.write( '<b>Browser</b><br>' + window.navigator.appName + ' ' + window.navigator.appVersion + '<br><br>' ) ; |
document.write( '<b>Platform</b><br>' + window.navigator.platform + '<br><br>' ) ; |
document.write( '<b>User Agent<\/b><br>' + window.navigator.userAgent + '<br><br>' ) ; |
document.write( '<b>Browser<\/b><br>' + window.navigator.appName + ' ' + window.navigator.appVersion + '<br><br>' ) ; |
document.write( '<b>Platform<\/b><br>' + window.navigator.platform + '<br><br>' ) ; |
var sUserLang = '?' ; |
113,7 → 133,7 |
else if ( window.navigator.userLanguage ) |
sUserLang = window.navigator.userLanguage.toLowerCase() ; |
document.write( '<b>User Language</b><br>' + sUserLang ) ; |
document.write( '<b>User Language<\/b><br>' + sUserLang ) ; |
//--> |
</script> |
</td> |
/trunk/api/fckeditor/editor/dialog/fck_replace.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_replace.html |
* "Replace" dialog box window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_listprop.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_listprop.html |
* Bulleted List dialog window. |
* |
77,7 → 79,7 |
<select id="selBulleted" style="DISPLAY: none"> |
<option value="" selected></option> |
<option value="circle" fckLang="DlgLstTypeCircle">Circle</option> |
<option value="disk" fckLang="DlgLstTypeDisk">Disk</option> |
<option value="disc" fckLang="DlgLstTypeDisc">Disc</option> |
<option value="square" fckLang="DlgLstTypeSquare">Square</option> |
</select> |
<select id="selNumbered" style="DISPLAY: none"> |
/trunk/api/fckeditor/editor/dialog/fck_textarea.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_textarea.html |
* Text Area dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_specialchar.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_specialchar.html |
* Special Chars Selector dialog window. |
* |
65,7 → 67,7 |
<td width="100%"> |
<table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%"> |
<script type="text/javascript"> |
var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"] ; |
var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"] ; |
var cols = 20 ; |
82,10 → 84,10 |
} |
else |
document.write("<TD class='DarkBackground'> ") ; |
document.write("</TD>") ; |
document.write("<\/TD>") ; |
i++ ; |
} |
document.write("</TR>") ; |
document.write("<\/TR>") ; |
} |
</script> |
</table> |
/trunk/api/fckeditor/editor/dialog/fck_colorselector.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_colorselector.html |
* Color Selection dialog window. |
* |
/trunk/api/fckeditor/editor/dialog/fck_image.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_image.html |
* Image Properties dialog window. |
* |
154,7 → 156,7 |
<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br /> |
<br /> |
<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /> |
<iframe name="UploadWindow" style="DISPLAY: none"></iframe> |
<iframe name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe> |
</form> |
</div> |
<div id="divLink" style="DISPLAY: none"> |
/trunk/api/fckeditor/editor/fckeditor.original.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckeditor.original.html |
* Main page that holds the editor. |
* |
53,7 → 55,7 |
<td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" |
unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> |
<td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> |
<td width="1" style="BACKGROUND-COLOR: #696969"></td> |
<td width="1" class="TB_SideBorder"></td> |
</tr> |
</table> |
</td> |
/trunk/api/fckeditor/editor/lang/ru.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ru.js |
* Russian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Не известное имя команды \"%1\"", |
NotImplemented : "Команда не реализована", |
UnknownToolbarSet : "Панель инструментов \"%1\" не существует", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "ОК", |
413,7 → 416,7 |
NumberedListProp : "Свойства нумерованного списка", |
DlgLstType : "Тип", |
DlgLstTypeCircle : "Круг", |
DlgLstTypeDisk : "Диск", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Квадрат", |
DlgLstTypeNumbers : "Номера (1, 2, 3)", |
DlgLstTypeLCase : "Буквы нижнего регистра (a, b, c)", |
/trunk/api/fckeditor/editor/lang/el.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: el.js |
* Greek language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Άγνωστή εντολή \"%1\"", |
NotImplemented : "Η εντολή δεν έχει ενεργοποιηθεί", |
UnknownToolbarSet : "Η μπάρα εργαλείων \"%1\" δεν υπάρχει", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numbered List Properties", //MISSING |
DlgLstType : "Type", //MISSING |
DlgLstTypeCircle : "Circle", //MISSING |
DlgLstTypeDisk : "Disk", //MISSING |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", //MISSING |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING |
/trunk/api/fckeditor/editor/lang/gl.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: gl.js |
* Galician language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nome de comando descoñecido \"%1\"", |
NotImplemented : "Comando non implementado", |
UnknownToolbarSet : "O conxunto de ferramentas \"%1\" non existe", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Propriedades da Lista de Numeración", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Círculo", |
DlgLstTypeDisk : "Disco", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Cuadrado", |
DlgLstTypeNumbers : "Números (1, 2, 3)", |
DlgLstTypeLCase : "Letras Minúsculas (a, b, c)", |
/trunk/api/fckeditor/editor/lang/ar.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ar.js |
* Arabic language file. |
* |
131,6 → 133,7 |
UnknownCommand : "أمر غير معروف \"%1\"", |
NotImplemented : "لم يتم دعم هذا الأمر", |
UnknownToolbarSet : "لم أتمكن من العثور على طقم الأدوات \"%1\" ", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "موافق", |
413,7 → 416,7 |
NumberedListProp : "خصائص التعداد الرقمي", |
DlgLstType : "النوع", |
DlgLstTypeCircle : "دائرة", |
DlgLstTypeDisk : "قرص", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "مربع", |
DlgLstTypeNumbers : "أرقام (1، 2، 3)َ", |
DlgLstTypeLCase : "حروف صغيرة (a, b, c)َ", |
/trunk/api/fckeditor/editor/lang/en.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: en.js |
* English language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Unknown command name \"%1\"", |
NotImplemented : "Command not implemented", |
UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numbered List Properties", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Circle", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", |
DlgLstTypeSquare : "Square", |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", |
/trunk/api/fckeditor/editor/lang/en-au.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: en-au.js |
* English (Australia) language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Unknown command name \"%1\"", |
NotImplemented : "Command not implemented", |
UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Numbered List Properties", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Circle", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", |
/trunk/api/fckeditor/editor/lang/fr.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fr.js |
* French language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nom de commande inconnu \"%1\"", |
NotImplemented : "Commande non encore écrite", |
UnknownToolbarSet : "La barre d'outils \"%1\" n'existe pas", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Propriétés de Numérotée", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Cercle", |
DlgLstTypeDisk : "Disque", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Carré", |
DlgLstTypeNumbers : "Nombres (1, 2, 3)", |
DlgLstTypeLCase : "Lettres Minuscules (a, b, c)", |
/trunk/api/fckeditor/editor/lang/et.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: et.js |
* Estonian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Tundmatu käsunimi \"%1\"", |
NotImplemented : "Käsku ei täidetud", |
UnknownToolbarSet : "Tööriistariba \"%1\" ei eksisteeri", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numbered List Properties", //MISSING |
DlgLstType : "Type", //MISSING |
DlgLstTypeCircle : "Circle", //MISSING |
DlgLstTypeDisk : "Disk", //MISSING |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", //MISSING |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING |
/trunk/api/fckeditor/editor/lang/nl.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: nl.js |
* Dutch language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Onbekende opdracht naam \"%1\"", |
NotImplemented : "Opdracht niet geïmplementeerd.", |
UnknownToolbarSet : "Menubalk \"%1\" bestaat niet.", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Eigenschappen genummerde opsommingslijst", |
DlgLstType : "Soort", |
DlgLstTypeCircle : "Cirkel", |
DlgLstTypeDisk : "Schijf", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Vierkant", |
DlgLstTypeNumbers : "Nummerks (1, 2, 3)", |
DlgLstTypeLCase : "Kleine letters (a, b, c)", |
/trunk/api/fckeditor/editor/lang/hr.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: hr.js |
* Croatian language file. |
* |
36,15 → 38,15 |
SelectAll : "Odaberi sve", |
RemoveFormat : "Ukloni formatiranje", |
InsertLinkLbl : "Link", |
InsertLink : "Ubaci/promjeni link", |
InsertLink : "Ubaci/promijeni link", |
RemoveLink : "Ukloni link", |
Anchor : "Ubaci/promjeni sidro", |
Anchor : "Ubaci/promijeni sidro", |
InsertImageLbl : "Slika", |
InsertImage : "Ubaci/promjeni sliku", |
InsertImage : "Ubaci/promijeni sliku", |
InsertFlashLbl : "Flash", |
InsertFlash : "Ubaci/promjeni Flash", |
InsertFlash : "Ubaci/promijeni Flash", |
InsertTableLbl : "Tablica", |
InsertTable : "Ubaci/promjeni tablicu", |
InsertTable : "Ubaci/promijeni tablicu", |
InsertLineLbl : "Linija", |
InsertLine : "Ubaci vodoravnu liniju", |
InsertSpecialCharLbl: "Posebni karakteri", |
54,7 → 56,7 |
About : "O FCKeditoru", |
Bold : "Podebljaj", |
Italic : "Ukosi", |
Underline : "Podcrtano", |
Underline : "Potcrtano", |
StrikeThrough : "Precrtano", |
Subscript : "Subscript", |
Superscript : "Superscript", |
95,7 → 97,7 |
ImageButton : "Image Button", |
// Context Menu |
EditLink : "Promjeni link", |
EditLink : "Promijeni link", |
InsertRow : "Ubaci red", |
DeleteRows : "Izbriši redove", |
InsertColumn : "Ubaci kolonu", |
131,6 → 133,7 |
UnknownCommand : "Nepoznata naredba \"%1\"", |
NotImplemented : "Naredba nije implementirana", |
UnknownToolbarSet : "Traka s alatima \"%1\" ne postoji", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
228,8 → 231,8 |
DlgLnkTargetTop : "Vršni prozor (_top)", |
DlgLnkTargetFrameName : "Ime ciljnog okvira", |
DlgLnkPopWinName : "Naziv popup prozora", |
DlgLnkPopWinFeat : "Mogučnosti popup prozora", |
DlgLnkPopResize : "Promjenjljive veličine", |
DlgLnkPopWinFeat : "Mogućnosti popup prozora", |
DlgLnkPopResize : "Promjenljive veličine", |
DlgLnkPopLocation : "Traka za lokaciju", |
DlgLnkPopMenu : "Izborna traka", |
DlgLnkPopScroll : "Scroll traka", |
264,7 → 267,7 |
DlgTableColumns : "Kolona", |
DlgTableBorder : "Veličina okvira", |
DlgTableAlign : "Poravnanje", |
DlgTableAlignNotSet : "<nije postavljeno>", |
DlgTableAlignNotSet : "<nije postavljeno>", |
DlgTableAlignLeft : "Lijevo", |
DlgTableAlignCenter : "Središnje", |
DlgTableAlignRight : "Desno", |
283,16 → 286,16 |
DlgCellWidthPc : "postotaka", |
DlgCellHeight : "Visina", |
DlgCellWordWrap : "Word Wrap", |
DlgCellWordWrapNotSet : "<nije postavljeno>", |
DlgCellWordWrapNotSet : "<nije postavljeno>", |
DlgCellWordWrapYes : "Da", |
DlgCellWordWrapNo : "Ne", |
DlgCellHorAlign : "Vodoravno poravnanje", |
DlgCellHorAlignNotSet : "<nije postavljeno>", |
DlgCellHorAlignNotSet : "<nije postavljeno>", |
DlgCellHorAlignLeft : "Lijevo", |
DlgCellHorAlignCenter : "Središnje", |
DlgCellHorAlignRight: "Desno", |
DlgCellVerAlign : "Okomito poravnanje", |
DlgCellVerAlignNotSet : "<nije postavljeno>", |
DlgCellVerAlignNotSet : "<nije postavljeno>", |
DlgCellVerAlignTop : "Gornje", |
DlgCellVerAlignMiddle : "Srednišnje", |
DlgCellVerAlignBottom : "Donje", |
311,7 → 314,7 |
// Replace Dialog |
DlgReplaceTitle : "Zamijeni", |
DlgReplaceFindLbl : "Pronađi:", |
DlgReplaceReplaceLbl : "Zamijeni sa:", |
DlgReplaceReplaceLbl : "Zamijeni s:", |
DlgReplaceCaseChk : "Usporedi mala/velika slova", |
DlgReplaceReplaceBtn : "Zamijeni", |
DlgReplaceReplAllBtn : "Zamijeni sve", |
345,7 → 348,7 |
// Speller Pages Dialog |
DlgSpellNotInDic : "Nije u rječniku", |
DlgSpellChangeTo : "Promjeni u", |
DlgSpellChangeTo : "Promijeni u", |
DlgSpellBtnIgnore : "Zanemari", |
DlgSpellBtnIgnoreAll : "Zanemari sve", |
DlgSpellBtnReplace : "Zamijeni", |
356,7 → 359,7 |
DlgSpellNoMispell : "Provjera završena: Nema grešaka", |
DlgSpellNoChanges : "Provjera završena: Nije napravljena promjena", |
DlgSpellOneChange : "Provjera završena: Jedna riječ promjenjena", |
DlgSpellManyChanges : "Provjera završena: Promjenjeno %1 riječi", |
DlgSpellManyChanges : "Provjera završena: Promijenjeno %1 riječi", |
IeSpellDownload : "Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?", |
384,7 → 387,7 |
DlgSelectOpText : "Tekst", |
DlgSelectOpValue : "Vrijednost", |
DlgSelectBtnAdd : "Dodaj", |
DlgSelectBtnModify : "Promjeni", |
DlgSelectBtnModify : "Promijeni", |
DlgSelectBtnUp : "Gore", |
DlgSelectBtnDown : "Dolje", |
DlgSelectBtnSetValue : "Postavi kao odabranu vrijednost", |
398,7 → 401,7 |
// Text Field Dialog |
DlgTextName : "Ime", |
DlgTextValue : "Vrijednost", |
DlgTextCharWidth : "irina", |
DlgTextCharWidth : "Širina", |
DlgTextMaxChars : "Najviše karaktera", |
DlgTextType : "Vrsta", |
DlgTextTypeText : "Tekst", |
413,7 → 416,7 |
NumberedListProp : "Svojstva brojčane liste", |
DlgLstType : "Vrsta", |
DlgLstTypeCircle : "Krug", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kvadrat", |
DlgLstTypeNumbers : "Brojevi (1, 2, 3)", |
DlgLstTypeLCase : "Mala slova (a, b, c)", |
/trunk/api/fckeditor/editor/lang/mn.js |
---|
New file |
0,0 → 1,475 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: mn.js |
* Mongolian language file. |
* |
* File Authors: |
* Lkamtseren ODONBAATAR (odonbaatarl@yahoo.com) |
*/ |
var FCKLang = |
{ |
// Language direction : "ltr" (left to right) or "rtl" (right to left). |
Dir : "ltr", |
ToolbarCollapse : "Багажны хэсэг эвдэх", |
ToolbarExpand : "Багажны хэсэг өргөтгөх", |
// Toolbar Items and Context Menu |
Save : "Хадгалах", |
NewPage : "Шинэ хуудас", |
Preview : "Уридчлан харах", |
Cut : "Хайчлах", |
Copy : "Хуулах", |
Paste : "Буулгах", |
PasteText : "plain text-ээс буулгах", |
PasteWord : "Word-оос буулгах", |
Print : "Хэвлэх", |
SelectAll : "Бүгдийг нь сонгох", |
RemoveFormat : "Формат авч хаях", |
InsertLinkLbl : "Линк", |
InsertLink : "Линк Оруулах/Засварлах", |
RemoveLink : "Линк авч хаях", |
Anchor : "Insert/Edit Anchor", //MISSING |
InsertImageLbl : "Зураг", |
InsertImage : "Зураг Оруулах/Засварлах", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertTableLbl : "Хүснэгт", |
InsertTable : "Хүснэгт Оруулах/Засварлах", |
InsertLineLbl : "Зураас", |
InsertLine : "Хөндлөн зураас оруулах", |
InsertSpecialCharLbl: "Онцгой тэмдэгт", |
InsertSpecialChar : "Онцгой тэмдэгт оруулах", |
InsertSmileyLbl : "Тодорхойлолт", |
InsertSmiley : "Тодорхойлолт оруулах", |
About : "FCKeditor-н тухай", |
Bold : "Тод бүдүүн", |
Italic : "Налуу", |
Underline : "Доогуур нь зураастай болгох", |
StrikeThrough : "Дундуур нь зураастай болгох", |
Subscript : "Суурь болгох", |
Superscript : "Зэрэг болгох", |
LeftJustify : "Зүүн талд байрлуулах", |
CenterJustify : "Төвд байрлуулах", |
RightJustify : "Баруун талд байрлуулах", |
BlockJustify : "Блок хэлбэрээр байрлуулах", |
DecreaseIndent : "Догол мөр нэмэх", |
IncreaseIndent : "Догол мөр хасах", |
Undo : "Хүчингүй болгох", |
Redo : "Өмнөх үйлдлээ сэргээх", |
NumberedListLbl : "Дугаарлагдсан жагсаалт", |
NumberedList : "Дугаарлагдсан жагсаалт Оруулах/Авах", |
BulletedListLbl : "Цэгтэй жагсаалт", |
BulletedList : "Цэгтэй жагсаалт Оруулах/Авах", |
ShowTableBorders : "Хүснэгтийн хүрээг үзүүлэх", |
ShowDetails : "Деталчлан үзүүлэх", |
Style : "Загвар", |
FontFormat : "Формат", |
Font : "Фонт", |
FontSize : "Хэмжээ", |
TextColor : "Фонтны өнгө", |
BGColor : "Фонны өнгө", |
Source : "Код", |
Find : "Хайх", |
Replace : "Солих", |
SpellCheck : "Check Spell", //MISSING |
UniversalKeyboard : "Universal Keyboard", //MISSING |
Form : "Form", //MISSING |
Checkbox : "Checkbox", //MISSING |
RadioButton : "Radio Button", //MISSING |
TextField : "Text Field", //MISSING |
Textarea : "Textarea", //MISSING |
HiddenField : "Hidden Field", //MISSING |
Button : "Button", //MISSING |
SelectionField : "Selection Field", //MISSING |
ImageButton : "Image Button", //MISSING |
// Context Menu |
EditLink : "Холбоос засварлах", |
InsertRow : "Мөр оруулах", |
DeleteRows : "Мөр устгах", |
InsertColumn : "Багана оруулах", |
DeleteColumns : "Багана устгах", |
InsertCell : "Нүх оруулах", |
DeleteCells : "Нүх устгах", |
MergeCells : "Нүх нэгтэх", |
SplitCell : "Нүх тусгайрлах", |
CellProperties : "Хоосон зайн шинж чанар", |
TableProperties : "Хүснэгт", |
ImageProperties : "Зураг", |
FlashProperties : "Flash Properties", //MISSING |
AnchorProp : "Anchor Properties", //MISSING |
ButtonProp : "Button Properties", //MISSING |
CheckboxProp : "Checkbox Properties", //MISSING |
HiddenFieldProp : "Hidden Field Properties", //MISSING |
RadioButtonProp : "Radio Button Properties", //MISSING |
ImageButtonProp : "Image Button Properties", //MISSING |
TextFieldProp : "Text Field Properties", //MISSING |
SelectionFieldProp : "Selection Field Properties", //MISSING |
TextareaProp : "Textarea Properties", //MISSING |
FormProp : "Form Properties", //MISSING |
FontFormats : "Хэвийн;Formatted;Хаяг;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Paragraph (DIV)", |
// Alerts and Messages |
ProcessingXHTML : "XHTML үйл явц явагдаж байна. Хүлээнэ үү...", |
Done : "Хийх", |
PasteWordConfirm : "Word-оос хуулсан текстээ санаж байгааг нь буулгахыг та хүсч байна уу. Та текст-ээ буулгахын өмнө цэвэрлэх үү?", |
NotCompatiblePaste : "Энэ комманд Internet Explorer-ын 5.5 буюу түүнээс дээш хувилбарт идвэхшинэ. Та цэвэрлэхгүйгээр буулгахыг хүсч байна?", |
UnknownToolbarItem : "Багажны хэсгийн \"%1\" item мэдэгдэхгүй байна", |
UnknownCommand : "\"%1\" комманд нэр мэдагдэхгүй байна", |
NotImplemented : "Зөвшөөрөгдөхгүй комманд", |
UnknownToolbarSet : "Багажны хэсэгт \"%1\" оноох, үүсээгүй байна", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
DlgBtnCancel : "Болих", |
DlgBtnClose : "Хаах", |
DlgBtnBrowseServer : "Browse Server", //MISSING |
DlgAdvancedTag : "Нэмэлт", |
DlgOpOther : "<Other>", //MISSING |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
// General Dialogs Labels |
DlgGenNotSet : "<Оноохгүй>", |
DlgGenId : "Id", |
DlgGenLangDir : "Хэлний чиглэл", |
DlgGenLangDirLtr : "Зүүнээс баруун (LTR)", |
DlgGenLangDirRtl : "Баруунаас зүүн (RTL)", |
DlgGenLangCode : "Хэлний код", |
DlgGenAccessKey : "Холбох түлхүүр", |
DlgGenName : "Нэр", |
DlgGenTabIndex : "Tab индекс", |
DlgGenLongDescr : "URL-ын тайлбар", |
DlgGenClass : "Stylesheet классууд", |
DlgGenTitle : "Зөвлөлдөх гарчиг", |
DlgGenContType : "Зөвлөлдөх төрлийн агуулга", |
DlgGenLinkCharset : "Тэмдэгт оноох нөөцөд холбогдсон", |
DlgGenStyle : "Загвар", |
// Image Dialog |
DlgImgTitle : "Зураг", |
DlgImgInfoTab : "Зурагны мэдээлэл", |
DlgImgBtnUpload : "Үүнийг сервэррүү илгээ", |
DlgImgURL : "URL", |
DlgImgUpload : "Хуулах", |
DlgImgAlt : "Тайлбар текст", |
DlgImgWidth : "Өргөн", |
DlgImgHeight : "Өндөр", |
DlgImgLockRatio : "Lock Ratio", |
DlgBtnResetSize : "хэмжээ дахин оноох", |
DlgImgBorder : "Хүрээ", |
DlgImgHSpace : "Хөндлөн зай", |
DlgImgVSpace : "Босоо зай", |
DlgImgAlign : "Эгнээ", |
DlgImgAlignLeft : "Зүүн", |
DlgImgAlignAbsBottom: "Abs доод талд", |
DlgImgAlignAbsMiddle: "Abs Дунд талд", |
DlgImgAlignBaseline : "Baseline", |
DlgImgAlignBottom : "Доод талд", |
DlgImgAlignMiddle : "Дунд талд", |
DlgImgAlignRight : "Баруун", |
DlgImgAlignTextTop : "Текст дээр", |
DlgImgAlignTop : "Дээд талд", |
DlgImgPreview : "Уридчлан харах", |
DlgImgAlertUrl : "Зурагны URL-ын төрлийн сонгоно уу", |
DlgImgLinkTab : "Link", //MISSING |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
// Link Dialog |
DlgLnkWindowTitle : "Линк", |
DlgLnkInfoTab : "Линкийн мэдээлэл", |
DlgLnkTargetTab : "Байрлал", |
DlgLnkType : "Линкийн төрөл", |
DlgLnkTypeURL : "URL", |
DlgLnkTypeAnchor : "Энэ хуудасандах холбоос", |
DlgLnkTypeEMail : "E-Mail", |
DlgLnkProto : "Протокол", |
DlgLnkProtoOther : "<бусад>", |
DlgLnkURL : "URL", |
DlgLnkAnchorSel : "Холбоос сонгох", |
DlgLnkAnchorByName : "Холбоосын нэрээр", |
DlgLnkAnchorById : "Элемэнт Id-гаар", |
DlgLnkNoAnchors : "<Баримт бичиг холбоосгүй байна>", |
DlgLnkEMail : "E-Mail Хаяг", |
DlgLnkEMailSubject : "Message Subject", |
DlgLnkEMailBody : "Message-ийн агуулга", |
DlgLnkUpload : "Хуулах", |
DlgLnkBtnUpload : "Үүнийг серверрүү илгээ", |
DlgLnkTarget : "Байрлал", |
DlgLnkTargetFrame : "<Агуулах хүрээ>", |
DlgLnkTargetPopup : "<popup цонх>", |
DlgLnkTargetBlank : "Шинэ цонх (_blank)", |
DlgLnkTargetParent : "Эцэг цонх (_parent)", |
DlgLnkTargetSelf : "Төстэй цонх (_self)", |
DlgLnkTargetTop : "Хамгийн түрүүн байх цонх (_top)", |
DlgLnkTargetFrameName : "Target Frame Name", //MISSING |
DlgLnkPopWinName : "Popup цонхны нэр", |
DlgLnkPopWinFeat : "Popup цонхны онцлог", |
DlgLnkPopResize : "Хэмжээ өөрчлөх", |
DlgLnkPopLocation : "Location хэсэг", |
DlgLnkPopMenu : "Meню хэсэг", |
DlgLnkPopScroll : "Скрол хэсэгүүд", |
DlgLnkPopStatus : "Статус хэсэг", |
DlgLnkPopToolbar : "Багажны хэсэг", |
DlgLnkPopFullScrn : "Цонх дүүргэх (IE)", |
DlgLnkPopDependent : "Хамаатай (Netscape)", |
DlgLnkPopWidth : "Өргөн", |
DlgLnkPopHeight : "Өндөр", |
DlgLnkPopLeft : "Зүүн байрлал", |
DlgLnkPopTop : "Дээд байрлал", |
DlnLnkMsgNoUrl : "Линк URL-ээ төрөлжүүлнэ үү", |
DlnLnkMsgNoEMail : "Е-mail хаягаа төрөлжүүлнэ үү", |
DlnLnkMsgNoAnchor : "Холбоосоо сонгоно уу", |
// Color Dialog |
DlgColorTitle : "Өнгө сонгох", |
DlgColorBtnClear : "Цэвэрлэх", |
DlgColorHighlight : "Өнгө", |
DlgColorSelected : "Сонгогдсон", |
// Smiley Dialog |
DlgSmileyTitle : "Тодорхойлолт оруулах", |
// Special Character Dialog |
DlgSpecialCharTitle : "Онцгой тэмдэгт сонгох", |
// Table Dialog |
DlgTableTitle : "Хүснэгт", |
DlgTableRows : "Мөр", |
DlgTableColumns : "Багана", |
DlgTableBorder : "Хүрээний хэмжээ", |
DlgTableAlign : "Эгнээ", |
DlgTableAlignNotSet : "<Оноохгүй>", |
DlgTableAlignLeft : "Зүүн талд", |
DlgTableAlignCenter : "Төвд", |
DlgTableAlignRight : "Баруун талд", |
DlgTableWidth : "Өргөн", |
DlgTableWidthPx : "цэг", |
DlgTableWidthPc : "хувь", |
DlgTableHeight : "Өндөр", |
DlgTableCellSpace : "Нүх хоорондын зай", |
DlgTableCellPad : "Нүх доторлох", |
DlgTableCaption : "Тайлбар", |
// Table Cell Dialog |
DlgCellTitle : "Хоосон зайн шинж чанар", |
DlgCellWidth : "Өргөн", |
DlgCellWidthPx : "цэг", |
DlgCellWidthPc : "хувь", |
DlgCellHeight : "Өндөр", |
DlgCellWordWrap : "Үг таслах", |
DlgCellWordWrapNotSet : "<Оноохгүй>", |
DlgCellWordWrapYes : "Тийм", |
DlgCellWordWrapNo : "Үгүй", |
DlgCellHorAlign : "Босоо эгнээ", |
DlgCellHorAlignNotSet : "<Оноохгүй>", |
DlgCellHorAlignLeft : "Зүүн", |
DlgCellHorAlignCenter : "Төв", |
DlgCellHorAlignRight: "Баруун", |
DlgCellVerAlign : "Хөндлөн эгнээ", |
DlgCellVerAlignNotSet : "<Оноохгүй>", |
DlgCellVerAlignTop : "Дээд тал", |
DlgCellVerAlignMiddle : "Дунд", |
DlgCellVerAlignBottom : "Доод тал", |
DlgCellVerAlignBaseline : "Baseline", |
DlgCellRowSpan : "Нийт мөр", |
DlgCellCollSpan : "Нийт багана", |
DlgCellBackColor : "Фонны өнгө", |
DlgCellBorderColor : "Хүрээний өнгө", |
DlgCellBtnSelect : "Сонго...", |
// Find Dialog |
DlgFindTitle : "Хайх", |
DlgFindFindBtn : "Хайх", |
DlgFindNotFoundMsg : "Хайсан текст олсонгүй.", |
// Replace Dialog |
DlgReplaceTitle : "Солих", |
DlgReplaceFindLbl : "Хайх үг/үсэг:", |
DlgReplaceReplaceLbl : "Солих үг:", |
DlgReplaceCaseChk : "Тэнцэх төлөв", |
DlgReplaceReplaceBtn : "Солих", |
DlgReplaceReplAllBtn : "Бүгдийг нь Солих", |
DlgReplaceWordChk : "Тэнцэх бүтэн үг", |
// Paste Operations / Dialog |
PasteErrorPaste : "Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар буулгах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl+V) товчны хослолыг ашиглана уу.", |
PasteErrorCut : "Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl+X) товчны хослолыг ашиглана уу.", |
PasteErrorCopy : "Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl+C) товчны хослолыг ашиглана уу.", |
PasteAsText : "Plain Text-ээс буулгах", |
PasteFromWord : "Word-оос буулгах", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
// Color Picker |
ColorAutomatic : "Автоматаар", |
ColorMoreColors : "Нэмэлт өнгөнүүд...", |
// Document Properties |
DocProps : "Document Properties", //MISSING |
// Anchor Dialog |
DlgAnchorTitle : "Anchor Properties", //MISSING |
DlgAnchorName : "Anchor Name", //MISSING |
DlgAnchorErrorName : "Please type the anchor name", //MISSING |
// Speller Pages Dialog |
DlgSpellNotInDic : "Not in dictionary", //MISSING |
DlgSpellChangeTo : "Change to", //MISSING |
DlgSpellBtnIgnore : "Ignore", //MISSING |
DlgSpellBtnIgnoreAll : "Ignore All", //MISSING |
DlgSpellBtnReplace : "Replace", //MISSING |
DlgSpellBtnReplaceAll : "Replace All", //MISSING |
DlgSpellBtnUndo : "Undo", //MISSING |
DlgSpellNoSuggestions : "- No suggestions -", //MISSING |
DlgSpellProgress : "Spell check in progress...", //MISSING |
DlgSpellNoMispell : "Spell check complete: No misspellings found", //MISSING |
DlgSpellNoChanges : "Spell check complete: No words changed", //MISSING |
DlgSpellOneChange : "Spell check complete: One word changed", //MISSING |
DlgSpellManyChanges : "Spell check complete: %1 words changed", //MISSING |
IeSpellDownload : "Spell checker not installed. Do you want to download it now?", //MISSING |
// Button Dialog |
DlgButtonText : "Text (Value)", //MISSING |
DlgButtonType : "Type", //MISSING |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Name", //MISSING |
DlgCheckboxValue : "Value", //MISSING |
DlgCheckboxSelected : "Selected", //MISSING |
// Form Dialog |
DlgFormName : "Name", //MISSING |
DlgFormAction : "Action", //MISSING |
DlgFormMethod : "Method", //MISSING |
// Select Field Dialog |
DlgSelectName : "Name", //MISSING |
DlgSelectValue : "Value", //MISSING |
DlgSelectSize : "Size", //MISSING |
DlgSelectLines : "lines", //MISSING |
DlgSelectChkMulti : "Allow multiple selections", //MISSING |
DlgSelectOpAvail : "Available Options", //MISSING |
DlgSelectOpText : "Text", //MISSING |
DlgSelectOpValue : "Value", //MISSING |
DlgSelectBtnAdd : "Add", //MISSING |
DlgSelectBtnModify : "Modify", //MISSING |
DlgSelectBtnUp : "Up", //MISSING |
DlgSelectBtnDown : "Down", //MISSING |
DlgSelectBtnSetValue : "Set as selected value", //MISSING |
DlgSelectBtnDelete : "Delete", //MISSING |
// Textarea Dialog |
DlgTextareaName : "Name", //MISSING |
DlgTextareaCols : "Columns", //MISSING |
DlgTextareaRows : "Rows", //MISSING |
// Text Field Dialog |
DlgTextName : "Name", //MISSING |
DlgTextValue : "Value", //MISSING |
DlgTextCharWidth : "Character Width", //MISSING |
DlgTextMaxChars : "Maximum Characters", //MISSING |
DlgTextType : "Type", //MISSING |
DlgTextTypeText : "Text", //MISSING |
DlgTextTypePass : "Password", //MISSING |
// Hidden Field Dialog |
DlgHiddenName : "Name", //MISSING |
DlgHiddenValue : "Value", //MISSING |
// Bulleted List Dialog |
BulletedListProp : "Bulleted List Properties", //MISSING |
NumberedListProp : "Numbered List Properties", //MISSING |
DlgLstType : "Type", //MISSING |
DlgLstTypeCircle : "Circle", //MISSING |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", //MISSING |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING |
DlgLstTypeUCase : "Uppercase Letters (A, B, C)", //MISSING |
DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)", //MISSING |
DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)", //MISSING |
// Document Properties Dialog |
DlgDocGeneralTab : "General", //MISSING |
DlgDocBackTab : "Background", //MISSING |
DlgDocColorsTab : "Colors and Margins", //MISSING |
DlgDocMetaTab : "Meta Data", //MISSING |
DlgDocPageTitle : "Page Title", //MISSING |
DlgDocLangDir : "Language Direction", //MISSING |
DlgDocLangDirLTR : "Left to Right (LTR)", //MISSING |
DlgDocLangDirRTL : "Right to Left (RTL)", //MISSING |
DlgDocLangCode : "Language Code", //MISSING |
DlgDocCharSet : "Character Set Encoding", //MISSING |
DlgDocCharSetOther : "Other Character Set Encoding", //MISSING |
DlgDocDocType : "Document Type Heading", //MISSING |
DlgDocDocTypeOther : "Other Document Type Heading", //MISSING |
DlgDocIncXHTML : "Include XHTML Declarations", //MISSING |
DlgDocBgColor : "Background Color", //MISSING |
DlgDocBgImage : "Background Image URL", //MISSING |
DlgDocBgNoScroll : "Nonscrolling Background", //MISSING |
DlgDocCText : "Text", //MISSING |
DlgDocCLink : "Link", //MISSING |
DlgDocCVisited : "Visited Link", //MISSING |
DlgDocCActive : "Active Link", //MISSING |
DlgDocMargins : "Page Margins", //MISSING |
DlgDocMaTop : "Top", //MISSING |
DlgDocMaLeft : "Left", //MISSING |
DlgDocMaRight : "Right", //MISSING |
DlgDocMaBottom : "Bottom", //MISSING |
DlgDocMeIndex : "Document Indexing Keywords (comma separated)", //MISSING |
DlgDocMeDescr : "Document Description", //MISSING |
DlgDocMeAuthor : "Author", //MISSING |
DlgDocMeCopy : "Copyright", //MISSING |
DlgDocPreview : "Preview", //MISSING |
// Templates Dialog |
Templates : "Templates", //MISSING |
DlgTemplatesTitle : "Content Templates", //MISSING |
DlgTemplatesSelMsg : "Please select the template to open in the editor<br>(the actual contents will be lost):", //MISSING |
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING |
DlgTemplatesNoTpl : "(No templates defined)", //MISSING |
// About Dialog |
DlgAboutAboutTab : "About", //MISSING |
DlgAboutBrowserInfoTab : "Browser Info", //MISSING |
DlgAboutVersion : "Хувилбар", |
DlgAboutLicense : "GNU цөөн ерөнхий нийтийн лицензийн ангилалд багтсан зөвшөөрөлтэй", |
DlgAboutInfo : "Мэдээллээр туслах" |
} |
/trunk/api/fckeditor/editor/lang/pl.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: pl.js |
* Polish language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Nieznana komenda \"%1\"", |
NotImplemented : "Komenda niezaimplementowana", |
UnknownToolbarSet : "Pasek narzędzi \"%1\" nie istnieje", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Właściwości listy numerowanej", |
DlgLstType : "Typ", |
DlgLstTypeCircle : "Koło", |
DlgLstTypeDisk : "Dysk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kwadrat", |
DlgLstTypeNumbers : "Cyfry (1, 2, 3)", |
DlgLstTypeLCase : "Małe litery (a, b, c)", |
/trunk/api/fckeditor/editor/lang/th.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: th.js |
* Thai language file. |
* |
132,6 → 134,7 |
UnknownCommand : "ไม่สามารถระบุชื่อคำสั่งได้ \"%1\"", |
NotImplemented : "ไม่สามารถใช้งานคำสั่งได้", |
UnknownToolbarSet : "ไม่มีการติดตั้งชุดคำสั่งในแถบเครื่องมือ \"%1\" กรุณาติดต่อผู้ดูแลระบบ", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "ตกลง", |
414,7 → 417,7 |
NumberedListProp : "คุณสมบัติของ นัมเบอร์ลิสต์", |
DlgLstType : "ชนิด", |
DlgLstTypeCircle : "รูปวงกลม", |
DlgLstTypeDisk : "รูปดิสก์", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "รูปสี่เหลี่ยม", |
DlgLstTypeNumbers : "หมายเลข (1, 2, 3)", |
DlgLstTypeLCase : "ตัวพิมพ์เล็ก (a, b, c)", |
/trunk/api/fckeditor/editor/lang/it.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: it.js |
* Italian language file. |
* |
104,21 → 106,21 |
DeleteCells : "Elimina celle", |
MergeCells : "Unisce celle", |
SplitCell : "Dividi celle", |
CellProperties : "Propriet cella", |
TableProperties : "Propriet tabella", |
ImageProperties : "Propriet immagine", |
FlashProperties : "Propriet Oggetto Flash", |
CellProperties : "Proprietà cella", |
TableProperties : "Proprietà tabella", |
ImageProperties : "Proprietà immagine", |
FlashProperties : "Proprietà Oggetto Flash", |
AnchorProp : "Propriet ancora", |
ButtonProp : "Propriet bottone", |
CheckboxProp : "Propriet checkbox", |
HiddenFieldProp : "Propriet campo nascosto", |
RadioButtonProp : "Propriet radio button", |
ImageButtonProp : "Propriet bottone immagine", |
TextFieldProp : "Propriet campo di testo", |
SelectionFieldProp : "Propriet menu di selezione", |
TextareaProp : "Propriet area di testo", |
FormProp : "Propriet modulo", |
AnchorProp : "Proprietà ancora", |
ButtonProp : "Proprietà bottone", |
CheckboxProp : "Proprietà checkbox", |
HiddenFieldProp : "Proprietà campo nascosto", |
RadioButtonProp : "Proprietà radio button", |
ImageButtonProp : "Proprietà bottone immagine", |
TextFieldProp : "Proprietà campo di testo", |
SelectionFieldProp : "Proprietà menu di selezione", |
TextareaProp : "Proprietà area di testo", |
FormProp : "Proprietà modulo", |
FontFormats : "Normale;Formattato;Indirizzo;Titolo 1;Titolo 2;Titolo 3;Titolo 4;Titolo 5;Titolo 6;Paragrafo (DIV)", |
126,11 → 128,12 |
ProcessingXHTML : "Elaborazione XHTML in corso. Attendere prego...", |
Done : "Completato", |
PasteWordConfirm : "Il testo da incollare sembra provenire da Word. Desideri pulirlo prima di incollare?", |
NotCompatiblePaste : "Questa funzione disponibile solo per Internet Explorer 5.5 o superiore. Desideri incollare il testo senza pulirlo?", |
NotCompatiblePaste : "Questa funzione è disponibile solo per Internet Explorer 5.5 o superiore. Desideri incollare il testo senza pulirlo?", |
UnknownToolbarItem : "Elemento della barra strumenti sconosciuto \"%1\"", |
UnknownCommand : "Comando sconosciuto \"%1\"", |
NotImplemented : "Commando non implementato", |
UnknownToolbarSet : "La barra di strumenti \"%1\" non esiste", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
160,7 → 163,7 |
DlgGenStyle : "Stile", |
// Image Dialog |
DlgImgTitle : "Propriet immagine", |
DlgImgTitle : "Proprietà immagine", |
DlgImgInfoTab : "Informazioni immagine", |
DlgImgBtnUpload : "Invia al server", |
DlgImgURL : "URL", |
188,7 → 191,7 |
DlgImgLinkTab : "Collegamento", |
// Flash Dialog |
DlgFlashTitle : "Propriet Oggetto Flash", |
DlgFlashTitle : "Proprietà Oggetto Flash", |
DlgFlashChkPlay : "Avvio Automatico", |
DlgFlashChkLoop : "Cicla", |
DlgFlashChkMenu : "Abilita Menu di Flash", |
259,7 → 262,7 |
DlgSpecialCharTitle : "Seleziona carattere speciale", |
// Table Dialog |
DlgTableTitle : "Propriet tabella", |
DlgTableTitle : "Proprietà tabella", |
DlgTableRows : "Righe", |
DlgTableColumns : "Colonne", |
DlgTableBorder : "Dimensione bordo", |
336,10 → 339,10 |
ColorMoreColors : "Altri colori...", |
// Document Properties |
DocProps : "Propriet del Documento", |
DocProps : "Proprietà del Documento", |
// Anchor Dialog |
DlgAnchorTitle : "Propriet ancora", |
DlgAnchorTitle : "Proprietà ancora", |
DlgAnchorName : "Nome ancora", |
DlgAnchorErrorName : "Inserici il nome dell'ancora", |
409,11 → 412,11 |
DlgHiddenValue : "Valore", |
// Bulleted List Dialog |
BulletedListProp : "Propriet lista puntata", |
NumberedListProp : "Propriet lista numerata", |
BulletedListProp : "Proprietà lista puntata", |
NumberedListProp : "Proprietà lista numerata", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Tondo", |
DlgLstTypeDisk : "Disco", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Quadrato", |
DlgLstTypeNumbers : "Numeri (1, 2, 3)", |
DlgLstTypeLCase : "Caratteri minuscoli (a, b, c)", |
459,7 → 462,7 |
// Templates Dialog |
Templates : "Modelli", |
DlgTemplatesTitle : "Contenuto dei modelli", |
DlgTemplatesSelMsg : "Seleziona il modello da aprire nell'editor<br>(il contenuto attuale verr eliminato):", |
DlgTemplatesSelMsg : "Seleziona il modello da aprire nell'editor<br>(il contenuto attuale verrà eliminato):", |
DlgTemplatesLoading : "Caricamento modelli in corso. Attendere prego...", |
DlgTemplatesNoTpl : "(Nessun modello definito)", |
/trunk/api/fckeditor/editor/lang/sl.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: sl.js |
* Slovenian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Neznano ime ukaza \"%1\"", |
NotImplemented : "Ukaz ni izdelan", |
UnknownToolbarSet : "Skupina orodnih vrstic \"%1\" ne obstoja", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "V redu", |
413,7 → 416,7 |
NumberedListProp : "Lastnosti oštevilčenega seznama", |
DlgLstType : "Tip", |
DlgLstTypeCircle : "Pikica", |
DlgLstTypeDisk : "Krožec", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kvadratek", |
DlgLstTypeNumbers : "Številke (1, 2, 3)", |
DlgLstTypeLCase : "Male črke (a, b, c)", |
/trunk/api/fckeditor/editor/lang/zh-cn.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: zh-cn.js |
* Chinese Simplified language file. |
* |
131,6 → 133,7 |
UnknownCommand : "未知命令名称 \"%1\"", |
NotImplemented : "命令无法执行", |
UnknownToolbarSet : "工具栏设置 \"%1\" 不存在", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "确定", |
413,7 → 416,7 |
NumberedListProp : "编号列表属性", |
DlgLstType : "列表类型", |
DlgLstTypeCircle : "圆圈", |
DlgLstTypeDisk : "圆点", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "方块", |
DlgLstTypeNumbers : "数字 (1, 2, 3)", |
DlgLstTypeLCase : "小写字母 (a, b, c)", |
/trunk/api/fckeditor/editor/lang/lt.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: lt.js |
* Lithuanian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nežinomas komandos vardas \"%1\"", |
NotImplemented : "Komanda nėra įgyvendinta", |
UnknownToolbarSet : "Mygtukų juostos rinkinys \"%1\" neegzistuoja", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numeruoto sąrašo savybės", |
DlgLstType : "Tipas", |
DlgLstTypeCircle : "Apskritimas", |
DlgLstTypeDisk : "Diskas", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kvadratas", |
DlgLstTypeNumbers : "Skaičiai (1, 2, 3)", |
DlgLstTypeLCase : "Mažosios raidės (a, b, c)", |
/trunk/api/fckeditor/editor/lang/en-uk.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: en-uk.js |
* English (United Kingdom) language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Unknown command name \"%1\"", |
NotImplemented : "Command not implemented", |
UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Numbered List Properties", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Circle", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", |
/trunk/api/fckeditor/editor/lang/zh.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: zh.js |
* Chinese Traditional language file. |
* |
131,6 → 133,7 |
UnknownCommand : "未知指令名稱 \"%1\"", |
NotImplemented : "尚未安裝此指令", |
UnknownToolbarSet : "工具列設定 \"%1\" 不存在", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "確定", |
413,7 → 416,7 |
NumberedListProp : "編號清單屬性", |
DlgLstType : "清單類型", |
DlgLstTypeCircle : "圓圈", |
DlgLstTypeDisk : "圓點", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "方塊", |
DlgLstTypeNumbers : "數字 (1, 2, 3)", |
DlgLstTypeLCase : "小寫字母 (a, b, c)", |
/trunk/api/fckeditor/editor/lang/pt.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: pt.js |
* Portuguese language file. |
* |
41,8 → 43,8 |
Anchor : " Inserir/Editar Âncora", |
InsertImageLbl : "Imagem", |
InsertImage : "Inserir/Editar Imagem", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "Flash", |
InsertFlash : "Inserir/Editar Flash", |
InsertTableLbl : "Tabela", |
InsertTable : "Inserir/Editar Tabela", |
InsertLineLbl : "Linha", |
107,7 → 109,7 |
CellProperties : "Propriedades da Célula", |
TableProperties : "Propriedades da Tabela", |
ImageProperties : "Propriedades da Imagem", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "Propriedades do Flash", |
AnchorProp : "Propriedades da Âncora", |
ButtonProp : "Propriedades do Botão", |
114,7 → 116,7 |
CheckboxProp : "Propriedades da Caixa de Verificação", |
HiddenFieldProp : "Propriedades do Campo Escondido", |
RadioButtonProp : "Propriedades do Botão de Opção", |
ImageButtonProp : " Propriedades do Botão de imagens", |
ImageButtonProp : "Propriedades do Botão de imagens", |
TextFieldProp : "Propriedades do Campo de Texto", |
SelectionFieldProp : "Propriedades da Caixa de Combinação", |
TextareaProp : "Propriedades da Área de Texto", |
131,6 → 133,7 |
UnknownCommand : "Nome de comando desconhecido \"%1\"", |
NotImplemented : "Comando não implementado", |
UnknownToolbarSet : "Nome de barra \"%1\" não definido", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
139,8 → 142,8 |
DlgBtnBrowseServer : "Navegar no Servidor", |
DlgAdvancedTag : "Avançado", |
DlgOpOther : "<Outro>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgInfoTab : "Informação", |
DlgAlertUrl : "Por favor introduza o URL", |
// General Dialogs Labels |
DlgGenNotSet : "<Não definido>", |
188,14 → 191,14 |
DlgImgLinkTab : "Hiperligação", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "Propriedades do Flash", |
DlgFlashChkPlay : "Reproduzir automaticamente", |
DlgFlashChkLoop : "Loop", |
DlgFlashChkMenu : "Permitir Menu do Flash", |
DlgFlashScale : "Escala", |
DlgFlashScaleAll : "Mostrar tudo", |
DlgFlashScaleNoBorder : "Sem Limites", |
DlgFlashScaleFit : "Tamanho Exacto", |
// Link Dialog |
DlgLnkWindowTitle : "Hiperligação", |
242,8 → 245,8 |
DlgLnkPopLeft : "Posição Esquerda", |
DlgLnkPopTop : "Posição Direita", |
DlnLnkMsgNoUrl : "Por favor insira a hiperligação URL", |
DlnLnkMsgNoEMail : "Por favor insira o endereço de e-mail", |
DlnLnkMsgNoUrl : "Por favor introduza a hiperligação URL", |
DlnLnkMsgNoEMail : "Por favor introduza o endereço de e-mail", |
DlnLnkMsgNoAnchor : "Por favor seleccione uma referência", |
// Color Dialog |
325,10 → 328,10 |
PasteAsText : "Colar como Texto Simples", |
PasteFromWord : "Colar do Word", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteMsg2 : "Por favor, cole dentro da seguinte caixa usando o teclado (<STRONG>Ctrl+V</STRONG>) e prima <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Ignorar da definições do Tipo de Letra ", |
DlgPasteRemoveStyles : "Remover as definições de Estilos", |
DlgPasteCleanBox : "Caixa de Limpeza", |
// Color Picker |
413,7 → 416,7 |
NumberedListProp : "Propriedades da Numeração", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Circulo", |
DlgLstTypeDisk : "Disco", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Quadrado", |
DlgLstTypeNumbers : "Números (1, 2, 3)", |
DlgLstTypeLCase : "Letras Minúsculas (a, b, c)", |
/trunk/api/fckeditor/editor/lang/ca.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ca.js |
* Catalan language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nom de comanda desconegut \"%1\"", |
NotImplemented : "Mètode no implementat", |
UnknownToolbarSet : "Conjunt de barra d'eines \"%1\" inexistent", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Proprietats de llista numerada", |
DlgLstType : "Tipus", |
DlgLstTypeCircle : "Cercle", |
DlgLstTypeDisk : "Disc", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Quadrat", |
DlgLstTypeNumbers : "Números (1, 2, 3)", |
DlgLstTypeLCase : "Lletres minúscules (a, b, c)", |
/trunk/api/fckeditor/editor/lang/sr.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: sr.js |
* Serbian (Cyrillic) language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Непозната наредба \"%1\"", |
NotImplemented : "Наредба није имплементирана", |
UnknownToolbarSet : "Toolbar \"%1\" не постоји", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Особине набројиве листе", |
DlgLstType : "Тип", |
DlgLstTypeCircle : "Круг", |
DlgLstTypeDisk : "Диск", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Квадрат", |
DlgLstTypeNumbers : "Бројеви (1, 2, 3)", |
DlgLstTypeLCase : "мала слова (a, b, c)", |
/trunk/api/fckeditor/editor/lang/pt-br.js |
---|
8,11 → 8,14 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: pt-br.js |
* Brazilian Portuguese language file. |
* |
* File Authors: |
* Carlos Alberto Tomatis Loth (carlos.loth@conectait.com.br) |
* GibaPhp (www.xoopstotal.com.br) |
*/ |
var FCKLang = |
41,8 → 44,8 |
Anchor : "Inserir/Editar Âncora", |
InsertImageLbl : "Figura", |
InsertImage : "Inserir/Editar Figura", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "Flash", |
InsertFlash : "Insere/Edita Flash", |
InsertTableLbl : "Tabela", |
InsertTable : "Inserir/Editar Tabela", |
InsertLineLbl : "Linha", |
107,7 → 110,7 |
CellProperties : "Formatar Célula", |
TableProperties : "Formatar Tabela", |
ImageProperties : "Formatar Figura", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "Propriedades Flash", |
AnchorProp : "Formatar Âncora", |
ButtonProp : "Formatar Botão", |
131,6 → 134,7 |
UnknownCommand : "O comando \"%1\" não é reconhecido", |
NotImplemented : "O comando não foi implementado", |
UnknownToolbarSet : "A barra de ferramentas \"%1\" não existe", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
139,8 → 143,8 |
DlgBtnBrowseServer : "Localizar no Servidor", |
DlgAdvancedTag : "Avançado", |
DlgOpOther : "<Outros>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgInfoTab : "Info", |
DlgAlertUrl : "Inserir a URL", |
// General Dialogs Labels |
DlgGenNotSet : "<não ajustado>", |
188,14 → 192,14 |
DlgImgLinkTab : "Hiperlink", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "Propriedades Flash", |
DlgFlashChkPlay : "Tocar Automaticamente", |
DlgFlashChkLoop : "Loop", |
DlgFlashChkMenu : "Habilita Menu Flash", |
DlgFlashScale : "Escala", |
DlgFlashScaleAll : "Mostrar tudo", |
DlgFlashScaleNoBorder : "Sem Borda", |
DlgFlashScaleFit : "Escala Exata", |
// Link Dialog |
DlgLnkWindowTitle : "Hiperlink", |
325,10 → 329,10 |
PasteAsText : "Colar como Texto sem Formatação", |
PasteFromWord : "Colar do Word", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteMsg2 : "Transfira o link usado no box usando o teclado com (<STRONG>Ctrl+V</STRONG>) e <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Ignorar definições de fonte", |
DlgPasteRemoveStyles : "Remove definições de estilo", |
DlgPasteCleanBox : "Limpar Box", |
// Color Picker |
353,7 → 357,7 |
DlgSpellBtnUndo : "Desfazer", |
DlgSpellNoSuggestions : "-sem sugestões de ortografia-", |
DlgSpellProgress : "Verificação ortográfica em andamento...", |
DlgSpellNoMispell : "Verificação ortográfica encerrada: Não foram encontrados erros de ortografia", |
DlgSpellNoMispell : "Verificação encerrada: Não foram encontrados erros de ortografia", |
DlgSpellNoChanges : "Verificação ortográfica encerrada: Não houve alterações", |
DlgSpellOneChange : "Verificação ortográfica encerrada: Uma palavra foi alterada", |
DlgSpellManyChanges : "Verificação ortográfica encerrada: %1 foram alteradas", |
413,7 → 417,7 |
NumberedListProp : "Formatar Numeração", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Círculo", |
DlgLstTypeDisk : "Disco", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Quadrado", |
DlgLstTypeNumbers : "Números (1, 2, 3)", |
DlgLstTypeLCase : "Letras Minúsculas (a, b, c)", |
/trunk/api/fckeditor/editor/lang/da.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: da.js |
* Danish language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Ukendt kommando navn \"%1\"", |
NotImplemented : "Kommandoen er ikke implementeret", |
UnknownToolbarSet : "Værktøjslinjen \"%1\" eksisterer ikke", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Talopstilling egenskaber", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Cirkel", |
DlgLstTypeDisk : "Prik", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Firkant", |
DlgLstTypeNumbers : "Nummereret (1, 2, 3)", |
DlgLstTypeLCase : "Små bogstaver (a, b, c)", |
/trunk/api/fckeditor/editor/lang/tr.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: tr.js |
* Turkish language file. |
* |
38,11 → 40,11 |
InsertLinkLbl : "Köprü", |
InsertLink : "Köprü Ekle/Düzenle", |
RemoveLink : "Köprü Kaldir", |
Anchor : "Insert/Edit Anchor", //MISSING |
Anchor : "Çapa Ekle/Düzenle", |
InsertImageLbl : "Resim", |
InsertImage : "Resim Ekle/Düzenle", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "Flash", |
InsertFlash : "Flash Ekle/Düzenle", |
InsertTableLbl : "Tablo", |
InsertTable : "Tablo Ekle/Düzenle", |
InsertLineLbl : "Satir", |
107,7 → 109,7 |
CellProperties : "Hücre Özellikleri", |
TableProperties : "Tablo Özellikleri", |
ImageProperties : "Resim Özellikleri", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "Flash Özellikleri", |
AnchorProp : "Çapa Özellikleri", |
ButtonProp : "Dügme Özellikleri", |
131,6 → 133,7 |
UnknownCommand : "Bilinmeyen komut \"%1\"", |
NotImplemented : "Komut uyarlanamadi", |
UnknownToolbarSet : "\"%1\" araç çubugu ögesi mevcut degil", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "Tamam", |
139,8 → 142,8 |
DlgBtnBrowseServer : "Sunucuyu Gez", |
DlgAdvancedTag : "Gelismis", |
DlgOpOther : "<Diger>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgInfoTab : "Bilgi", |
DlgAlertUrl : "Lütfen URL girin", |
// General Dialogs Labels |
DlgGenNotSet : "<tanimlanmamis>", |
185,17 → 188,17 |
DlgImgAlignTop : "Tepe", |
DlgImgPreview : "Ön Izleme", |
DlgImgAlertUrl : "Lütfen resimin URL'sini yaziniz", |
DlgImgLinkTab : "Link", //MISSING |
DlgImgLinkTab : "Köprü", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "Flash Özellikleri", |
DlgFlashChkPlay : "Otomatik Oynat", |
DlgFlashChkLoop : "Döngü", |
DlgFlashChkMenu : "Flash Mönüsünü Kullan", |
DlgFlashScale : "Boyutlandır", |
DlgFlashScaleAll : "Hepsini Göster", |
DlgFlashScaleNoBorder : "Kenar Yok", |
DlgFlashScaleFit : "Tam Sığdır", |
// Link Dialog |
DlgLnkWindowTitle : "Köprü", |
326,9 → 329,9 |
PasteFromWord : "Word'den yapistir", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteIgnoreFont : "Yazı Tipi tanımlarını yoksay", |
DlgPasteRemoveStyles : "Sitil Tanımlarını çıkar", |
DlgPasteCleanBox : "Temizlik Kutusu", |
// Color Picker |
413,7 → 416,7 |
NumberedListProp : "Numarali Liste Özellikleri", |
DlgLstType : "Tip", |
DlgLstTypeCircle : "Çember", |
DlgLstTypeDisk : "Daire", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kare", |
DlgLstTypeNumbers : "Sayilar (1, 2, 3)", |
DlgLstTypeLCase : "Küçük Harfler (a, b, c)", |
457,11 → 460,11 |
DlgDocPreview : "Ön Izleme", |
// Templates Dialog |
Templates : "Templates", //MISSING |
DlgTemplatesTitle : "Content Templates", //MISSING |
DlgTemplatesSelMsg : "Please select the template to open in the editor<br>(the actual contents will be lost):", //MISSING |
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING |
DlgTemplatesNoTpl : "(No templates defined)", //MISSING |
Templates : "Düzenler", |
DlgTemplatesTitle : "Ä°çerik Düzenleri", |
DlgTemplatesSelMsg : "Editörde açmak için lütfen bir düzen seçin.<br>(hali hazırdaki içerik kaybolacaktır.):", |
DlgTemplatesLoading : "Düzenler listesi yüklenmekte. Lütfen bekleyiniz...", |
DlgTemplatesNoTpl : "(Belirli bir düzen seçilmedi)", |
// About Dialog |
DlgAboutAboutTab : "Hakkinda", |
/trunk/api/fckeditor/editor/lang/fa.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fa.js |
* Persian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "نام دستور ناشناخته \"%1\"", |
NotImplemented : "دستور اجرا نشد", |
UnknownToolbarSet : "مجموعه منوابزار \"%1\" وجود ندارد", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "تائيد", |
413,7 → 416,7 |
NumberedListProp : "ويژگيهای فهرست عددی", |
DlgLstType : "نوع", |
DlgLstTypeCircle : "دايره", |
DlgLstTypeDisk : "قرص", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "مربع", |
DlgLstTypeNumbers : "شماره ها (1، 2، 3)", |
DlgLstTypeLCase : "حروف کوچک (a، b، c)", |
/trunk/api/fckeditor/editor/lang/sv.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: sv.js |
* Swedish language file. |
* |
36,15 → 38,15 |
SelectAll : "Markera allt", |
RemoveFormat : "Radera formatering", |
InsertLinkLbl : "Länk", |
InsertLink : "Infoga/Editera länk", |
InsertLink : "Infoga/Redigera länk", |
RemoveLink : "Radera länk", |
Anchor : "Infoga/Editera ankarlänk", |
Anchor : "Infoga/Redigera ankarlänk", |
InsertImageLbl : "Bild", |
InsertImage : "Infoga/Editera bild", |
InsertImage : "Infoga/Redigera bild", |
InsertFlashLbl : "Flash", |
InsertFlash : "Infoga/Editera Flash", |
InsertFlash : "Infoga/Redigera Flash", |
InsertTableLbl : "Tabell", |
InsertTable : "Infoga/Editera tabell", |
InsertTable : "Infoga/Redigera tabell", |
InsertLineLbl : "Linje", |
InsertLine : "Infoga horisontal linje", |
InsertSpecialCharLbl: "Utökade tecken", |
82,7 → 84,7 |
Find : "Sök", |
Replace : "Ersätt", |
SpellCheck : "Stavningskontroll", |
UniversalKeyboard : "Universalt tangentbord", |
UniversalKeyboard : "Universellt tangentbord", |
Form : "Formulär", |
Checkbox : "Kryssruta", |
95,7 → 97,7 |
ImageButton : "Bildknapp", |
// Context Menu |
EditLink : "Editera länk", |
EditLink : "Redigera länk", |
InsertRow : "Infoga rad", |
DeleteRows : "Radera rad", |
InsertColumn : "Infoga kolumn", |
131,6 → 133,7 |
UnknownCommand : "Okänt kommando \"%1\"", |
NotImplemented : "Kommandot finns ej", |
UnknownToolbarSet : "Verktygsfält \"%1\" finns ej", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
213,7 → 216,7 |
DlgLnkAnchorByName : "efter ankarnamn", |
DlgLnkAnchorById : "efter objektid", |
DlgLnkNoAnchors : "<Inga ankare kunde hittas>", |
DlgLnkEMail : "E-post adress", |
DlgLnkEMail : "E-postadress", |
DlgLnkEMailSubject : "Ämne", |
DlgLnkEMailBody : "Innehåll", |
DlgLnkUpload : "Ladda upp", |
326,9 → 329,9 |
PasteFromWord : "Klistra in från Word", |
DlgPasteMsg2 : "Var god och klistra in Er text i rutan nedan genom att använda (<STRONG>Ctrl+V</STRONG>) klicka sen på <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Ignorera typsnitts definitioner", |
DlgPasteRemoveStyles : "Radera Stil definitioner", |
DlgPasteCleanBox : "Upprensningsruta", |
DlgPasteIgnoreFont : "Ignorera typsnittsdefinitioner", |
DlgPasteRemoveStyles : "Radera Stildefinitioner", |
DlgPasteCleanBox : "Töm rutans innehåll", |
// Color Picker |
384,7 → 387,7 |
DlgSelectOpText : "Text", |
DlgSelectOpValue : "Värde", |
DlgSelectBtnAdd : "Lägg till", |
DlgSelectBtnModify : "Editera", |
DlgSelectBtnModify : "Redigera", |
DlgSelectBtnUp : "Upp", |
DlgSelectBtnDown : "Ner", |
DlgSelectBtnSetValue : "Markera som valt värde", |
413,19 → 416,19 |
NumberedListProp : "Egenskaper för numrerad lista", |
DlgLstType : "Typ", |
DlgLstTypeCircle : "Cirkel", |
DlgLstTypeDisk : "Skiva", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Ruta", |
DlgLstTypeNumbers : "Nummer (1, 2, 3)", |
DlgLstTypeLCase : "Gemener (a, b, c)", |
DlgLstTypeUCase : "Versaler (A, B, C)", |
DlgLstTypeSRoman : "Små romerska siffror (i, ii, iii)", |
DlgLstTypeLRoman : "Stora romerska siffror (I,II,II)", |
DlgLstTypeLRoman : "Stora romerska siffror (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "Allmän", |
DlgDocBackTab : "Bakgrund", |
DlgDocColorsTab : "Färg och marginal", |
DlgDocMetaTab : "Meta data", |
DlgDocMetaTab : "Metadata", |
DlgDocPageTitle : "Sidtitel", |
DlgDocLangDir : "Språkriktning", |
/trunk/api/fckeditor/editor/lang/de.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: de.js |
* German language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Unbekannter Befehl \"%1\"", |
NotImplemented : "Befehl nicht implementiert", |
UnknownToolbarSet : "Menüleiste \"%1\" existiert nicht", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Nummerierte Listen-Eigenschaften", |
DlgLstType : "Typ", |
DlgLstTypeCircle : "Kreis", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Quadrat", |
DlgLstTypeNumbers : "Nummern (1, 2, 3)", |
DlgLstTypeLCase : "Kleinbuchstaben (a, b, c)", |
/trunk/api/fckeditor/editor/lang/bg.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: bg.js |
* Bulgarian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Непозната команда \"%1\"", |
NotImplemented : "Командата не е имплементирана", |
UnknownToolbarSet : "Панелът \"%1\" не съществува", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "ОК", |
413,7 → 416,7 |
NumberedListProp : "Параметри на нумерирания списък", |
DlgLstType : "Тип", |
DlgLstTypeCircle : "Окръжност", |
DlgLstTypeDisk : "Диск", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Квадрат", |
DlgLstTypeNumbers : "Числа (1, 2, 3)", |
DlgLstTypeLCase : "Малки букви (a, b, c)", |
/trunk/api/fckeditor/editor/lang/ja.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ja.js |
* Japanese language file. |
* |
131,6 → 133,7 |
UnknownCommand : "未知のコマンド名 \"%1\"", |
NotImplemented : "コマンドはインプリメントされませんでした。", |
UnknownToolbarSet : "ツールバー設定 \"%1\" 存在しません。", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "段落番号 プロパティ", |
DlgLstType : "タイプ", |
DlgLstTypeCircle : "白丸", |
DlgLstTypeDisk : "黒丸", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "四角", |
DlgLstTypeNumbers : "アラビア数字 (1, 2, 3)", |
DlgLstTypeLCase : "英字小文字 (a, b, c)", |
/trunk/api/fckeditor/editor/lang/he.js |
---|
8,10 → 8,13 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: he.js |
* Hebrew language file. |
* |
* File Authors: |
* Tamir Mordo (tamir@tetitu.co.il) |
* Ophir Radnitz (ophir@liqweed.net) |
*/ |
38,11 → 41,11 |
InsertLinkLbl : "קישור", |
InsertLink : "הוספת/עריכת קישור", |
RemoveLink : "הסרת הקישור", |
Anchor : "Insert/Edit Anchor", //MISSING |
Anchor : "הוספת/עריכת נקודת עיגון", |
InsertImageLbl : "תמונה", |
InsertImage : "הוספת/עריכת תמונה", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "פלאש", |
InsertFlash : "הוסף/ערוך פלאש", |
InsertTableLbl : "טבלה", |
InsertTable : "הוספת/עריכת טבלה", |
InsertLineLbl : "קו", |
81,18 → 84,18 |
Source : "מקור", |
Find : "חיפוש", |
Replace : "החלפה", |
SpellCheck : "Check Spell", //MISSING |
UniversalKeyboard : "Universal Keyboard", //MISSING |
SpellCheck : "בדיקת איות", |
UniversalKeyboard : "מקלדת אוניברסלית", |
Form : "Form", //MISSING |
Checkbox : "Checkbox", //MISSING |
RadioButton : "Radio Button", //MISSING |
TextField : "Text Field", //MISSING |
Textarea : "Textarea", //MISSING |
HiddenField : "Hidden Field", //MISSING |
Button : "Button", //MISSING |
SelectionField : "Selection Field", //MISSING |
ImageButton : "Image Button", //MISSING |
Form : "טופס", |
Checkbox : "תיבת סימון", |
RadioButton : "לחצן אפשרויות", |
TextField : "שדה טקסט", |
Textarea : "איזור טקסט", |
HiddenField : "שדה חבוי", |
Button : "כפתור", |
SelectionField : "שדה בחירה", |
ImageButton : "כפתור תמונה", |
// Context Menu |
EditLink : "עריכת קישור", |
107,18 → 110,18 |
CellProperties : "תכונות התא", |
TableProperties : "תכונות הטבלה", |
ImageProperties : "תכונות התמונה", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "מאפייני פלאש", |
AnchorProp : "Anchor Properties", //MISSING |
ButtonProp : "Button Properties", //MISSING |
CheckboxProp : "Checkbox Properties", //MISSING |
HiddenFieldProp : "Hidden Field Properties", //MISSING |
RadioButtonProp : "Radio Button Properties", //MISSING |
ImageButtonProp : "Image Button Properties", //MISSING |
TextFieldProp : "Text Field Properties", //MISSING |
SelectionFieldProp : "Selection Field Properties", //MISSING |
TextareaProp : "Textarea Properties", //MISSING |
FormProp : "Form Properties", //MISSING |
AnchorProp : "מאפייני נקודת עיגון", |
ButtonProp : "מאפייני כפתור", |
CheckboxProp : "מאפייני תיבת סימון", |
HiddenFieldProp : "מאפיני שדה חבוי", |
RadioButtonProp : "מאפייני לחצן אפשרויות", |
ImageButtonProp : "מאפיני כפתור תמונה", |
TextFieldProp : "מאפייני שדה טקסט", |
SelectionFieldProp : "מאפייני שדה בחירה", |
TextareaProp : "מאפיני איזור טקסט", |
FormProp : "מאפיני טופס", |
FontFormats : "נורמלי;קוד;כתובת;כותרת;כותרת 2;כותרת 3;כותרת 4;כותרת 5;כותרת 6", |
131,16 → 134,17 |
UnknownCommand : "שם פעולה לא ידוע \"%1\"", |
NotImplemented : "הפקודה לא מיושמת", |
UnknownToolbarSet : "ערכת סרגל הכלים \"%1\" לא קיימת", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "אישור", |
DlgBtnCancel : "ביטול", |
DlgBtnClose : "סגירה", |
DlgBtnBrowseServer : "Browse Server", //MISSING |
DlgBtnBrowseServer : "סייר השרת", |
DlgAdvancedTag : "אפשרויות מתקדמות", |
DlgOpOther : "<Other>", //MISSING |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgOpOther : "<אחר>", |
DlgInfoTab : "מידע", |
DlgAlertUrl : "אנה הזן URL", |
// General Dialogs Labels |
DlgGenNotSet : "<לא נקבע>", |
153,7 → 157,7 |
DlgGenName : "שם", |
DlgGenTabIndex : "מספר טאב", |
DlgGenLongDescr : "קישור לתיאור מפורט", |
DlgGenClass : "Stylesheet Classes", |
DlgGenClass : "גיליונות עיצוב קבוצות", |
DlgGenTitle : "כותרת מוצעת", |
DlgGenContType : "Content Type מוצע", |
DlgGenLinkCharset : "קידוד המשאב המקושר", |
185,17 → 189,17 |
DlgImgAlignTop : "למעלה", |
DlgImgPreview : "תצוגה מקדימה", |
DlgImgAlertUrl : "נא להקליד את כתובת התמונה", |
DlgImgLinkTab : "Link", //MISSING |
DlgImgLinkTab : "קישור", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "מאפיני פלאש", |
DlgFlashChkPlay : "נגן אוטומטי", |
DlgFlashChkLoop : "לולאה", |
DlgFlashChkMenu : "אפשר תפריט פלאש", |
DlgFlashScale : "גודל", |
DlgFlashScaleAll : "הצג הכל", |
DlgFlashScaleNoBorder : "ללא גבולות", |
DlgFlashScaleFit : "התאמה מושלמת", |
// Link Dialog |
DlgLnkWindowTitle : "קישור", |
226,7 → 230,7 |
DlgLnkTargetParent : "חלון האב (_parent)", |
DlgLnkTargetSelf : "באותו החלון (_self)", |
DlgLnkTargetTop : "חלון ראשי (_top)", |
DlgLnkTargetFrameName : "Target Frame Name", //MISSING |
DlgLnkTargetFrameName : "שם frame היעד", |
DlgLnkPopWinName : "שם החלון הקופץ", |
DlgLnkPopWinFeat : "תכונות החלון הקופץ", |
DlgLnkPopResize : "בעל גודל ניתן לשינוי", |
325,10 → 329,10 |
PasteAsText : "הדבקה כטקסט פשוט", |
PasteFromWord : "הדבקה מ-Word", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "התעלם מהגדרות סוג פונט", |
DlgPasteRemoveStyles : "הסר הגדרות סגנון", |
DlgPasteCleanBox : "קופסת ניקוי", |
// Color Picker |
336,136 → 340,136 |
ColorMoreColors : "צבעים נוספים...", |
// Document Properties |
DocProps : "Document Properties", //MISSING |
DocProps : "מאפיני מסמך", |
// Anchor Dialog |
DlgAnchorTitle : "Anchor Properties", //MISSING |
DlgAnchorName : "Anchor Name", //MISSING |
DlgAnchorErrorName : "Please type the anchor name", //MISSING |
DlgAnchorTitle : "מאפיני נקודת עיגון", |
DlgAnchorName : "שם לנקודת עיגון", |
DlgAnchorErrorName : "אנא הזן שם לנקודת עיגון", |
// Speller Pages Dialog |
DlgSpellNotInDic : "Not in dictionary", //MISSING |
DlgSpellChangeTo : "Change to", //MISSING |
DlgSpellBtnIgnore : "Ignore", //MISSING |
DlgSpellBtnIgnoreAll : "Ignore All", //MISSING |
DlgSpellBtnReplace : "Replace", //MISSING |
DlgSpellBtnReplaceAll : "Replace All", //MISSING |
DlgSpellBtnUndo : "Undo", //MISSING |
DlgSpellNoSuggestions : "- No suggestions -", //MISSING |
DlgSpellProgress : "Spell check in progress...", //MISSING |
DlgSpellNoMispell : "Spell check complete: No misspellings found", //MISSING |
DlgSpellNoChanges : "Spell check complete: No words changed", //MISSING |
DlgSpellOneChange : "Spell check complete: One word changed", //MISSING |
DlgSpellManyChanges : "Spell check complete: %1 words changed", //MISSING |
DlgSpellNotInDic : "לא נמצא במילון", |
DlgSpellChangeTo : "שנה ל", |
DlgSpellBtnIgnore : "התעלם", |
DlgSpellBtnIgnoreAll : "התעלם מהכל", |
DlgSpellBtnReplace : "החלף", |
DlgSpellBtnReplaceAll : "החלף הכל", |
DlgSpellBtnUndo : "Undo", |
DlgSpellNoSuggestions : "- אין הצעות -", |
DlgSpellProgress : "בדיקות איות בתהליך ....", |
DlgSpellNoMispell : "בדיקות איות הסתיימה: לא נמצאו שגיעות כתיב", |
DlgSpellNoChanges : "בדיקות איות הסתיימה: לא שונתה אף מילה", |
DlgSpellOneChange : "בדיקות איות הסתיימה: שונתה מילה אחת", |
DlgSpellManyChanges : "בדיקות איות הסתיימה: %1 מילים שונו", |
IeSpellDownload : "Spell checker not installed. Do you want to download it now?", //MISSING |
IeSpellDownload : "בודק האיות לא מותקן, האם אתה מעוניין להוריד?", |
// Button Dialog |
DlgButtonText : "Text (Value)", //MISSING |
DlgButtonType : "Type", //MISSING |
DlgButtonText : "טקסט (ערך)", |
DlgButtonType : "סוג", |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Name", //MISSING |
DlgCheckboxValue : "Value", //MISSING |
DlgCheckboxSelected : "Selected", //MISSING |
DlgCheckboxName : "שם", |
DlgCheckboxValue : "ערך", |
DlgCheckboxSelected : "בחור", |
// Form Dialog |
DlgFormName : "Name", //MISSING |
DlgFormAction : "Action", //MISSING |
DlgFormMethod : "Method", //MISSING |
DlgFormName : "שם", |
DlgFormAction : "שלח אל", |
DlgFormMethod : "סוג שליחה", |
// Select Field Dialog |
DlgSelectName : "Name", //MISSING |
DlgSelectValue : "Value", //MISSING |
DlgSelectSize : "Size", //MISSING |
DlgSelectLines : "lines", //MISSING |
DlgSelectChkMulti : "Allow multiple selections", //MISSING |
DlgSelectOpAvail : "Available Options", //MISSING |
DlgSelectOpText : "Text", //MISSING |
DlgSelectOpValue : "Value", //MISSING |
DlgSelectBtnAdd : "Add", //MISSING |
DlgSelectBtnModify : "Modify", //MISSING |
DlgSelectBtnUp : "Up", //MISSING |
DlgSelectBtnDown : "Down", //MISSING |
DlgSelectBtnSetValue : "Set as selected value", //MISSING |
DlgSelectBtnDelete : "Delete", //MISSING |
DlgSelectName : "שם", |
DlgSelectValue : "ערך", |
DlgSelectSize : "גודל", |
DlgSelectLines : "שורות", |
DlgSelectChkMulti : "אפשר בחירות מרובות", |
DlgSelectOpAvail : "אפשרויות זמינות", |
DlgSelectOpText : "טקסט", |
DlgSelectOpValue : "ערך", |
DlgSelectBtnAdd : "הוסף", |
DlgSelectBtnModify : "שנה", |
DlgSelectBtnUp : "למעלה", |
DlgSelectBtnDown : "למטה", |
DlgSelectBtnSetValue : "קבע כברירת מחדל", |
DlgSelectBtnDelete : "מחק", |
// Textarea Dialog |
DlgTextareaName : "Name", //MISSING |
DlgTextareaCols : "Columns", //MISSING |
DlgTextareaRows : "Rows", //MISSING |
DlgTextareaName : "שם", |
DlgTextareaCols : "עמודות", |
DlgTextareaRows : "שורות", |
// Text Field Dialog |
DlgTextName : "Name", //MISSING |
DlgTextValue : "Value", //MISSING |
DlgTextCharWidth : "Character Width", //MISSING |
DlgTextMaxChars : "Maximum Characters", //MISSING |
DlgTextType : "Type", //MISSING |
DlgTextTypeText : "Text", //MISSING |
DlgTextTypePass : "Password", //MISSING |
DlgTextName : "שם", |
DlgTextValue : "ערך", |
DlgTextCharWidth : "רוחב באותיות", |
DlgTextMaxChars : "מקסימות אותיות", |
DlgTextType : "סוג", |
DlgTextTypeText : "טקסט", |
DlgTextTypePass : "סיסמה", |
// Hidden Field Dialog |
DlgHiddenName : "Name", //MISSING |
DlgHiddenValue : "Value", //MISSING |
DlgHiddenName : "שם", |
DlgHiddenValue : "ערך", |
// Bulleted List Dialog |
BulletedListProp : "Bulleted List Properties", //MISSING |
NumberedListProp : "Numbered List Properties", //MISSING |
DlgLstType : "Type", //MISSING |
DlgLstTypeCircle : "Circle", //MISSING |
DlgLstTypeDisk : "Disk", //MISSING |
DlgLstTypeSquare : "Square", //MISSING |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING |
DlgLstTypeUCase : "Uppercase Letters (A, B, C)", //MISSING |
DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)", //MISSING |
DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)", //MISSING |
BulletedListProp : "מאפייני רשימה", |
NumberedListProp : "מאפייני רשימה ממוספרת", |
DlgLstType : "סוג", |
DlgLstTypeCircle : "עיגול", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "מרובע", |
DlgLstTypeNumbers : "מספרים (1, 2, 3)", |
DlgLstTypeLCase : "אותיות קטנות (a, b, c)", |
DlgLstTypeUCase : "אותיות גדולות (A, B, C)", |
DlgLstTypeSRoman : "ספרות רומאיות קטנות (i, ii, iii)", |
DlgLstTypeLRoman : "ספרות רומאיות גדולות (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "General", //MISSING |
DlgDocBackTab : "Background", //MISSING |
DlgDocColorsTab : "Colors and Margins", //MISSING |
DlgDocMetaTab : "Meta Data", //MISSING |
DlgDocGeneralTab : "כללי", |
DlgDocBackTab : "רקע", |
DlgDocColorsTab : "צבעים וגבולות", |
DlgDocMetaTab : "נתוני META", |
DlgDocPageTitle : "Page Title", //MISSING |
DlgDocLangDir : "Language Direction", //MISSING |
DlgDocLangDirLTR : "Left to Right (LTR)", //MISSING |
DlgDocLangDirRTL : "Right to Left (RTL)", //MISSING |
DlgDocLangCode : "Language Code", //MISSING |
DlgDocCharSet : "Character Set Encoding", //MISSING |
DlgDocCharSetOther : "Other Character Set Encoding", //MISSING |
DlgDocPageTitle : "כותרת דף", |
DlgDocLangDir : "כיוון שפה", |
DlgDocLangDirLTR : "שמאל לימין (LTR)", |
DlgDocLangDirRTL : "ימין לשמאל (RTL)", |
DlgDocLangCode : "קוד שפה", |
DlgDocCharSet : "קידוד אותיות", |
DlgDocCharSetOther : "קידוד אותיות אחר", |
DlgDocDocType : "Document Type Heading", //MISSING |
DlgDocDocTypeOther : "Other Document Type Heading", //MISSING |
DlgDocIncXHTML : "Include XHTML Declarations", //MISSING |
DlgDocBgColor : "Background Color", //MISSING |
DlgDocBgImage : "Background Image URL", //MISSING |
DlgDocBgNoScroll : "Nonscrolling Background", //MISSING |
DlgDocCText : "Text", //MISSING |
DlgDocCLink : "Link", //MISSING |
DlgDocCVisited : "Visited Link", //MISSING |
DlgDocCActive : "Active Link", //MISSING |
DlgDocMargins : "Page Margins", //MISSING |
DlgDocMaTop : "Top", //MISSING |
DlgDocMaLeft : "Left", //MISSING |
DlgDocMaRight : "Right", //MISSING |
DlgDocMaBottom : "Bottom", //MISSING |
DlgDocMeIndex : "Document Indexing Keywords (comma separated)", //MISSING |
DlgDocMeDescr : "Document Description", //MISSING |
DlgDocMeAuthor : "Author", //MISSING |
DlgDocMeCopy : "Copyright", //MISSING |
DlgDocPreview : "Preview", //MISSING |
DlgDocDocType : "הגדרות סוג מסמך", |
DlgDocDocTypeOther : "הגדרות סוג מסמך אחרות", |
DlgDocIncXHTML : "כלול הגדרות XHTML", |
DlgDocBgColor : "צבע רקע", |
DlgDocBgImage : "URL לתמונת רקע", |
DlgDocBgNoScroll : "רגע ללא גלילה", |
DlgDocCText : "טקסט", |
DlgDocCLink : "קישור", |
DlgDocCVisited : "קישור שבוקר", |
DlgDocCActive : " קישור פעיל", |
DlgDocMargins : "גבולות דף", |
DlgDocMaTop : "למעלה", |
DlgDocMaLeft : "שמאלה", |
DlgDocMaRight : "ימינה", |
DlgDocMaBottom : "למטה", |
DlgDocMeIndex : "מפתח עניינים של המסמך )מופרד בפסיק(", |
DlgDocMeDescr : "תאור מסמך", |
DlgDocMeAuthor : "מחבר", |
DlgDocMeCopy : "זכויות יוצרים", |
DlgDocPreview : "תצוגה מקדימה", |
// Templates Dialog |
Templates : "Templates", //MISSING |
DlgTemplatesTitle : "Content Templates", //MISSING |
DlgTemplatesSelMsg : "Please select the template to open in the editor<br>(the actual contents will be lost):", //MISSING |
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING |
DlgTemplatesNoTpl : "(No templates defined)", //MISSING |
Templates : "תבניות", |
DlgTemplatesTitle : "תביות תוכן", |
DlgTemplatesSelMsg : "אנא בחר תבנית לפתיחה בעורך <BR>התוכן המקורי ימחק:", |
DlgTemplatesLoading : "מעלה רשימת תבניות אנא המתן", |
DlgTemplatesNoTpl : "(לא הוגדרו תבניות)", |
// About Dialog |
DlgAboutAboutTab : "About", //MISSING |
DlgAboutBrowserInfoTab : "Browser Info", //MISSING |
DlgAboutAboutTab : "אודות", |
DlgAboutBrowserInfoTab : "גירסת דפדפן", |
DlgAboutVersion : "גירסא", |
DlgAboutLicense : "ברשיון תחת תנאי GNU Lesser General Public License", |
DlgAboutInfo : "מידע נוסף ניתן למצוא כאן:" |
/trunk/api/fckeditor/editor/lang/fi.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fi.js |
* Finnish language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Tuntematon komento \"%1\"", |
NotImplemented : "Komentoa ei ole liitetty sovellukseen", |
UnknownToolbarSet : "Työkalukokonaisuus \"%1\" ei ole olemassa", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numeroinnin ominaisuudet", |
DlgLstType : "Tyyppi", |
DlgLstTypeCircle : "Kehä", |
DlgLstTypeDisk : "Ympyrä", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Neliö", |
DlgLstTypeNumbers : "Numerot (1, 2, 3)", |
DlgLstTypeLCase : "Pienet kirjaimet (a, b, c)", |
/trunk/api/fckeditor/editor/lang/fcklanguagemanager.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fcklanguagemanager.js |
* This file list all available languages in the editor. |
* |
36,6 → 38,7 |
'eu' : 'Basque', |
'fa' : 'Persian', |
'fi' : 'Finnish', |
'fo' : 'Faroese', |
'fr' : 'French', |
'gl' : 'Galician', |
'he' : 'Hebrew', |
45,6 → 48,8 |
'ja' : 'Japanese', |
'ko' : 'Korean', |
'lt' : 'Lithuanian', |
'mn' : 'Mongolian', |
'ms' : 'Malay', |
'nl' : 'Dutch', |
'no' : 'Norwegian', |
'pl' : 'Polish', |
60,6 → 65,7 |
'th' : 'Thai', |
'tr' : 'Turkish', |
'uk' : 'Ukrainian', |
'vi' : 'Vietnamese', |
'zh' : 'Chinese Traditional', |
'zh-cn' : 'Chinese Simplified' |
} |
/trunk/api/fckeditor/editor/lang/eo.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: eo.js |
* Esperanto language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Komandonomo nekonata \"%1\"", |
NotImplemented : "Komando ne ankoraŭ realigita", |
UnknownToolbarSet : "La ilobreto \"%1\" ne ekzistas", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "Akcepti", |
413,7 → 416,7 |
NumberedListProp : "Atributoj de Numera Listo", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Cirklo", |
DlgLstTypeDisk : "Disko", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kvadrato", |
DlgLstTypeNumbers : "Ciferoj (1, 2, 3)", |
DlgLstTypeLCase : "Minusklaj Literoj (a, b, c)", |
/trunk/api/fckeditor/editor/lang/fo.js |
---|
New file |
0,0 → 1,476 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fo.js |
* Faroese language file. |
* |
* File Authors: |
* Símin Lassaberg |
* Helgi Arnthorsson |
*/ |
var FCKLang = |
{ |
// Language direction : "ltr" (left to right) or "rtl" (right to left). |
Dir : "ltr", |
ToolbarCollapse : "Goym amboðalistan", |
ToolbarExpand : "Vís amboðalistan", |
// Toolbar Items and Context Menu |
Save : "Geim", |
NewPage : "Nýggj síða", |
Preview : "Vís dømi", |
Cut : "Klipp", |
Copy : "Avrita", |
Paste : "Set inn", |
PasteText : "Set inn sum reinan tekst", |
PasteWord : "Set inn frá Word", |
Print : "Prenta", |
SelectAll : "Markera alt", |
RemoveFormat : "Sletta sniðgeving", |
InsertLinkLbl : "Leinkja", |
InsertLink : "Seta inn/Broyta Leinkju", |
RemoveLink : "Sletta Leinkju", |
Anchor : "Seta inn/Broyta staðsetingarmerki", |
InsertImageLbl : "Seta inn mynd", |
InsertImage : "Seta inn/Broyta mynd", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertTableLbl : "Talva", |
InsertTable : "Seta inn/Broyta talvu", |
InsertLineLbl : "Linja", |
InsertLine : "Seta inn vatnrætta linju", |
InsertSpecialCharLbl: "Serlig tekn", |
InsertSpecialChar : "Seta inn serligt tekn", |
InsertSmileyLbl : "Smiley", |
InsertSmiley : "Seta inn Smiley", |
About : "Um FCKeditor", |
Bold : "Feit", |
Italic : "Skástillað", |
Underline : "Undirstrikað", |
StrikeThrough : "Strikað yvir", |
Subscript : "Lækkað skrift", |
Superscript : "Hækkað skrift", |
LeftJustify : "Vinstristillað", |
CenterJustify : "Miðstillað", |
RightJustify : "Hægristillað", |
BlockJustify : "Beinir tekstkantar", |
DecreaseIndent : "Økja innrykk", |
IncreaseIndent : "Minka innrykk", |
Undo : "Angra", |
Redo : "Broyt aftur í upprunamynd", |
NumberedListLbl : "Talsettur listi", |
NumberedList : "Seta inn/Sletta talsettan lista", |
BulletedListLbl : "Punktsettur listi", |
BulletedList : "Seta inn/Sletta punktsettan lista", |
ShowTableBorders : "Vísa talvukantar ", |
ShowDetails : "Vísa detaljur", |
Style : "Tekstsnið", |
FontFormat : "Sniðgeving", |
Font : "Skrift", |
FontSize : "Skriftstødd", |
TextColor : "Tekstlitur", |
BGColor : "Litur aftanfyri", |
Source : "Kelda", |
Find : "Leita", |
Replace : "Set í staðin", |
SpellCheck : "Stavseting", |
UniversalKeyboard : "Universalt Tastatur", |
Form : "Seta inn Form", |
Checkbox : "Seta inn Avmerkingarboks", |
RadioButton : "Seta inn Radioknap", |
TextField : "Seta inn Tekstteig", |
Textarea : "Seta inn Tekstøki", |
HiddenField : "Seta inn GoymdanTeig", |
Button : "Seta inn knapp", |
SelectionField : "Seta inn Valteig", |
ImageButton : "Seta inn Myndaknapp", |
// Context Menu |
EditLink : "Broyt leinkju", |
InsertRow : "Seta inn rekkju", |
DeleteRows : "Sletta rekkjur", |
InsertColumn : "Seta inn søjlur", |
DeleteColumns : "Sletta søjlur", |
InsertCell : "Seta inn sellu", |
DeleteCells : "Sletta sellu", |
MergeCells : "Flætta sellur", |
SplitCell : "Deila sellur", |
CellProperties : "Eginleikar fyri sellu", |
TableProperties : "Eginleikar fyri talvu", |
ImageProperties : "Eginleikar fyri mynd", |
FlashProperties : "Flash Properties", //MISSING |
AnchorProp : "Eginleikar fyri staðsetingarpunkt", |
ButtonProp : "Eginleikar fyri knapp", |
CheckboxProp : "Eginleikar fyri avmerkingarboks", |
HiddenFieldProp : "Eginleikar fyri goymdan teig", |
RadioButtonProp : "Eginleikar fyri radioknapp", |
ImageButtonProp : "Eginleikar fyri myndaknapp", |
TextFieldProp : "Eginleikar fyri Tekstateig", |
SelectionFieldProp : "Eginleikar fyri Valteig", |
TextareaProp : "Eginleikar fyri Tekstaøki", |
FormProp : "Eginleikar fyri form", |
FontFormats : "Normalt;Sniðgevið;Adressa;Yvirskrift 1;Yvirskrift 2;Yvirskrift 3;Yvirskrift 4;Yvirskrift 5;Yvirskrift 6", |
// Alerts and Messages |
ProcessingXHTML : "Viðgerir XHTML. Bíða...", |
Done : "Liðugt", |
PasteWordConfirm : "Teksturin, tú roynir at seta inn, sýnist at vera frá Word. Vilt tú reinsa tekstin, áðrenn hann verður settur inn?", |
NotCompatiblePaste : "Hesin ordri er tøkur í Internet Explorer 5.5 og nýggjari. Vilt tú seta tekstin inn, uttan at reinsa hann?", |
UnknownToolbarItem : "Ókendur lutur í amboðalinju \"%1\"", |
UnknownCommand : "Kenni ikki ordra \"%1\"", |
NotImplemented : "Ordrin er ikki gjørdur virkin", |
UnknownToolbarSet : "Amboðalinjan \"%1\" finst ikki", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
DlgBtnCancel : "Angra", |
DlgBtnClose : "Lukka", |
DlgBtnBrowseServer : "Hyggja á servara", |
DlgAdvancedTag : "Útvíðka", |
DlgOpOther : "<Annað>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
// General Dialogs Labels |
DlgGenNotSet : "<ikki sett>", |
DlgGenId : "Id", |
DlgGenLangDir : "Tekstakós", |
DlgGenLangDirLtr : "Vinstri móti høgri (LTR)", |
DlgGenLangDirRtl : "Høgri móti vinstri (RTL)", |
DlgGenLangCode : "Málkoda", |
DlgGenAccessKey : "Atgongdslykil", |
DlgGenName : "Navn", |
DlgGenTabIndex : "Tabulator Indeks", |
DlgGenLongDescr : "víðka frágreiðing", |
DlgGenClass : "Typografiark", |
DlgGenTitle : "Heiti", |
DlgGenContType : "Innihaldsslag", |
DlgGenLinkCharset : "Teknset", |
DlgGenStyle : "Prentlist", |
// Image Dialog |
DlgImgTitle : "Mynd eginleikar", |
DlgImgInfoTab : "Mynd info", |
DlgImgBtnUpload : "Send til serveren", |
DlgImgURL : "URL", |
DlgImgUpload : "Upload", |
DlgImgAlt : "Annar tekstur", |
DlgImgWidth : "Breidd", |
DlgImgHeight : "Hædd", |
DlgImgLockRatio : "Læs støddarlutfall", |
DlgBtnResetSize : "Nulstilla stødd", |
DlgImgBorder : "Ramma", |
DlgImgHSpace : "HMargin", |
DlgImgVSpace : "VMargin", |
DlgImgAlign : "Justering", |
DlgImgAlignLeft : "Vinstra", |
DlgImgAlignAbsBottom: "Abs botnur", |
DlgImgAlignAbsMiddle: "Abs Miðja", |
DlgImgAlignBaseline : "Botnlinja", |
DlgImgAlignBottom : "Botnur", |
DlgImgAlignMiddle : "Miðja", |
DlgImgAlignRight : "Høgra", |
DlgImgAlignTextTop : "Tekstur ovast", |
DlgImgAlignTop : "Ovast", |
DlgImgPreview : "Vís dømi", |
DlgImgAlertUrl : "Slá inn slóðina til myndina", |
DlgImgLinkTab : "Leinkja", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
// Link Dialog |
DlgLnkWindowTitle : "Leinkja", |
DlgLnkInfoTab : "Leinkju info", |
DlgLnkTargetTab : "Mál", |
DlgLnkType : "Leinkju slag", |
DlgLnkTypeURL : "URL", |
DlgLnkTypeAnchor : "Akker á hesari síðuni", |
DlgLnkTypeEMail : "Teldupostur", |
DlgLnkProto : "Protokoll", |
DlgLnkProtoOther : "<onnur>", |
DlgLnkURL : "URL", |
DlgLnkAnchorSel : "VEl eitt akker", |
DlgLnkAnchorByName : "Eftir akker navni", |
DlgLnkAnchorById : "Eftir element Id", |
DlgLnkNoAnchors : "<Tað eru ongi akker tøk í hesum dokumentinum;", |
DlgLnkEMail : "Teldupost Adresse", |
DlgLnkEMailSubject : "Evni", |
DlgLnkEMailBody : "Boð", |
DlgLnkUpload : "Upload", |
DlgLnkBtnUpload : "Send til servaran", |
DlgLnkTarget : "Mál", |
DlgLnkTargetFrame : "<ramma>", |
DlgLnkTargetPopup : "<popup vindeyga>", |
DlgLnkTargetBlank : "Nytt vindeyga (_blank)", |
DlgLnkTargetParent : "Omaná liggjandi vindeyga (_parent)", |
DlgLnkTargetSelf : "Sama vindeyga (_self)", |
DlgLnkTargetTop : "ovasta vindeyga (_top)", |
DlgLnkTargetFrameName : "vísa vindeygas navn", |
DlgLnkPopWinName : "Popup vindeygas navn", |
DlgLnkPopWinFeat : "Popup vindeygas eginleikar", |
DlgLnkPopResize : "Skalering", |
DlgLnkPopLocation : "Lokationslinja", |
DlgLnkPopMenu : "Menulinja", |
DlgLnkPopScroll : "Scrollbars", |
DlgLnkPopStatus : "Statuslinja", |
DlgLnkPopToolbar : "Værktøjslinja", |
DlgLnkPopFullScrn : "Fullur skermur (IE)", |
DlgLnkPopDependent : "Bundin (Netscape)", |
DlgLnkPopWidth : "Breidd", |
DlgLnkPopHeight : "Hædd", |
DlgLnkPopLeft : "Positión frá vinstru", |
DlgLnkPopTop : "Positión frá toppinum", |
DlnLnkMsgNoUrl : "Inntasta leinkju URL", |
DlnLnkMsgNoEMail : "Inntasta teldupost addressuna", |
DlnLnkMsgNoAnchor : "Vel akker", |
// Color Dialog |
DlgColorTitle : "vel farvu", |
DlgColorBtnClear : "sletta alt", |
DlgColorHighlight : "Markera", |
DlgColorSelected : "valt", |
// Smiley Dialog |
DlgSmileyTitle : "Innset ein smiley", |
// Special Character Dialog |
DlgSpecialCharTitle : "vel specialkarakter", |
// Table Dialog |
DlgTableTitle : "Tabel eginleikar", |
DlgTableRows : "Rekkjur", |
DlgTableColumns : "Kolonnur", |
DlgTableBorder : "Rammu stødd", |
DlgTableAlign : "Justering", |
DlgTableAlignNotSet : "<Ikki sett>", |
DlgTableAlignLeft : "Vinstrastilla", |
DlgTableAlignCenter : "Miðseta", |
DlgTableAlignRight : "Høgrastilla", |
DlgTableWidth : "Breidd", |
DlgTableWidthPx : "pixels", |
DlgTableWidthPc : "prosent", |
DlgTableHeight : "Hædd", |
DlgTableCellSpace : "Fjarstøða millum sellur", |
DlgTableCellPad : "Sellu breddi", |
DlgTableCaption : "Heiti", |
// Table Cell Dialog |
DlgCellTitle : "Sellu eginleikar", |
DlgCellWidth : "Breidd", |
DlgCellWidthPx : "pixels", |
DlgCellWidthPc : "prosent", |
DlgCellHeight : "Hædd", |
DlgCellWordWrap : "Orðbýti", |
DlgCellWordWrapNotSet : "<Ikki sett>", |
DlgCellWordWrapYes : "Ja", |
DlgCellWordWrapNo : "Nej", |
DlgCellHorAlign : "Horisontal justering", |
DlgCellHorAlignNotSet : "<Ikke sat>", |
DlgCellHorAlignLeft : "Vinstrastilla", |
DlgCellHorAlignCenter : "Miðsett", |
DlgCellHorAlignRight: "Høgrastilla", |
DlgCellVerAlign : "Lodrøtt Justering", |
DlgCellVerAlignNotSet : "<Ikki sett>", |
DlgCellVerAlignTop : "Ovast", |
DlgCellVerAlignMiddle : "Miðja", |
DlgCellVerAlignBottom : "Niðast", |
DlgCellVerAlignBaseline : "Botnlinja", |
DlgCellRowSpan : "Tal av rekkjum sellan spennur yvir", |
DlgCellCollSpan : "Tal av talrøðum sellan spennur yvir", |
DlgCellBackColor : "Bakgrundsfarva", |
DlgCellBorderColor : "rammufarva", |
DlgCellBtnSelect : "Vel...", |
// Find Dialog |
DlgFindTitle : "Finn", |
DlgFindFindBtn : "Finn", |
DlgFindNotFoundMsg : "Teksturin bleiv ikki funnin", |
// Replace Dialog |
DlgReplaceTitle : "Set í staðin", |
DlgReplaceFindLbl : "Finn:", |
DlgReplaceReplaceLbl : "Set í staðin við:", |
DlgReplaceCaseChk : "Munur á stórum og smáðum stavum", |
DlgReplaceReplaceBtn : "Set í staðin", |
DlgReplaceReplAllBtn : "Skift alt út", |
DlgReplaceWordChk : "Bert heil orð", |
// Paste Operations / Dialog |
PasteErrorPaste : "Leitarans trygdarinstillingar loyva ikki editorinum at innseta tekstin automatiskt. Brúka knappaborðið til at innseta tekstin (Ctrl+V).", |
PasteErrorCut : "Leitarans trygdarinstillingar loyva ikki editorinum at klippa tekstin automatiskt. Brúka í staðin knappaborðið til at klippa tekstin (Ctrl+X).", |
PasteErrorCopy : "Leitarans trygdarinstillingar loyva ikki editorinum at avrita tekstin automatiskt. Brúka í staðin knappaborðið til at avrita tekstin (Ctrl+V).", |
PasteAsText : "Seta inn som reinur tekstur", |
PasteFromWord : "Seta inn fra Word", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
// Color Picker |
ColorAutomatic : "Automatisk", |
ColorMoreColors : "Fleiri farvur...", |
// Document Properties |
DocProps : "Dokument eginleikar", |
// Anchor Dialog |
DlgAnchorTitle : "Akker eginleikar", |
DlgAnchorName : "Akker navn", |
DlgAnchorErrorName : "Slá innn akker navn", |
// Speller Pages Dialog |
DlgSpellNotInDic : "Finnst ikki í orðabókini", |
DlgSpellChangeTo : "broyta til", |
DlgSpellBtnIgnore : "Ignorera", |
DlgSpellBtnIgnoreAll : "Ignorera alt", |
DlgSpellBtnReplace : "Skift út", |
DlgSpellBtnReplaceAll : "Skift út alt", |
DlgSpellBtnUndo : "Aftur", |
DlgSpellNoSuggestions : "- Einki uppskot -", |
DlgSpellProgress : "Stavarin arbeiðir...", |
DlgSpellNoMispell : "Stavarain liðugur: Eingin feilur funnin", |
DlgSpellNoChanges : "Stavarain liðugur: Einki orð broytt", |
DlgSpellOneChange : "Stavarain liðugur: Eitt orð broytt", |
DlgSpellManyChanges : "Stavarain liðugur: %1 orð broytt", |
IeSpellDownload : "Stavarin ikki lagdur inn. vilt tú heinta hann nú?", |
// Button Dialog |
DlgButtonText : "Tekstur (Virði)", |
DlgButtonType : "Slag", |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Navn", |
DlgCheckboxValue : "Virði", |
DlgCheckboxSelected : "Valgt", |
// Form Dialog |
DlgFormName : "Navn", |
DlgFormAction : "Gerð", |
DlgFormMethod : "Háttur", |
// Select Field Dialog |
DlgSelectName : "Navn", |
DlgSelectValue : "Virði", |
DlgSelectSize : "Stødd", |
DlgSelectLines : "linjir", |
DlgSelectChkMulti : "Loyv fleiri valmøguleikar", |
DlgSelectOpAvail : "valmøguleikar", |
DlgSelectOpText : "Tekstur", |
DlgSelectOpValue : "Virði", |
DlgSelectBtnAdd : "Legg afturat", |
DlgSelectBtnModify : "Broyt", |
DlgSelectBtnUp : "Upp", |
DlgSelectBtnDown : "Niður", |
DlgSelectBtnSetValue : "Set sum útvald", |
DlgSelectBtnDelete : "Sletta", |
// Textarea Dialog |
DlgTextareaName : "Navn", |
DlgTextareaCols : "talrøð", |
DlgTextareaRows : "Rekkja", |
// Text Field Dialog |
DlgTextName : "Navn", |
DlgTextValue : "Virði", |
DlgTextCharWidth : "Sjónligt tal av bókstavum", |
DlgTextMaxChars : "Hægst loyvda tal av bókstavum", |
DlgTextType : "Slag", |
DlgTextTypeText : "Tekstur", |
DlgTextTypePass : "Koduorð", |
// Hidden Field Dialog |
DlgHiddenName : "Navn", |
DlgHiddenValue : "Virði", |
// Bulleted List Dialog |
BulletedListProp : "Punktteknsuppsetingar eginleikar", |
NumberedListProp : "Taluppsetingar eginleikar", |
DlgLstType : "Slag", |
DlgLstTypeCircle : "Sirkul", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Fýrakantur", |
DlgLstTypeNumbers : "Talmerkt (1, 2, 3)", |
DlgLstTypeLCase : "Smáir bókstavir (a, b, c)", |
DlgLstTypeUCase : "Stórir bókstavir (A, B, C)", |
DlgLstTypeSRoman : "Smá rómaratøl (i, ii, iii)", |
DlgLstTypeLRoman : "Stór rómaratøl (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "Generelt", |
DlgDocBackTab : "Bakgrund", |
DlgDocColorsTab : "Farva og Breddin", |
DlgDocMetaTab : "Meta Information", |
DlgDocPageTitle : "Síðu heiti", |
DlgDocLangDir : "Mál", |
DlgDocLangDirLTR : "Frá vinstru móti høgru (LTR)", |
DlgDocLangDirRTL : "Frá høgru móti vinstru (RTL)", |
DlgDocLangCode : "Landakoda", |
DlgDocCharSet : "Karakter set kodu", |
DlgDocCharSetOther : "Annar karakter set kodu", |
DlgDocDocType : "Dokument slag kategori", |
DlgDocDocTypeOther : "Annað dokument slag kategori", |
DlgDocIncXHTML : "Inkludere XHTML deklartion", |
DlgDocBgColor : "Bakgrundsfarva", |
DlgDocBgImage : "Bakgrundsmynd URL", |
DlgDocBgNoScroll : "Ikki scrollbar bakgrund", |
DlgDocCText : "Tekstur", |
DlgDocCLink : "Leinkja", |
DlgDocCVisited : "Vitja leinkja", |
DlgDocCActive : "Aktiv leinkja", |
DlgDocMargins : "Síðu breddi", |
DlgDocMaTop : "Ovast", |
DlgDocMaLeft : "Vinstra", |
DlgDocMaRight : "Høgra", |
DlgDocMaBottom : "Niðast", |
DlgDocMeIndex : "Dokument index lyklaorð (komma sundurskilt)", |
DlgDocMeDescr : "Dokument lýsing", |
DlgDocMeAuthor : "Høvundur", |
DlgDocMeCopy : "Copyright", |
DlgDocPreview : "Vís", |
// Templates Dialog |
Templates : "Frymlar", |
DlgTemplatesTitle : "Innihaldsfrymlar", |
DlgTemplatesSelMsg : "Vel tann frymilin, sum skal opnast í editorinum<br>(Tað verður skriva útyvir núverandi innihald):", |
DlgTemplatesLoading : "Heintar lista yvir frymlar. Vinarliga bíða...", |
DlgTemplatesNoTpl : "(Ongin frymil er valdur)", |
// About Dialog |
DlgAboutAboutTab : "Um", |
DlgAboutBrowserInfoTab : "Browsara upplýsingar", |
DlgAboutVersion : "versión", |
DlgAboutLicense : "Loyvi undir treytum fyri GNU Lesser General Public License", |
DlgAboutInfo : "Fleiri upplýsingar, far til" |
} |
/trunk/api/fckeditor/editor/lang/_translationstatus.txt |
---|
8,52 → 8,60 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: _translationstatus.txt |
* Translation Status. |
* A useful site with languages information: |
* http://www.omniglot.com/ |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
*/ |
PROCESSING: ar.js Found: 376 Missing: 0 |
PROCESSING: bg.js Found: 376 Missing: 0 |
PROCESSING: bs.js Found: 232 Missing: 144 |
PROCESSING: ca.js Found: 376 Missing: 0 |
PROCESSING: cs.js Found: 353 Missing: 23 |
PROCESSING: da.js Found: 376 Missing: 0 |
PROCESSING: de.js Found: 376 Missing: 0 |
PROCESSING: el.js Found: 232 Missing: 144 |
PROCESSING: en-au.js Found: 376 Missing: 0 |
PROCESSING: en-uk.js Found: 376 Missing: 0 |
PROCESSING: eo.js Found: 353 Missing: 23 |
PROCESSING: es.js Found: 376 Missing: 0 |
PROCESSING: et.js Found: 232 Missing: 144 |
PROCESSING: eu.js Found: 376 Missing: 0 |
PROCESSING: fa.js Found: 359 Missing: 17 |
PROCESSING: fi.js Found: 376 Missing: 0 |
PROCESSING: fr.js Found: 376 Missing: 0 |
PROCESSING: gl.js Found: 376 Missing: 0 |
PROCESSING: he.js Found: 232 Missing: 144 |
PROCESSING: hr.js Found: 376 Missing: 0 |
PROCESSING: hu.js Found: 353 Missing: 23 |
PROCESSING: it.js Found: 376 Missing: 0 |
PROCESSING: ja.js Found: 376 Missing: 0 |
PROCESSING: ko.js Found: 359 Missing: 17 |
PROCESSING: lt.js Found: 376 Missing: 0 |
PROCESSING: nl.js Found: 376 Missing: 0 |
PROCESSING: no.js Found: 376 Missing: 0 |
PROCESSING: pl.js Found: 353 Missing: 23 |
PROCESSING: pt-br.js Found: 359 Missing: 17 |
PROCESSING: pt.js Found: 359 Missing: 17 |
PROCESSING: ro.js Found: 376 Missing: 0 |
PROCESSING: ru.js Found: 376 Missing: 0 |
PROCESSING: sk.js Found: 376 Missing: 0 |
PROCESSING: sl.js Found: 376 Missing: 0 |
PROCESSING: sr-latn.js Found: 376 Missing: 0 |
PROCESSING: sr.js Found: 376 Missing: 0 |
PROCESSING: sv.js Found: 376 Missing: 0 |
PROCESSING: th.js Found: 353 Missing: 23 |
PROCESSING: tr.js Found: 352 Missing: 24 |
PROCESSING: uk.js Found: 376 Missing: 0 |
PROCESSING: zh-cn.js Found: 376 Missing: 0 |
PROCESSING: zh.js Found: 376 Missing: 0 |
PROCESSING: ar.js Found: 375 Missing: 2 |
PROCESSING: bg.js Found: 375 Missing: 2 |
PROCESSING: bs.js Found: 232 Missing: 145 |
PROCESSING: ca.js Found: 375 Missing: 2 |
PROCESSING: cs.js Found: 352 Missing: 25 |
PROCESSING: da.js Found: 375 Missing: 2 |
PROCESSING: de.js Found: 375 Missing: 2 |
PROCESSING: el.js Found: 232 Missing: 145 |
PROCESSING: en-au.js Found: 375 Missing: 2 |
PROCESSING: en-uk.js Found: 375 Missing: 2 |
PROCESSING: eo.js Found: 352 Missing: 25 |
PROCESSING: es.js Found: 375 Missing: 2 |
PROCESSING: et.js Found: 232 Missing: 145 |
PROCESSING: eu.js Found: 375 Missing: 2 |
PROCESSING: fa.js Found: 358 Missing: 19 |
PROCESSING: fi.js Found: 375 Missing: 2 |
PROCESSING: fo.js Found: 358 Missing: 19 |
PROCESSING: fr.js Found: 375 Missing: 2 |
PROCESSING: gl.js Found: 375 Missing: 2 |
PROCESSING: he.js Found: 375 Missing: 2 |
PROCESSING: hr.js Found: 375 Missing: 2 |
PROCESSING: hu.js Found: 377 Missing: 0 |
PROCESSING: it.js Found: 375 Missing: 2 |
PROCESSING: ja.js Found: 375 Missing: 2 |
PROCESSING: ko.js Found: 375 Missing: 2 |
PROCESSING: lt.js Found: 375 Missing: 2 |
PROCESSING: mn.js Found: 232 Missing: 145 |
PROCESSING: ms.js Found: 358 Missing: 19 |
PROCESSING: nl.js Found: 375 Missing: 2 |
PROCESSING: no.js Found: 375 Missing: 2 |
PROCESSING: pl.js Found: 352 Missing: 25 |
PROCESSING: pt-br.js Found: 375 Missing: 2 |
PROCESSING: pt.js Found: 375 Missing: 2 |
PROCESSING: ro.js Found: 375 Missing: 2 |
PROCESSING: ru.js Found: 375 Missing: 2 |
PROCESSING: sk.js Found: 375 Missing: 2 |
PROCESSING: sl.js Found: 375 Missing: 2 |
PROCESSING: sr-latn.js Found: 375 Missing: 2 |
PROCESSING: sr.js Found: 375 Missing: 2 |
PROCESSING: sv.js Found: 375 Missing: 2 |
PROCESSING: th.js Found: 352 Missing: 25 |
PROCESSING: tr.js Found: 374 Missing: 3 |
PROCESSING: uk.js Found: 375 Missing: 2 |
PROCESSING: vi.js Found: 374 Missing: 3 |
PROCESSING: zh-cn.js Found: 375 Missing: 2 |
PROCESSING: zh.js Found: 375 Missing: 2 |
/trunk/api/fckeditor/editor/lang/bs.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: bs.js |
* Bosnian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nepoznata komanda \"%1\"", |
NotImplemented : "Komanda nije implementirana", |
UnknownToolbarSet : "Traka sa alatima \"%1\" ne postoji", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Numbered List Properties", //MISSING |
DlgLstType : "Type", //MISSING |
DlgLstTypeCircle : "Circle", //MISSING |
DlgLstTypeDisk : "Disk", //MISSING |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", //MISSING |
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING |
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING |
/trunk/api/fckeditor/editor/lang/cs.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: cs.js |
* Czech language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Neznámý pÅíkaz \"%1\"", |
NotImplemented : "PÅíkaz není implementován", |
UnknownToolbarSet : "Panel nástrojů \"%1\" neexistuje", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
414,7 → 417,7 |
NumberedListProp : "Vlastnosti Äíslovaného seznamu", |
DlgLstType : "Typ", |
DlgLstTypeCircle : "Kružnice", |
DlgLstTypeDisk : "Plný kruh", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Čtverec", |
DlgLstTypeNumbers : "Äísla (1, 2, 3)", |
DlgLstTypeLCase : "Malá písmena (a, b, c)", |
/trunk/api/fckeditor/editor/lang/es.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: es.js |
* Spanish language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Nombre de comando desconocido \"%1\"", |
NotImplemented : "Comando no implementado", |
UnknownToolbarSet : "Nombre de barra \"%1\" no definido", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Propiedades de Numeraciones", |
DlgLstType : "Tipo", |
DlgLstTypeCircle : "Círculo", |
DlgLstTypeDisk : "Disco", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Cuadrado", |
DlgLstTypeNumbers : "Números (1, 2, 3)", |
DlgLstTypeLCase : "letras en minúsculas (a, b, c)", |
/trunk/api/fckeditor/editor/lang/ko.js |
---|
8,11 → 8,14 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ko.js |
* Korean language file. |
* |
* File Authors: |
* Taehwan Kwag (thkwag@nate.com) |
* Hyung-chae, Kim (chaeya@gmail.com) |
*/ |
var FCKLang = |
41,8 → 44,8 |
Anchor : "책갈피 삽입/변경", |
InsertImageLbl : "이미지", |
InsertImage : "이미지 삽입/변경", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "플래쉬", |
InsertFlash : "플래쉬 삽입/변경", |
InsertTableLbl : "표", |
InsertTable : "표 삽입/변경", |
InsertLineLbl : "수평선", |
107,7 → 110,7 |
CellProperties : "셀 속성", |
TableProperties : "표 속성", |
ImageProperties : "이미지 속성", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "플래쉬 속성", |
AnchorProp : "책갈피 속성", |
ButtonProp : "버튼 속성", |
131,6 → 134,7 |
UnknownCommand : "알수없는 기능입니다. : \"%1\"", |
NotImplemented : "기능이 실행되지 않았습니다.", |
UnknownToolbarSet : "툴바 설정이 없습니다. : \"%1\"", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "예", |
139,8 → 143,8 |
DlgBtnBrowseServer : "서버 보기", |
DlgAdvancedTag : "자세히", |
DlgOpOther : "<기타>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgInfoTab : "정보", |
DlgAlertUrl : "URL을 입력하십시요", |
// General Dialogs Labels |
DlgGenNotSet : "<설정되지 않음>", |
188,14 → 192,14 |
DlgImgLinkTab : "링크", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "플래쉬 등록정보", |
DlgFlashChkPlay : "자동재생", |
DlgFlashChkLoop : "반복", |
DlgFlashChkMenu : "플래쉬메뉴 가능", |
DlgFlashScale : "영역", |
DlgFlashScaleAll : "모두보기", |
DlgFlashScaleNoBorder : "경계선없음", |
DlgFlashScaleFit : "영역자동조절", |
// Link Dialog |
DlgLnkWindowTitle : "링크", |
325,10 → 329,10 |
PasteAsText : "텍스트로 붙여넣기", |
PasteFromWord : "MS Word 형식에서 붙여넣기", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteMsg2 : "키보드의 (<STRONG>Ctrl+V</STRONG>) 를 이용해서 상자안에 붙여넣고 <STRONG>OK</STRONG> 를 누르세요.", |
DlgPasteIgnoreFont : "폰트 설정 무시", |
DlgPasteRemoveStyles : "스타일 정의 제거", |
DlgPasteCleanBox : "글상자 제거", |
// Color Picker |
413,7 → 417,7 |
NumberedListProp : "순서있는 목록 속성", |
DlgLstType : "종류", |
DlgLstTypeCircle : "원(Circle)", |
DlgLstTypeDisk : "둥근점(Disk)", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "네모점(Square)", |
DlgLstTypeNumbers : "번호 (1, 2, 3)", |
DlgLstTypeLCase : "소문자 (a, b, c)", |
/trunk/api/fckeditor/editor/lang/eu.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: eu.js |
* Basque language file. |
* Euskara hizkuntza fitxategia. |
132,6 → 134,7 |
UnknownCommand : "Komando izen ezezaguna \"%1\"", |
NotImplemented : "Komando ez inplementatua", |
UnknownToolbarSet : "Ataza barra \"%1\" taldea ez da existitzen", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "Ados", |
414,7 → 417,7 |
NumberedListProp : "Zenbakidun Zerrendaren Ezarpenak", |
DlgLstType : "Mota", |
DlgLstTypeCircle : "Zirkulua", |
DlgLstTypeDisk : "Diskoa", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Karratua", |
DlgLstTypeNumbers : "Zenbakiak (1, 2, 3)", |
DlgLstTypeLCase : "Letra xeheak (a, b, c)", |
/trunk/api/fckeditor/editor/lang/hu.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: hu.js |
* Hungarian language file. |
* |
41,8 → 43,8 |
Anchor : "Horgony beillesztése/szerkesztése", |
InsertImageLbl : "Kép", |
InsertImage : "Kép beillesztése/módosítása", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertFlashLbl : "Flash", |
InsertFlash : "Flash beillesztése, módosítása", |
InsertTableLbl : "Táblázat", |
InsertTable : "Táblázat beillesztése/módosítása", |
InsertLineLbl : "Vonal", |
107,7 → 109,7 |
CellProperties : "Cellák tulajdonsága", |
TableProperties : "Táblázat tulajdonsága", |
ImageProperties : "Kép tulajdonsága", |
FlashProperties : "Flash Properties", //MISSING |
FlashProperties : "Flash tulajdonsága", |
AnchorProp : "Horgony(ok) tulajdonsága(i)", |
ButtonProp : "Gomb(ok) tulajdonsága(i) ", |
131,6 → 133,7 |
UnknownCommand : "Ismeretlen parancs \"%1\"", |
NotImplemented : "A parancs nincs beágyazva", |
UnknownToolbarSet : "Eszközkészlet beállítás \"%1\" nem létezik", |
NoActiveX : "A böngészÅd biztonsági beállításai limitálják a szerkesztÅ lehetÅségeit. Engedélyezned kell ezt az opciót: \"Run ActiveX controls and plug-ins\". Kitapasztalhatod a hibákat és feljegyezheted a hiányzó képességeket.", |
// Dialogs |
DlgBtnOK : "OK", |
139,8 → 142,8 |
DlgBtnBrowseServer : "Szerver tallózása", |
DlgAdvancedTag : "Haladó", |
DlgOpOther : "Egyéb", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
DlgInfoTab : "Információ", |
DlgAlertUrl : "Illeszd be a hivatkozást", |
// General Dialogs Labels |
DlgGenNotSet : "<nincs beállítva>", |
185,17 → 188,17 |
DlgImgAlignTop : "Tetejére", |
DlgImgPreview : "Elõnézet", |
DlgImgAlertUrl : "Töltse ki a kép URL-ét", |
DlgImgLinkTab : "Link", //MISSING |
DlgImgLinkTab : "Hivatkozás", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
DlgFlashTitle : "Flash tulajdonsága", |
DlgFlashChkPlay : "Automata lejátszás", |
DlgFlashChkLoop : "Folyamatosan", |
DlgFlashChkMenu : "Flash menü engedélyezése", |
DlgFlashScale : "Méretezés", |
DlgFlashScaleAll : "Mindent mutat", |
DlgFlashScaleNoBorder : "Keret nélkül", |
DlgFlashScaleFit : "Teljes kitöltés", |
// Link Dialog |
DlgLnkWindowTitle : "Hivatkozás", |
325,10 → 328,10 |
PasteAsText : "Beillesztés formázatlan szövegként", |
PasteFromWord : "Beillesztés Wordbõl", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
DlgPasteMsg2 : "Másold be az alábbi mezÅbe a következÅ billentyűk használatával (<STRONG>Ctrl+V</STRONG>) és nyomj <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Betű formázások megszüntetése", |
DlgPasteRemoveStyles : "Stíluslapok eltávolítása", |
DlgPasteCleanBox : "MezÅ tartalmának törlése", |
// Color Picker |
413,7 → 416,7 |
NumberedListProp : "Számozás tulajdonságai", |
DlgLstType : "Típus", |
DlgLstTypeCircle : "Ciklus", |
DlgLstTypeDisk : "Lemez", |
DlgLstTypeDisc : "Lemez", |
DlgLstTypeSquare : "Négyzet", |
DlgLstTypeNumbers : "Számok (1, 2, 3)", |
DlgLstTypeLCase : "Kisbetűs (a, b, c)", |
457,11 → 460,11 |
DlgDocPreview : "ElÅnézet", |
// Templates Dialog |
Templates : "Templates", //MISSING |
DlgTemplatesTitle : "Content Templates", //MISSING |
DlgTemplatesSelMsg : "Please select the template to open in the editor<br>(the actual contents will be lost):", //MISSING |
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING |
DlgTemplatesNoTpl : "(No templates defined)", //MISSING |
Templates : "Sablonok", |
DlgTemplatesTitle : "ElérhetÅ sablonok", |
DlgTemplatesSelMsg : "Válaszd ki melyik sablon nyíljon meg a szerkesztÅben<br>(a jelenlegi tartalom elveszik):", |
DlgTemplatesLoading : "Sablon lista betöltése. Kis türelmet...", |
DlgTemplatesNoTpl : "(Nincs sablon megadva)", |
// About Dialog |
DlgAboutAboutTab : "About", |
/trunk/api/fckeditor/editor/lang/no.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: no.js |
* Norwegian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Ukjent kommando \"%1\"", |
NotImplemented : "Kommando ikke ennå implimentert", |
UnknownToolbarSet : "Verktøylinjesett \"%1\" finnes ikke", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Ordnet listeegenskaper", |
DlgLstType : "Type", |
DlgLstTypeCircle : "Sirkel", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Firkant", |
DlgLstTypeNumbers : "Numre(1, 2, 3)", |
DlgLstTypeLCase : "Små bokstaver (a, b, c)", |
/trunk/api/fckeditor/editor/lang/sk.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: sk.js |
* Slovak language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Neznámy príkaz \"%1\"", |
NotImplemented : "Príkaz nie je implementovaný", |
UnknownToolbarSet : "Panel nástrojov \"%1\" neexistuje", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
413,7 → 416,7 |
NumberedListProp : "Vlastnosti Äíslovania", |
DlgLstType : "Typ", |
DlgLstTypeCircle : "Krúžok", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Štvorec", |
DlgLstTypeNumbers : "Äíslovanie (1, 2, 3)", |
DlgLstTypeLCase : "Malé písmená (a, b, c)", |
/trunk/api/fckeditor/editor/lang/vi.js |
---|
New file |
0,0 → 1,475 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: vi.js |
* Vietnamese language file. |
* |
* File Authors: |
* Phan Binh Giang (bbbgiang@yahoo.com) |
*/ |
var FCKLang = |
{ |
// Language direction : "ltr" (left to right) or "rtl" (right to left). |
Dir : "ltr", |
ToolbarCollapse : "Collapse Toolbar", |
ToolbarExpand : "Expand Toolbar", |
// Toolbar Items and Context Menu |
Save : "Ghi", |
NewPage : "Trang Mới", |
Preview : "Xem trước", |
Cut : "Cắt", |
Copy : "Sao", |
Paste : "Dán", |
PasteText : "Dán Ký tá»± ÄÆ¡n thuần", |
PasteWord : "Dán vá»i Äá»nh dạng Word", |
Print : "In", |
SelectAll : "Chọn Tất cả", |
RemoveFormat : "Xoá Äá»nh dạng", |
InsertLinkLbl : "Liên kết", |
InsertLink : "Chèn/Sá»a Liên kết", |
RemoveLink : "Xoá Liên kết", |
Anchor : "Chèn/Sá»a Neo", |
InsertImageLbl : "Hình ảnh", |
InsertImage : "Chèn/Sá»a Hình ảnh", |
InsertFlashLbl : "Flash", |
InsertFlash : "Chèn/Sá»a Flash", |
InsertTableLbl : "Bảng", |
InsertTable : "Chèn/Sá»a bảng", |
InsertLineLbl : "ÄÆ°á»ng phân cách", |
InsertLine : "Chèn ÄÆ°á»ng phân cách ngang", |
InsertSpecialCharLbl: "Ký tá»± Äặt biá»t", |
InsertSpecialChar : "Chèn Ký tá»± Äặc biá»t", |
InsertSmileyLbl : "Hình cảm xúc", |
InsertSmiley : "Chèn Hình cảm xúc", |
About : "Giới thiệu về FCKeditor", |
Bold : "Đậm", |
Italic : "Nghiêng", |
Underline : "Gạch chân", |
StrikeThrough : "Gạch ngang", |
Subscript : "Chỉ số dưới", |
Superscript : "Chá» sá» trên", |
LeftJustify : "Canh bên Trái", |
CenterJustify : "Canh Giữa", |
RightJustify : "Canh bên Phải", |
BlockJustify : "Canh Hai bên", |
DecreaseIndent : "Dá»ch sang Trái", |
IncreaseIndent : "Dịch sang Phải", |
Undo : "Phục há»i Lùi", |
Redo : "Phục hồi Tiến", |
NumberedListLbl : "Số thứ tự", |
NumberedList : "Chèn/Xoá Sá» thứ tá»±", |
BulletedListLbl : "Danh sách Bulleted", |
BulletedList : "Chèn/Xoá Danh sách Bulleted", |
ShowTableBorders : "Hiện thị Đường viền bảng", |
ShowDetails : "Hiện thị Chi tiết", |
Style : "Mẫu", |
FontFormat : "Định dạng", |
Font : "Font", |
FontSize : "Cỡ Chữ", |
TextColor : "Màu Chữ", |
BGColor : "Màu Ná»n", |
Source : "Mã nguá»n", |
Find : "Tìm", |
Replace : "Thay thế", |
SpellCheck : "Kiá»m tra Chính tả", |
UniversalKeyboard : "Bàn phím quá»c tế", |
Form : "Form", |
Checkbox : "Nốt Kiểm", |
RadioButton : "Ná»t Äài", |
TextField : "Text Field", |
Textarea : "Textarea", |
HiddenField : "Hidden Field", |
Button : "Button", |
SelectionField : "Selection Field", |
ImageButton : "Image Button", |
// Context Menu |
EditLink : "Sá»a Liên kết", |
InsertRow : "Chèn Dòng", |
DeleteRows : "Xoá Dòng", |
InsertColumn : "Chèn Cá»t", |
DeleteColumns : "Xoá Cá»t", |
InsertCell : "Chèn Ô", |
DeleteCells : "Xoá Ô", |
MergeCells : "Trá»n Ô", |
SplitCell : "Chia Ô", |
CellProperties : "Thuá»c tính Ô", |
TableProperties : "Thuá»c tính Bảng", |
ImageProperties : "Thuá»c tính Hình ảnh", |
FlashProperties : "Thuá»c tính Flash", |
AnchorProp : "Thuá»c tính Neo", |
ButtonProp : "Thuá»c tính Button", |
CheckboxProp : "Thuá»c tính Ná»t kiá»m", |
HiddenFieldProp : "Thuá»c tính Hidden Field", |
RadioButtonProp : "Thuá»c tính Ná»t Äài", |
ImageButtonProp : "Thuá»c tính Image Button", |
TextFieldProp : "Thuá»c tính Text Field", |
SelectionFieldProp : "Thuá»c tính Selection Field", |
TextareaProp : "Thuá»c tính Textarea", |
FormProp : "Thuá»c tính Form", |
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Paragraph (DIV)", |
// Alerts and Messages |
ProcessingXHTML : "Äang xá» lý XHTML. Xin hãy Äợi...", |
Done : "Äã hoàn thành", |
PasteWordConfirm : "VÄn bản bạn muá»n dán có kèm Äá»nh dạng của Word. Bạn có muá»n loại bá» Äá»nh dạng Word trÆ°á»c khi dán?", |
NotCompatiblePaste : "Lá»nh này chá» Äược há» trợ từ trình duyá»t Internet Explorer phiên bản 5.5 hoặc má»i hÆ¡n. Bạn có muá»n dán nguyên mẫu?", |
UnknownToolbarItem : "Không rõ Ná»t \"%1\"", |
UnknownCommand : "Không rõ lá»nh \"%1\"", |
NotImplemented : "Lá»nh không Äược thi hành", |
UnknownToolbarSet : "Thanh công cụ \"%1\" không tá»n tại", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "Äá»ng ý", |
DlgBtnCancel : "Bỏ qua", |
DlgBtnClose : "Äóng", |
DlgBtnBrowseServer : "Duyá»t trên máy chủ", |
DlgAdvancedTag : "Mở rộng", |
DlgOpOther : "<Khác>", |
DlgInfoTab : "Thông tin", |
DlgAlertUrl : "Hãy ÄÆ°a vào má»t URL", |
// General Dialogs Labels |
DlgGenNotSet : "<không thiết láºp>", |
DlgGenId : "Định danh", |
DlgGenLangDir : "ÄÆ°á»ng dẫn Ngôn ngữ", |
DlgGenLangDirLtr : "Trái sang Phải (LTR)", |
DlgGenLangDirRtl : "Phải sang Trái (RTL)", |
DlgGenLangCode : "Mã Ngôn ngữ", |
DlgGenAccessKey : "Phím Truy cáºp", |
DlgGenName : "Tên", |
DlgGenTabIndex : "Tab Index", |
DlgGenLongDescr : "Mô tả URL", |
DlgGenClass : "Stylesheet Classes", |
DlgGenTitle : "Advisory Title", |
DlgGenContType : "Advisory Content Type", |
DlgGenLinkCharset : "Linked Resource Charset", |
DlgGenStyle : "Mẫu", |
// Image Dialog |
DlgImgTitle : "Thuá»c tính Hình ảnh", |
DlgImgInfoTab : "Thông tin Hình ảnh", |
DlgImgBtnUpload : "Gá»i lên Máy chủ", |
DlgImgURL : "URL", |
DlgImgUpload : "Tải lên", |
DlgImgAlt : "Chú thích Hình ảnh", |
DlgImgWidth : "Rộng", |
DlgImgHeight : "Cao", |
DlgImgLockRatio : "Giữ tỷ lệ", |
DlgBtnResetSize : "Kích thÆ°á»c gá»c", |
DlgImgBorder : "Đường viền", |
DlgImgHSpace : "HSpace", |
DlgImgVSpace : "VSpace", |
DlgImgAlign : "Vá» trí", |
DlgImgAlignLeft : "Trái", |
DlgImgAlignAbsBottom: "Abs Bottom", |
DlgImgAlignAbsMiddle: "Abs Middle", |
DlgImgAlignBaseline : "Baseline", |
DlgImgAlignBottom : "Dưới", |
DlgImgAlignMiddle : "Giữa", |
DlgImgAlignRight : "Phải", |
DlgImgAlignTextTop : "Text Top", |
DlgImgAlignTop : "Trên", |
DlgImgPreview : "Xem trước", |
DlgImgAlertUrl : "Hãy ÄÆ°a vào URL của hình ảnh", |
DlgImgLinkTab : "Liên kết", |
// Flash Dialog |
DlgFlashTitle : "Thuá»c tính Flash", |
DlgFlashChkPlay : "Tự động Chạy", |
DlgFlashChkLoop : "Lặp", |
DlgFlashChkMenu : "Kích hoạt Menu Flash ", |
DlgFlashScale : "Scale", |
DlgFlashScaleAll : "Hiển thị tất cả", |
DlgFlashScaleNoBorder : "Không ÄÆ°á»ng viá»n", |
DlgFlashScaleFit : "Exact Fit", |
// Link Dialog |
DlgLnkWindowTitle : "Liên kết", |
DlgLnkInfoTab : "Thông tin Liên kết", |
DlgLnkTargetTab : "Hướng tới", |
DlgLnkType : "Kiá»u Liên kết", |
DlgLnkTypeURL : "URL", |
DlgLnkTypeAnchor : "Neo trong trang này", |
DlgLnkTypeEMail : "E-Mail", |
DlgLnkProto : "Giao thức", |
DlgLnkProtoOther : "<khác>", |
DlgLnkURL : "URL", |
DlgLnkAnchorSel : "Chọn một Neo", |
DlgLnkAnchorByName : "Theo Tên Neo", |
DlgLnkAnchorById : "Theo Định danh Element", |
DlgLnkNoAnchors : "<Không có Neo nào trong tài liá»u>", |
DlgLnkEMail : "E-Mail", |
DlgLnkEMailSubject : "Tá»±a Äá» Thông Äiá»p", |
DlgLnkEMailBody : "Ná»i dung Thông Äiá»p", |
DlgLnkUpload : "Tải lên", |
DlgLnkBtnUpload : "Gá»i lên Máy chủ", |
DlgLnkTarget : "Hướng tới", |
DlgLnkTargetFrame : "<frame>", |
DlgLnkTargetPopup : "<cửa sổ popup>", |
DlgLnkTargetBlank : "Cửa sổ mới (_blank)", |
DlgLnkTargetParent : "Cửa sổ cha (_parent)", |
DlgLnkTargetSelf : "Cùng cá»a sá» (_self)", |
DlgLnkTargetTop : "Cá»a sá» trên cùng(_top)", |
DlgLnkTargetFrameName : "Tên Frame hÆ°á»ng tá»i", |
DlgLnkPopWinName : "Tên Cá»a sá» Popup", |
DlgLnkPopWinFeat : "Cửa sổ Popup Đặc trưng", |
DlgLnkPopResize : "Kích thÆ°á»c thay Äá»i", |
DlgLnkPopLocation : "Location Bar", //MISSING |
DlgLnkPopMenu : "Thanh Menu", |
DlgLnkPopScroll : "Thanh cuộn", |
DlgLnkPopStatus : "Thanh trạng thái", |
DlgLnkPopToolbar : "Thanh công cụ", |
DlgLnkPopFullScrn : "Toàn màn hình (IE)", |
DlgLnkPopDependent : "Dependent (Netscape)", |
DlgLnkPopWidth : "Rộng", |
DlgLnkPopHeight : "Cao", |
DlgLnkPopLeft : "Vá» trí Trái", |
DlgLnkPopTop : "Vá» trí Trên", |
DlnLnkMsgNoUrl : "Hãy ÄÆ°a vào Liên kết URL", |
DlnLnkMsgNoEMail : "Hãy ÄÆ°a vào Äá»a chá» e-mail", |
DlnLnkMsgNoAnchor : "Hãy chá»n má»t Neo", |
// Color Dialog |
DlgColorTitle : "Chá»n màu", |
DlgColorBtnClear : "Xoá", |
DlgColorHighlight : "Äiá»m sáng", |
DlgColorSelected : "Äã chá»n", |
// Smiley Dialog |
DlgSmileyTitle : "Chèn má»t hình cảm xúc", |
// Special Character Dialog |
DlgSpecialCharTitle : "Chá»n ký tá»± Äặc biá»t", |
// Table Dialog |
DlgTableTitle : "Thuá»c tính bảng", |
DlgTableRows : "Dòng", |
DlgTableColumns : "Cột", |
DlgTableBorder : "Cỡ Đường viền", |
DlgTableAlign : "Alignment", |
DlgTableAlignNotSet : "<Không thiết láºp>", |
DlgTableAlignLeft : "Trái", |
DlgTableAlignCenter : "Giữa", |
DlgTableAlignRight : "Phải", |
DlgTableWidth : "Rộng", |
DlgTableWidthPx : "điểm", |
DlgTableWidthPc : "%", |
DlgTableHeight : "Cao", |
DlgTableCellSpace : "Khoảng cách Ô", |
DlgTableCellPad : "Äá»m Ô", |
DlgTableCaption : "Đầu đề", |
// Table Cell Dialog |
DlgCellTitle : "Thuá»c tính Ô", |
DlgCellWidth : "Rộng", |
DlgCellWidthPx : "điểm", |
DlgCellWidthPc : "%", |
DlgCellHeight : "Cao", |
DlgCellWordWrap : "Dàn từ", |
DlgCellWordWrapNotSet : "<Không thiết láºp>", |
DlgCellWordWrapYes : "Äá»ng ý", |
DlgCellWordWrapNo : "Không", |
DlgCellHorAlign : "Sắp xếp Ngang", |
DlgCellHorAlignNotSet : "<Không thiết láºp>", |
DlgCellHorAlignLeft : "Trái", |
DlgCellHorAlignCenter : "Giữa", |
DlgCellHorAlignRight: "Phải", |
DlgCellVerAlign : "Sắp xếp Dọc", |
DlgCellVerAlignNotSet : "<Không thiết láºp>", |
DlgCellVerAlignTop : "Trên", |
DlgCellVerAlignMiddle : "Giữa", |
DlgCellVerAlignBottom : "Dưới", |
DlgCellVerAlignBaseline : "Baseline", |
DlgCellRowSpan : "Rows Span", |
DlgCellCollSpan : "Columns Span", |
DlgCellBackColor : "Màu ná»n", |
DlgCellBorderColor : "Màu viá»n", |
DlgCellBtnSelect : "Chọn...", |
// Find Dialog |
DlgFindTitle : "Tìm", |
DlgFindFindBtn : "Tìm", |
DlgFindNotFoundMsg : "Chuá»i cần tìm không thấy.", |
// Replace Dialog |
DlgReplaceTitle : "Thay thế", |
DlgReplaceFindLbl : "Tìm gì:", |
DlgReplaceReplaceLbl : "Thay bằng:", |
DlgReplaceCaseChk : "Äúng chứ HOA/thÆ°á»ng", |
DlgReplaceReplaceBtn : "Thay thế", |
DlgReplaceReplAllBtn : "Thay thế Tất cả", |
DlgReplaceWordChk : "Äúng từ", |
// Paste Operations / Dialog |
PasteErrorPaste : "An ninh trình duyá»t của bạn Äược thiết láºp không cho phép trình soạn thảo tá»± Äá»ng thá»±c thi lá»nh dán. Hãy sá» dụng bàn phím cho lá»nh này (Ctrl+V).", |
PasteErrorCut : "An ninh trình duyá»t của bạn Äược thiết láºp không cho phép trình soạn thảo tá»± Äá»ng thá»±c thi lá»nh cắt. Hãy sá» dụng bàn phím cho lá»nh này (Ctrl+X).", |
PasteErrorCopy : "An ninh trình duyá»t của bạn Äược thiết láºp không cho phép trình soạn thảo tá»± Äá»ng thá»±c thi lá»nh sao chép. Hãy sá» dụng bàn phím cho lá»nh này (Ctrl+C).", |
PasteAsText : "Dán ký tá»± ÄÆ¡n thuần", |
PasteFromWord : "Dán vá»i Äá»nh dạng Word", |
DlgPasteMsg2 : "Hãy dán vào trong khung bên dÆ°á»i, sá» dụng tá» hợp phím (<STRONG>Ctrl+V</STRONG>) và nhấn vào ná»t <STRONG>Äá»ng ý</STRONG>.", |
DlgPasteIgnoreFont : "Chấp nháºn các Äá»nh dạng Font", |
DlgPasteRemoveStyles : "Xoá tất cả các Äá»nh dạng Styles", |
DlgPasteCleanBox : "Xoá sạch", |
// Color Picker |
ColorAutomatic : "Tự động", |
ColorMoreColors : "Màu khác...", |
// Document Properties |
DocProps : "Thuá»c tính tài liá»u", |
// Anchor Dialog |
DlgAnchorTitle : "Thuá»c tính Neo", |
DlgAnchorName : "Tên Neo", |
DlgAnchorErrorName : "Hãy ÄÆ°a vào tên Neo", |
// Speller Pages Dialog |
DlgSpellNotInDic : "Không trong từ Äiá»n", |
DlgSpellChangeTo : "Change to", |
DlgSpellBtnIgnore : "Bỏ qua", |
DlgSpellBtnIgnoreAll : "Bỏ qua Tất cả", |
DlgSpellBtnReplace : "Thay thế", |
DlgSpellBtnReplaceAll : "Thay thế Tất cả", |
DlgSpellBtnUndo : "Phục hồi lại", |
DlgSpellNoSuggestions : "- Không Äá» xuất -", |
DlgSpellProgress : "Äang tiến hành kiá»m tra chính tả...", |
DlgSpellNoMispell : "Hoàn tất kiá»m tra chính tả: Không có lá»i chính tả", |
DlgSpellNoChanges : "Hoàn tất kiá»m tra chính tả: Không từ nào Äược thay Äá»i", |
DlgSpellOneChange : "Hoàn tất kiá»m tra chính tả: Má»t từ Äã Äược thay Äá»i", |
DlgSpellManyChanges : "Hoàn tất kiá»m tra chính tả: %1 từ Äã Äược thay Äá»i", |
IeSpellDownload : "Chức nÄng kiá»m tra chính tả chÆ°a Äược cài Äặt. Bạn có tải vá» ngay bây giá»?", |
// Button Dialog |
DlgButtonText : "Text (Value)", |
DlgButtonType : "Kiểu", |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Tên", |
DlgCheckboxValue : "Giá trá»", |
DlgCheckboxSelected : "Äã chá»n", |
// Form Dialog |
DlgFormName : "Tên", |
DlgFormAction : "Action", |
DlgFormMethod : "Phương thức", |
// Select Field Dialog |
DlgSelectName : "Tên", |
DlgSelectValue : "Giá trá»", |
DlgSelectSize : "Kích cỡ", |
DlgSelectLines : "dòng", |
DlgSelectChkMulti : "Chấp nhận chọn nhiều", |
DlgSelectOpAvail : "Available Options", |
DlgSelectOpText : "Text", |
DlgSelectOpValue : "Giá trá»", |
DlgSelectBtnAdd : "Thêm", |
DlgSelectBtnModify : "Thay đổi", |
DlgSelectBtnUp : "Lên", |
DlgSelectBtnDown : "Xuống", |
DlgSelectBtnSetValue : "Giá trá» Äược chá»n", |
DlgSelectBtnDelete : "Xoá", |
// Textarea Dialog |
DlgTextareaName : "Tên", |
DlgTextareaCols : "Cột", |
DlgTextareaRows : "Dòng", |
// Text Field Dialog |
DlgTextName : "Tên", |
DlgTextValue : "Giá trá»", |
DlgTextCharWidth : "Rộng", |
DlgTextMaxChars : "Sá» Ký tá»± tá»i Äa", |
DlgTextType : "Kiểu", |
DlgTextTypeText : "Ký tá»±", |
DlgTextTypePass : "Mật khẩu", |
// Hidden Field Dialog |
DlgHiddenName : "Tên", |
DlgHiddenValue : "Giá trá»", |
// Bulleted List Dialog |
BulletedListProp : "Thuá»c tính Danh sách Bulleted", |
NumberedListProp : "Thuá»c tính Danh sách Sá»", |
DlgLstType : "Kiểu", |
DlgLstTypeCircle : "Tròn", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Vuông", |
DlgLstTypeNumbers : "Số (1, 2, 3)", |
DlgLstTypeLCase : "Chữ cái thÆ°á»ng (a, b, c)", |
DlgLstTypeUCase : "Chữ cái hoa (A, B, C)", |
DlgLstTypeSRoman : "Số LaMa thường (i, ii, iii)", |
DlgLstTypeLRoman : "Số LaMa hoa (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "Toàn thá»", |
DlgDocBackTab : "Nền", |
DlgDocColorsTab : "Màu sắc và Biên", |
DlgDocMetaTab : "Meta Data", |
DlgDocPageTitle : "Tiêu Äá» Trang", |
DlgDocLangDir : "ÄÆ°á»ng dẫn Ngôn Ngữ", |
DlgDocLangDirLTR : "Trái sang Phải (LTR)", |
DlgDocLangDirRTL : "Phải sang Trái (RTL)", |
DlgDocLangCode : "Mã Ngôn ngữ", |
DlgDocCharSet : "Character Set Encoding", |
DlgDocCharSetOther : "Other Character Set Encoding", |
DlgDocDocType : "Kiá»u Äá» mục Tài liá»u", |
DlgDocDocTypeOther : "Kiá»u Äá» mục Tài liá»u khác", |
DlgDocIncXHTML : "Bao gồm cả định nghĩa XHTML", |
DlgDocBgColor : "Màu ná»n", |
DlgDocBgImage : "Background Image URL", |
DlgDocBgNoScroll : "Không cuá»n ná»n", |
DlgDocCText : "Text", |
DlgDocCLink : "Liên kết", |
DlgDocCVisited : "Liên kết Äã viếng thÄm", |
DlgDocCActive : "Liên kết Hoạt Äá»ng", |
DlgDocMargins : "Biên của Trang", |
DlgDocMaTop : "Trên", |
DlgDocMaLeft : "Trái", |
DlgDocMaRight : "Phải", |
DlgDocMaBottom : "Dưới", |
DlgDocMeIndex : "Document Indexing Keywords (comma separated)", |
DlgDocMeDescr : "Mô tả tài liá»u", |
DlgDocMeAuthor : "Tác giả", |
DlgDocMeCopy : "Bản quyền", |
DlgDocPreview : "Xem trước", |
// Templates Dialog |
Templates : "Mẫu dựng sẵn", |
DlgTemplatesTitle : "Nội dung Mẫu dựng sẵn", |
DlgTemplatesSelMsg : "Please select the template to open in the editor<br>(the actual contents will be lost):", |
DlgTemplatesLoading : "Äang nạp Danh sách Mẫu dá»±ng sẵn. Xin hãy chá»...", |
DlgTemplatesNoTpl : "(Không có Mẫu dá»±ng sẵn nào Äược Äá»nh nghÄ©a)", |
// About Dialog |
DlgAboutAboutTab : "Giới thiệu", |
DlgAboutBrowserInfoTab : "Thông tin trình duyá»t", |
DlgAboutVersion : "phiên bản", |
DlgAboutLicense : "Licensed under the terms of the GNU Lesser General Public License", |
DlgAboutInfo : "Thông tin thêm hãy Äến" |
} |
/trunk/api/fckeditor/editor/lang/ms.js |
---|
New file |
0,0 → 1,475 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ms.js |
* Malay language file. |
* |
* File Authors: |
* Fairul Izham Mohd Mokhlas (eg86@hotmail.com) |
*/ |
var FCKLang = |
{ |
// Language direction : "ltr" (left to right) or "rtl" (right to left). |
Dir : "ltr", |
ToolbarCollapse : "Collapse Toolbar", |
ToolbarExpand : "Expand Toolbar", |
// Toolbar Items and Context Menu |
Save : "Simpan", |
NewPage : "Helaian Baru", |
Preview : "Prebiu", |
Cut : "Potong", |
Copy : "Salin", |
Paste : "Tampal", |
PasteText : "Tampal sebagai Text Biasa", |
PasteWord : "Tampal dari Word", |
Print : "Cetak", |
SelectAll : "Pilih Semua", |
RemoveFormat : "Buang Format", |
InsertLinkLbl : "Sambungan", |
InsertLink : "Masukkan/Sunting Sambungan", |
RemoveLink : "Buang Sambungan", |
Anchor : "Masukkan/Sunting Pautan", |
InsertImageLbl : "Gambar", |
InsertImage : "Masukkan/Sunting Gambar", |
InsertFlashLbl : "Flash", //MISSING |
InsertFlash : "Insert/Edit Flash", //MISSING |
InsertTableLbl : "Jadual", |
InsertTable : "Masukkan/Sunting Jadual", |
InsertLineLbl : "Garisan", |
InsertLine : "Masukkan Garisan Membujur", |
InsertSpecialCharLbl: "Huruf Istimewa", |
InsertSpecialChar : "Masukkan Huruf Istimewa", |
InsertSmileyLbl : "Smiley", |
InsertSmiley : "Masukkan Smiley", |
About : "Tentang FCKeditor", |
Bold : "Bold", |
Italic : "Italic", |
Underline : "Underline", |
StrikeThrough : "Strike Through", |
Subscript : "Subscript", |
Superscript : "Superscript", |
LeftJustify : "Jajaran Kiri", |
CenterJustify : "Jajaran Tengah", |
RightJustify : "Jajaran Kanan", |
BlockJustify : "Jajaran Blok", |
DecreaseIndent : "Kurangkan Inden", |
IncreaseIndent : "Tambahkan Inden", |
Undo : "Batalkan", |
Redo : "Ulangkan", |
NumberedListLbl : "Senarai bernombor", |
NumberedList : "Masukkan/Sunting Senarai bernombor", |
BulletedListLbl : "Senarai tidak bernombor", |
BulletedList : "Masukkan/Sunting Senarai tidak bernombor", |
ShowTableBorders : "Tunjukkan Border Jadual", |
ShowDetails : "Tunjukkan Butiran", |
Style : "Stail", |
FontFormat : "Format", |
Font : "Font", |
FontSize : "Saiz", |
TextColor : "Warna Text", |
BGColor : "Warna Latarbelakang", |
Source : "Sumber", |
Find : "Cari", |
Replace : "Ganti", |
SpellCheck : "Semak Ejaan", |
UniversalKeyboard : "Papan Kekunci Universal", |
Form : "Borang", |
Checkbox : "Checkbox", |
RadioButton : "Butang Radio", |
TextField : "Text Field", |
Textarea : "Textarea", |
HiddenField : "Field Tersembunyi", |
Button : "Butang", |
SelectionField : "Field Pilihan", |
ImageButton : "Butang Bergambar", |
// Context Menu |
EditLink : "Sunting Sambungan", |
InsertRow : "Masukkan Baris", |
DeleteRows : "Buangkan Baris", |
InsertColumn : "Masukkan Lajur", |
DeleteColumns : "Buangkan Lajur", |
InsertCell : "Masukkan Sel", |
DeleteCells : "Buangkan Sel-sel", |
MergeCells : "Cantumkan Sel-sel", |
SplitCell : "Bahagikan Sel", |
CellProperties : "Ciri-ciri Sel", |
TableProperties : "Ciri-ciri Jadual", |
ImageProperties : "Ciri-ciri Gambar", |
FlashProperties : "Flash Properties", //MISSING |
AnchorProp : "Ciri-ciri Pautan", |
ButtonProp : "Ciri-ciri Butang", |
CheckboxProp : "Ciri-ciri Checkbox", |
HiddenFieldProp : "Ciri-ciri Field Tersembunyi", |
RadioButtonProp : "Ciri-ciri Butang Radio", |
ImageButtonProp : "Ciri-ciri Butang Bergambar", |
TextFieldProp : "Ciri-ciri Text Field", |
SelectionFieldProp : "Ciri-ciri Selection Field", |
TextareaProp : "Ciri-ciri Textarea", |
FormProp : "Ciri-ciri Borang", |
FontFormats : "Normal;Telah Diformat;Alamat;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Perenggan (DIV)", |
// Alerts and Messages |
ProcessingXHTML : "Memproses XHTML. Sila tunggu...", |
Done : "Siap", |
PasteWordConfirm : "Text yang anda hendak tampal adalah berasal dari Word. Adakah anda mahu membuang semua format Word sebelum tampal ke dalam text?", |
NotCompatiblePaste : "Arahan ini bole dilakukan jika anda mempuunyai Internet Explorer version 5.5 atau yang lebih tinggi. Adakah anda hendak tampal text tanpa membuang format Word?", |
UnknownToolbarItem : "Toolbar item tidak diketahui\"%1\"", |
UnknownCommand : "Arahan tidak diketahui \"%1\"", |
NotImplemented : "Arahan tidak terdapat didalam sistem", |
UnknownToolbarSet : "Set toolbar \"%1\" tidak wujud", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
DlgBtnCancel : "Batal", |
DlgBtnClose : "Tutup", |
DlgBtnBrowseServer : "Browse Server", |
DlgAdvancedTag : "Advanced", |
DlgOpOther : "<Lain-lain>", |
DlgInfoTab : "Info", //MISSING |
DlgAlertUrl : "Please insert the URL", //MISSING |
// General Dialogs Labels |
DlgGenNotSet : "<tidak di set>", |
DlgGenId : "Id", |
DlgGenLangDir : "Arah Tulisan", |
DlgGenLangDirLtr : "Kiri ke Kanan (LTR)", |
DlgGenLangDirRtl : "Kanan ke Kiri (RTL)", |
DlgGenLangCode : "Kod Bahasa", |
DlgGenAccessKey : "Kunci Akses", |
DlgGenName : "Nama", |
DlgGenTabIndex : "Indeks Tab ", |
DlgGenLongDescr : "Butiran Panjang URL", |
DlgGenClass : "Kelas-kelas Stylesheet", |
DlgGenTitle : "Tajuk Makluman", |
DlgGenContType : "Jenis Kandungan Makluman", |
DlgGenLinkCharset : "Linked Resource Charset", |
DlgGenStyle : "Stail", |
// Image Dialog |
DlgImgTitle : "Ciri-ciri Imej", |
DlgImgInfoTab : "Info Imej", |
DlgImgBtnUpload : "Hantar ke Server", |
DlgImgURL : "URL", |
DlgImgUpload : "Muat Naik", |
DlgImgAlt : "Text Alternatif", |
DlgImgWidth : "Lebar", |
DlgImgHeight : "Tinggi", |
DlgImgLockRatio : "Tetapkan Nisbah", |
DlgBtnResetSize : "Saiz Set Semula", |
DlgImgBorder : "Border", |
DlgImgHSpace : "Ruang Melintang", |
DlgImgVSpace : "Ruang Menegak", |
DlgImgAlign : "Jajaran", |
DlgImgAlignLeft : "Kiri", |
DlgImgAlignAbsBottom: "Bawah Mutlak", |
DlgImgAlignAbsMiddle: "Pertengahan Mutlak", |
DlgImgAlignBaseline : "Garis Dasar", |
DlgImgAlignBottom : "Bawah", |
DlgImgAlignMiddle : "Pertengahan", |
DlgImgAlignRight : "Kanan", |
DlgImgAlignTextTop : "Atas Text", |
DlgImgAlignTop : "Atas", |
DlgImgPreview : "Prebiu", |
DlgImgAlertUrl : "Sila taip URL untuk fail gambar", |
DlgImgLinkTab : "Sambungan", |
// Flash Dialog |
DlgFlashTitle : "Flash Properties", //MISSING |
DlgFlashChkPlay : "Auto Play", //MISSING |
DlgFlashChkLoop : "Loop", //MISSING |
DlgFlashChkMenu : "Enable Flash Menu", //MISSING |
DlgFlashScale : "Scale", //MISSING |
DlgFlashScaleAll : "Show all", //MISSING |
DlgFlashScaleNoBorder : "No Border", //MISSING |
DlgFlashScaleFit : "Exact Fit", //MISSING |
// Link Dialog |
DlgLnkWindowTitle : "Sambungan", |
DlgLnkInfoTab : "Butiran Sambungan", |
DlgLnkTargetTab : "Sasaran", |
DlgLnkType : "Jenis Sambungan", |
DlgLnkTypeURL : "URL", |
DlgLnkTypeAnchor : "Pautan dalam muka surat ini", |
DlgLnkTypeEMail : "E-Mail", |
DlgLnkProto : "Protokol", |
DlgLnkProtoOther : "<lain-lain>", |
DlgLnkURL : "URL", |
DlgLnkAnchorSel : "Sila pilih pautan", |
DlgLnkAnchorByName : "dengan menggunakan nama pautan", |
DlgLnkAnchorById : "dengan menggunakan ID elemen", |
DlgLnkNoAnchors : "<Tiada pautan terdapat dalam dokumen ini>", |
DlgLnkEMail : "Alamat E-Mail", |
DlgLnkEMailSubject : "Subjek Mesej", |
DlgLnkEMailBody : "Isi Kandungan Mesej", |
DlgLnkUpload : "Muat Naik", |
DlgLnkBtnUpload : "Hantar ke Server", |
DlgLnkTarget : "Sasaran", |
DlgLnkTargetFrame : "<bingkai>", |
DlgLnkTargetPopup : "<tetingkap popup>", |
DlgLnkTargetBlank : "Tetingkap Baru (_blank)", |
DlgLnkTargetParent : "Tetingkap Parent (_parent)", |
DlgLnkTargetSelf : "Tetingkap yang Sama (_self)", |
DlgLnkTargetTop : "Tetingkap yang paling atas (_top)", |
DlgLnkTargetFrameName : "Nama Bingkai Sasaran", |
DlgLnkPopWinName : "Nama Tetingkap Popup", |
DlgLnkPopWinFeat : "Ciri Tetingkap Popup", |
DlgLnkPopResize : "Saiz bolehubah", |
DlgLnkPopLocation : "Bar Lokasi", |
DlgLnkPopMenu : "Bar Menu", |
DlgLnkPopScroll : "Bar-bar skrol", |
DlgLnkPopStatus : "Bar Status", |
DlgLnkPopToolbar : "Toolbar", |
DlgLnkPopFullScrn : "Skrin Penuh (IE)", |
DlgLnkPopDependent : "Bergantungan (Netscape)", |
DlgLnkPopWidth : "Lebar", |
DlgLnkPopHeight : "Tinggi", |
DlgLnkPopLeft : "Posisi Kiri", |
DlgLnkPopTop : "Posisi Atas", |
DlnLnkMsgNoUrl : "Sila taip sambungan URL", |
DlnLnkMsgNoEMail : "Sila taip alamat e-mail", |
DlnLnkMsgNoAnchor : "Sila pilih pautan berkenaaan", |
// Color Dialog |
DlgColorTitle : "Pilihan Warna", |
DlgColorBtnClear : "Nyahwarna", |
DlgColorHighlight : "Terang", |
DlgColorSelected : "Dipilih", |
// Smiley Dialog |
DlgSmileyTitle : "Masukkan Smiley", |
// Special Character Dialog |
DlgSpecialCharTitle : "Sila pilih huruf istimewa", |
// Table Dialog |
DlgTableTitle : "Ciri-ciri Jadual", |
DlgTableRows : "Barisan", |
DlgTableColumns : "Jaluran", |
DlgTableBorder : "Saiz Border", |
DlgTableAlign : "Penjajaran", |
DlgTableAlignNotSet : "<Tidak diset>", |
DlgTableAlignLeft : "Kiri", |
DlgTableAlignCenter : "Tengah", |
DlgTableAlignRight : "Kanan", |
DlgTableWidth : "Lebar", |
DlgTableWidthPx : "piksel-piksel", |
DlgTableWidthPc : "peratus", |
DlgTableHeight : "Tinggi", |
DlgTableCellSpace : "Ruangan Antara Sel", |
DlgTableCellPad : "Tambahan Ruang Sel", |
DlgTableCaption : "Keterangan", |
// Table Cell Dialog |
DlgCellTitle : "Ciri-ciri Sel", |
DlgCellWidth : "Lebar", |
DlgCellWidthPx : "piksel-piksel", |
DlgCellWidthPc : "peratus", |
DlgCellHeight : "Tinggi", |
DlgCellWordWrap : "Mengulung Perkataan", |
DlgCellWordWrapNotSet : "<Tidak diset>", |
DlgCellWordWrapYes : "Ya", |
DlgCellWordWrapNo : "Tidak", |
DlgCellHorAlign : "Jajaran Membujur", |
DlgCellHorAlignNotSet : "<Tidak diset>", |
DlgCellHorAlignLeft : "Kiri", |
DlgCellHorAlignCenter : "Tengah", |
DlgCellHorAlignRight: "Kanan", |
DlgCellVerAlign : "Jajaran Menegak", |
DlgCellVerAlignNotSet : "<Tidak diset>", |
DlgCellVerAlignTop : "Atas", |
DlgCellVerAlignMiddle : "Tengah", |
DlgCellVerAlignBottom : "Bawah", |
DlgCellVerAlignBaseline : "Garis Dasar", |
DlgCellRowSpan : "Penggunaan Baris", |
DlgCellCollSpan : "Penggunaan Lajur", |
DlgCellBackColor : "Warna Latarbelakang", |
DlgCellBorderColor : "Warna Border", |
DlgCellBtnSelect : "Pilih...", |
// Find Dialog |
DlgFindTitle : "Carian", |
DlgFindFindBtn : "Cari", |
DlgFindNotFoundMsg : "Text yang dicari tidak dijumpai.", |
// Replace Dialog |
DlgReplaceTitle : "Gantian", |
DlgReplaceFindLbl : "Perkataan yang dicari:", |
DlgReplaceReplaceLbl : "Diganti dengan:", |
DlgReplaceCaseChk : "Padanan case huruf", |
DlgReplaceReplaceBtn : "Ganti", |
DlgReplaceReplAllBtn : "Ganti semua", |
DlgReplaceWordChk : "Padana Keseluruhan perkataan", |
// Paste Operations / Dialog |
PasteErrorPaste : "Keselamatan perisian browser anda tidak membenarkan operasi tampalan text/imej. Sila gunakan papan kekunci (Ctrl+V).", |
PasteErrorCut : "Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl+X).", |
PasteErrorCopy : "Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl+C).", |
PasteAsText : "Tampal sebagai text biasa", |
PasteFromWord : "Tampal dari perisian \"Word\"", |
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", //MISSING |
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING |
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING |
DlgPasteCleanBox : "Clean Up Box", //MISSING |
// Color Picker |
ColorAutomatic : "Otomatik", |
ColorMoreColors : "Warna lain-lain...", |
// Document Properties |
DocProps : "Ciri-ciri dokumen", |
// Anchor Dialog |
DlgAnchorTitle : "Ciri-ciri Pautan", |
DlgAnchorName : "Nama Pautan", |
DlgAnchorErrorName : "Sila taip nama pautan", |
// Speller Pages Dialog |
DlgSpellNotInDic : "Tidak terdapat didalam kamus", |
DlgSpellChangeTo : "Tukarkan kepada", |
DlgSpellBtnIgnore : "Biar", |
DlgSpellBtnIgnoreAll : "Biarkan semua", |
DlgSpellBtnReplace : "Ganti", |
DlgSpellBtnReplaceAll : "Gantikan Semua", |
DlgSpellBtnUndo : "Batalkan", |
DlgSpellNoSuggestions : "- Tiada cadangan -", |
DlgSpellProgress : "Pemeriksaan ejaan sedang diproses...", |
DlgSpellNoMispell : "Pemeriksaan ejaan siap: Tiada salah ejaan", |
DlgSpellNoChanges : "Pemeriksaan ejaan siap: Tiada perkataan diubah", |
DlgSpellOneChange : "Pemeriksaan ejaan siap: Satu perkataan telah diubah", |
DlgSpellManyChanges : "Pemeriksaan ejaan siap: %1 perkataan diubah", |
IeSpellDownload : "Pemeriksa ejaan tidak dipasang. Adakah anda mahu muat turun sekarang?", |
// Button Dialog |
DlgButtonText : "Teks (Nilai)", |
DlgButtonType : "Jenis", |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Nama", |
DlgCheckboxValue : "Nilai", |
DlgCheckboxSelected : "Dipilih", |
// Form Dialog |
DlgFormName : "Nama", |
DlgFormAction : "Tindakan borang", |
DlgFormMethod : "Cara borang dihantar", |
// Select Field Dialog |
DlgSelectName : "Nama", |
DlgSelectValue : "Nilai", |
DlgSelectSize : "Saiz", |
DlgSelectLines : "garisan", |
DlgSelectChkMulti : "Benarkan pilihan pelbagai", |
DlgSelectOpAvail : "Pilihan sediada", |
DlgSelectOpText : "Teks", |
DlgSelectOpValue : "Nilai", |
DlgSelectBtnAdd : "Tambah Pilihan", |
DlgSelectBtnModify : "Ubah Pilihan", |
DlgSelectBtnUp : "Naik ke atas", |
DlgSelectBtnDown : "Turun ke bawah", |
DlgSelectBtnSetValue : "Set sebagai nilai terpilih", |
DlgSelectBtnDelete : "Padam", |
// Textarea Dialog |
DlgTextareaName : "Nama", |
DlgTextareaCols : "Lajur", |
DlgTextareaRows : "Baris", |
// Text Field Dialog |
DlgTextName : "Nama", |
DlgTextValue : "Nilai", |
DlgTextCharWidth : "Lebar isian", |
DlgTextMaxChars : "Isian Maksimum", |
DlgTextType : "Jenis", |
DlgTextTypeText : "Teks", |
DlgTextTypePass : "Kata Laluan", |
// Hidden Field Dialog |
DlgHiddenName : "Nama", |
DlgHiddenValue : "Nilai", |
// Bulleted List Dialog |
BulletedListProp : "Ciri-ciri senarai berpeluru", |
NumberedListProp : "Ciri-ciri senarai bernombor", |
DlgLstType : "Jenis", |
DlgLstTypeCircle : "Circle", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Square", |
DlgLstTypeNumbers : "Nombor-nombor (1, 2, 3)", |
DlgLstTypeLCase : "Huruf-huruf kecil (a, b, c)", |
DlgLstTypeUCase : "Huruf-huruf besar (A, B, C)", |
DlgLstTypeSRoman : "Nombor Roman Kecil (i, ii, iii)", |
DlgLstTypeLRoman : "Nombor Roman Besar (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "Umum", |
DlgDocBackTab : "Latarbelakang", |
DlgDocColorsTab : "Warna dan margin", |
DlgDocMetaTab : "Data Meta", |
DlgDocPageTitle : "Tajuk Muka Surat", |
DlgDocLangDir : "Arah Tulisan", |
DlgDocLangDirLTR : "Kiri ke Kanan (LTR)", |
DlgDocLangDirRTL : "Kanan ke Kiri (RTL)", |
DlgDocLangCode : "Kod Bahasa", |
DlgDocCharSet : "Enkod Set Huruf", |
DlgDocCharSetOther : "Enkod Set Huruf yang Lain", |
DlgDocDocType : "Jenis Kepala Dokumen", |
DlgDocDocTypeOther : "Jenis Kepala Dokumen yang Lain", |
DlgDocIncXHTML : "Masukkan pemula kod XHTML", |
DlgDocBgColor : "Warna Latarbelakang", |
DlgDocBgImage : "URL Gambar Latarbelakang", |
DlgDocBgNoScroll : "Imej Latarbelakang tanpa Skrol", |
DlgDocCText : "Teks", |
DlgDocCLink : "Sambungan", |
DlgDocCVisited : "Sambungan telah Dilawati", |
DlgDocCActive : "Sambungan Aktif", |
DlgDocMargins : "Margin Muka Surat", |
DlgDocMaTop : "Atas", |
DlgDocMaLeft : "Kiri", |
DlgDocMaRight : "Kanan", |
DlgDocMaBottom : "Bawah", |
DlgDocMeIndex : "Kata Kunci Indeks Dokumen (dipisahkan oleh koma)", |
DlgDocMeDescr : "Keterangan Dokumen", |
DlgDocMeAuthor : "Penulis", |
DlgDocMeCopy : "Hakcipta", |
DlgDocPreview : "Prebiu", |
// Templates Dialog |
Templates : "Templat", |
DlgTemplatesTitle : "Templat Kandungan", |
DlgTemplatesSelMsg : "Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):", |
DlgTemplatesLoading : "Senarai Templat sedang diproses. Sila Tunggu...", |
DlgTemplatesNoTpl : "(Tiada Templat Disimpan)", |
// About Dialog |
DlgAboutAboutTab : "Tentang", |
DlgAboutBrowserInfoTab : "Maklumat Perisian Browser", |
DlgAboutVersion : "versi", |
DlgAboutLicense : "Perlesenan dibawah terma GNU Lesser General Public License", |
DlgAboutInfo : "Untuk maklumat lanjut sila pergi ke" |
} |
/trunk/api/fckeditor/editor/lang/uk.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: uk.js |
* Ukrainian language file. |
* |
131,6 → 133,7 |
UnknownCommand : "Невідоме ім'я команди \"%1\"", |
NotImplemented : "Команда не реалізована", |
UnknownToolbarSet : "Панель інструментів \"%1\" не існує", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "ОК", |
413,7 → 416,7 |
NumberedListProp : "Властивості нумерованного списка", |
DlgLstType : "Тип", |
DlgLstTypeCircle : "Коло", |
DlgLstTypeDisk : "Диск", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Квадрат", |
DlgLstTypeNumbers : "Номери (1, 2, 3)", |
DlgLstTypeLCase : "Літери нижнього регістра(a, b, c)", |
/trunk/api/fckeditor/editor/lang/ro.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: ro.js |
* Romanian language file. |
* |
132,6 → 134,7 |
UnknownCommand : "Comanda \"%1\" necunoscută", |
NotImplemented : "Comandă neimplementată", |
UnknownToolbarSet : "Grupul din bara cu opţiuni \"%1\" nu există", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "Bine", |
414,7 → 417,7 |
NumberedListProp : "Proprietăţile listei numerotate (Numbered List)", |
DlgLstType : "Tip", |
DlgLstTypeCircle : "Cerc", |
DlgLstTypeDisk : "Disc", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Pătrat", |
DlgLstTypeNumbers : "Numere (1, 2, 3)", |
DlgLstTypeLCase : "Minuscule-litere mici (a, b, c)", |
/trunk/api/fckeditor/editor/lang/sr-latn.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: sr-latn.js |
* Serbian (Latin) language file. |
* |
24,7 → 26,7 |
ToolbarExpand : "Proiri liniju sa alatkama", |
// Toolbar Items and Context Menu |
Save : "Sacuvaj", |
Save : "Sačuvaj", |
NewPage : "Nova stranica", |
Preview : "Izgled stranice", |
Cut : "Iseci", |
32,8 → 34,8 |
Paste : "Zalepi", |
PasteText : "Zalepi kao neformatiran tekst", |
PasteWord : "Zalepi iz Worda", |
Print : "tampa", |
SelectAll : "Oznaci sve", |
Print : "Štampa", |
SelectAll : "Označi sve", |
RemoveFormat : "Ukloni formatiranje", |
InsertLinkLbl : "Link", |
InsertLink : "Unesi/izmeni link", |
41,8 → 43,8 |
Anchor : "Unesi/izmeni sidro", |
InsertImageLbl : "Slika", |
InsertImage : "Unesi/izmeni sliku", |
InsertFlashLbl : "Fle", |
InsertFlash : "Unesi/izmeni fle", |
InsertFlashLbl : "Fleš", |
InsertFlash : "Unesi/izmeni fleš", |
InsertTableLbl : "Tabela", |
InsertTable : "Unesi/izmeni tabelu", |
InsertLineLbl : "Linija", |
54,7 → 56,7 |
About : "O FCKeditoru", |
Bold : "Podebljano", |
Italic : "Kurziv", |
Underline : "Podvuceno", |
Underline : "Podvučeno", |
StrikeThrough : "Precrtano", |
Subscript : "Indeks", |
Superscript : "Stepen", |
63,19 → 65,19 |
RightJustify : "Desno ravnanje", |
BlockJustify : "Obostrano ravnanje", |
DecreaseIndent : "Smanji levu marginu", |
IncreaseIndent : "Uvecaj levu marginu", |
Undo : "Poniti akciju", |
IncreaseIndent : "Uvećaj levu marginu", |
Undo : "Poniàti akciju", |
Redo : "Ponovi akciju", |
NumberedListLbl : "Nabrojiva lista", |
NumberedList : "Unesi/ukloni nabrojivu listu", |
BulletedListLbl : "Nenabrojiva lista", |
BulletedList : "Unesi/ukloni nenabrojivu listu", |
ShowTableBorders : "Prikai okvir tabele", |
ShowDetails : "Prikai detalje", |
ShowTableBorders : "Prikaži okvir tabele", |
ShowDetails : "Prikaži detalje", |
Style : "Stil", |
FontFormat : "Format", |
Font : "Font", |
FontSize : "Velicina fonta", |
FontSize : "Veličina fonta", |
TextColor : "Boja teksta", |
BGColor : "Boja pozadine", |
Source : "Kôd", |
97,17 → 99,17 |
// Context Menu |
EditLink : "Izmeni link", |
InsertRow : "Unesi red", |
DeleteRows : "Obrii redove", |
DeleteRows : "Obriši redove", |
InsertColumn : "Unesi kolonu", |
DeleteColumns : "Obrii kolone", |
InsertCell : "Unesi celije", |
DeleteCells : "Obrii celije", |
DeleteColumns : "Obriši kolone", |
InsertCell : "Unesi ćelije", |
DeleteCells : "Obriši ćelije", |
MergeCells : "Spoj celije", |
SplitCell : "Razdvoji celije", |
CellProperties : "Osobine celije", |
TableProperties : "Osobine tabele", |
ImageProperties : "Osobine slike", |
FlashProperties : "Osobine flea", |
FlashProperties : "Osobine fleša", |
AnchorProp : "Osobine sidra", |
ButtonProp : "Osobine dugmeta", |
120,23 → 122,24 |
TextareaProp : "Osobine zone teksta", |
FormProp : "Osobine forme", |
FontFormats : "Normal;Formatirano;Adresa;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6", |
FontFormats : "Normal;Formatirano;Adresa;Naslov 1;Naslov 2;Naslov 3;Naslov 4;Naslov 5;Naslov 6", |
// Alerts and Messages |
ProcessingXHTML : "Obradujem XHTML. Malo strpljenja...", |
Done : "Zavrio", |
PasteWordConfirm : "Tekst koji elite da nalepite kopiran je iz Worda. Da li elite da bude ocicen od formata pre lepljenja?", |
NotCompatiblePaste : "Ova komanda je dostupna samo za Internet Explorer od verzije 5.5. Da li elite da nalepim tekst bez cicenja?", |
Done : "Završio", |
PasteWordConfirm : "Tekst koji želite da nalepite kopiran je iz Worda. Da li želite da bude očišćen od formata pre lepljenja?", |
NotCompatiblePaste : "Ova komanda je dostupna samo za Internet Explorer od verzije 5.5. Da li želite da nalepim tekst bez čišćenja?", |
UnknownToolbarItem : "Nepoznata stavka toolbara \"%1\"", |
UnknownCommand : "Nepoznata naredba \"%1\"", |
NotImplemented : "Naredba nije implementirana", |
UnknownToolbarSet : "Toolbar \"%1\" ne postoji", |
NoActiveX : "You browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING |
// Dialogs |
DlgBtnOK : "OK", |
DlgBtnCancel : "Otkai", |
DlgBtnCancel : "Otkaži", |
DlgBtnClose : "Zatvori", |
DlgBtnBrowseServer : "Pretrai server", |
DlgBtnBrowseServer : "Pretraži server", |
DlgAdvancedTag : "Napredni tagovi", |
DlgOpOther : "<Ostali>", |
DlgInfoTab : "Info", |
155,7 → 158,7 |
DlgGenLongDescr : "Pun opis URL", |
DlgGenClass : "Stylesheet klase", |
DlgGenTitle : "Advisory naslov", |
DlgGenContType : "Advisory vrsta sadraja", |
DlgGenContType : "Advisory vrsta sadržaja", |
DlgGenLinkCharset : "Linked Resource Charset", |
DlgGenStyle : "Stil", |
162,14 → 165,14 |
// Image Dialog |
DlgImgTitle : "Osobine slika", |
DlgImgInfoTab : "Info slike", |
DlgImgBtnUpload : "Poalji na server", |
DlgImgBtnUpload : "Pošalji na server", |
DlgImgURL : "URL", |
DlgImgUpload : "Poalji", |
DlgImgUpload : "Pošalji", |
DlgImgAlt : "Alternativni tekst", |
DlgImgWidth : "irina", |
DlgImgWidth : "Širina", |
DlgImgHeight : "Visina", |
DlgImgLockRatio : "Zakljucaj odnos", |
DlgBtnResetSize : "Resetuj velicinu", |
DlgImgLockRatio : "Zaključaj odnos", |
DlgBtnResetSize : "Resetuj veličinu", |
DlgImgBorder : "Okvir", |
DlgImgHSpace : "HSpace", |
DlgImgVSpace : "VSpace", |
188,14 → 191,14 |
DlgImgLinkTab : "Link", |
// Flash Dialog |
DlgFlashTitle : "Osobine flea", |
DlgFlashTitle : "Osobine fleša", |
DlgFlashChkPlay : "Automatski start", |
DlgFlashChkLoop : "Ponavljaj", |
DlgFlashChkMenu : "Ukljuci fle meni", |
DlgFlashChkMenu : "UkljuÄi fle¨meni", |
DlgFlashScale : "Skaliraj", |
DlgFlashScaleAll : "Prikai sve", |
DlgFlashScaleAll : "Prikaži sve", |
DlgFlashScaleNoBorder : "Bez ivice", |
DlgFlashScaleFit : "Popuni povrinu", |
DlgFlashScaleFit : "Popuni površinu", |
// Link Dialog |
DlgLnkWindowTitle : "Link", |
215,9 → 218,9 |
DlgLnkNoAnchors : "<Nema dostupnih sidra>", |
DlgLnkEMail : "E-Mail adresa", |
DlgLnkEMailSubject : "Naslov", |
DlgLnkEMailBody : "Sadraj poruke", |
DlgLnkUpload : "Poalji", |
DlgLnkBtnUpload : "Poalji na server", |
DlgLnkEMailBody : "Sadržaj poruke", |
DlgLnkUpload : "Pošalji", |
DlgLnkBtnUpload : "Pošalji na server", |
DlgLnkTarget : "Meta", |
DlgLnkTargetFrame : "<okvir>", |
226,9 → 229,9 |
DlgLnkTargetParent : "Roditeljski prozor (_parent)", |
DlgLnkTargetSelf : "Isti prozor (_self)", |
DlgLnkTargetTop : "Prozor na vrhu (_top)", |
DlgLnkTargetFrameName : "Naziv odredinog frejma", |
DlgLnkTargetFrameName : "Naziv odredišnog frejma", |
DlgLnkPopWinName : "Naziv popup prozora", |
DlgLnkPopWinFeat : "Mogucnosti popup prozora", |
DlgLnkPopWinFeat : "Mogućnosti popup prozora", |
DlgLnkPopResize : "Promenljiva velicina", |
DlgLnkPopLocation : "Lokacija", |
DlgLnkPopMenu : "Kontekstni meni", |
237,7 → 240,7 |
DlgLnkPopToolbar : "Toolbar", |
DlgLnkPopFullScrn : "Prikaz preko celog ekrana (IE)", |
DlgLnkPopDependent : "Zavisno (Netscape)", |
DlgLnkPopWidth : "irina", |
DlgLnkPopWidth : "Širina", |
DlgLnkPopHeight : "Visina", |
DlgLnkPopLeft : "Od leve ivice ekrana (px)", |
DlgLnkPopTop : "Od vrha ekrana (px)", |
248,7 → 251,7 |
// Color Dialog |
DlgColorTitle : "Odaberite boju", |
DlgColorBtnClear : "Obrii", |
DlgColorBtnClear : "Obriši", |
DlgColorHighlight : "Posvetli", |
DlgColorSelected : "Odaberi", |
262,37 → 265,37 |
DlgTableTitle : "Osobine tabele", |
DlgTableRows : "Redova", |
DlgTableColumns : "Kolona", |
DlgTableBorder : "Velicina okvira", |
DlgTableBorder : "Veličina okvira", |
DlgTableAlign : "Ravnanje", |
DlgTableAlignNotSet : "<nije postavljeno>", |
DlgTableAlignNotSet : "<nije postavljeno>", |
DlgTableAlignLeft : "Levo", |
DlgTableAlignCenter : "Sredina", |
DlgTableAlignRight : "Desno", |
DlgTableWidth : "irina", |
DlgTableWidth : "Širina", |
DlgTableWidthPx : "piksela", |
DlgTableWidthPc : "procenata", |
DlgTableHeight : "Visina", |
DlgTableCellSpace : "Celijski prostor", |
DlgTableCellPad : "Razmak celija", |
DlgTableCellSpace : "Ćelijski prostor", |
DlgTableCellPad : "Razmak ćelija", |
DlgTableCaption : "Naslov tabele", |
// Table Cell Dialog |
DlgCellTitle : "Osobine celije", |
DlgCellWidth : "irina", |
DlgCellTitle : "Osobine ćelije", |
DlgCellWidth : "Širina", |
DlgCellWidthPx : "piksela", |
DlgCellWidthPc : "procenata", |
DlgCellHeight : "Visina", |
DlgCellWordWrap : "Deljenje reci", |
DlgCellWordWrapNotSet : "<nije postavljeno>", |
DlgCellWordWrap : "Deljenje reči", |
DlgCellWordWrapNotSet : "<nije postavljeno>", |
DlgCellWordWrapYes : "Da", |
DlgCellWordWrapNo : "Ne", |
DlgCellHorAlign : "Vodoravno ravnanje", |
DlgCellHorAlignNotSet : "<nije postavljeno>", |
DlgCellHorAlignNotSet : "<nije postavljeno>", |
DlgCellHorAlignLeft : "Levo", |
DlgCellHorAlignCenter : "Sredina", |
DlgCellHorAlignRight: "Desno", |
DlgCellVerAlign : "Vertikalno ravnanje", |
DlgCellVerAlignNotSet : "<nije postavljeno>", |
DlgCellVerAlignNotSet : "<nije postavljeno>", |
DlgCellVerAlignTop : "Gornje", |
DlgCellVerAlignMiddle : "Sredina", |
DlgCellVerAlignBottom : "Donje", |
304,9 → 307,9 |
DlgCellBtnSelect : "Odaberi...", |
// Find Dialog |
DlgFindTitle : "Pronadi", |
DlgFindFindBtn : "Pronadi", |
DlgFindNotFoundMsg : "Traeni tekst nije pronaden.", |
DlgFindTitle : "Pronađi", |
DlgFindFindBtn : "Pronađi", |
DlgFindNotFoundMsg : "Traženi tekst nije pronađen.", |
// Replace Dialog |
DlgReplaceTitle : "Zameni", |
318,22 → 321,22 |
DlgReplaceWordChk : "Uporedi cele reci", |
// Paste Operations / Dialog |
PasteErrorPaste : "Sigurnosna podeavanja Vaeg pretraivaca ne dozvoljavaju operacije automatskog lepljenja teksta. Molimo Vas da koristite precicu sa tastature (Ctrl+V).", |
PasteErrorCut : "Sigurnosna podeavanja Vaeg pretraivaca ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite precicu sa tastature (Ctrl+X).", |
PasteErrorCopy : "Sigurnosna podeavanja Vaeg pretraivaca ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite precicu sa tastature (Ctrl+C).", |
PasteErrorPaste : "Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog lepljenja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl+V).", |
PasteErrorCut : "Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl+X).", |
PasteErrorCopy : "Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl+C).", |
PasteAsText : "Zalepi kao cist tekst", |
PasteAsText : "Zalepi kao čist tekst", |
PasteFromWord : "Zalepi iz Worda", |
DlgPasteMsg2 : "Molimo Vas da zalepite unutar donje povrine koristeci tastaturnu precicu (<STRONG>Ctrl+V</STRONG>) i da pritisnete <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Ignorii Font Face definicije", |
DlgPasteMsg2 : "Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (<STRONG>Ctrl+V</STRONG>) i da pritisnete <STRONG>OK</STRONG>.", |
DlgPasteIgnoreFont : "Ignoriši definicije fontova", |
DlgPasteRemoveStyles : "Ukloni definicije stilova", |
DlgPasteCleanBox : "Obrii sve", |
DlgPasteCleanBox : "Obriši sve", |
// Color Picker |
ColorAutomatic : "Automatski", |
ColorMoreColors : "Vie boja...", |
ColorMoreColors : "Više boja...", |
// Document Properties |
DocProps : "Osobine dokumenta", |
344,21 → 347,21 |
DlgAnchorErrorName : "Unesite ime sidra", |
// Speller Pages Dialog |
DlgSpellNotInDic : "Nije u recniku", |
DlgSpellNotInDic : "Nije u rečniku", |
DlgSpellChangeTo : "Izmeni", |
DlgSpellBtnIgnore : "Ignorii", |
DlgSpellBtnIgnoreAll : "Ignorii sve", |
DlgSpellBtnIgnore : "Ignoriši", |
DlgSpellBtnIgnoreAll : "Ignoriši sve", |
DlgSpellBtnReplace : "Zameni", |
DlgSpellBtnReplaceAll : "Zameni sve", |
DlgSpellBtnUndo : "Vrati akciju", |
DlgSpellNoSuggestions : "- Bez sugestija -", |
DlgSpellProgress : "Provera spelovanja u toku...", |
DlgSpellNoMispell : "Provera spelovanja zavrena: greke nisu pronadene", |
DlgSpellNoChanges : "Provera spelovanja zavrena: Nije izmenjena nijedna rec", |
DlgSpellOneChange : "Provera spelovanja zavrena: Izmenjena je jedna rec", |
DlgSpellManyChanges : "Provera spelovanja zavrena: %1 rec(i) je izmenjeno", |
DlgSpellNoMispell : "Provera spelovanja završena: greške nisu pronadene", |
DlgSpellNoChanges : "Provera spelovanja završena: Nije izmenjena nijedna rec", |
DlgSpellOneChange : "Provera spelovanja završena: Izmenjena je jedna reč", |
DlgSpellManyChanges : "Provera spelovanja završena: %1 reč(i) je izmenjeno", |
IeSpellDownload : "Provera spelovanja nije instalirana. Da li elite da je skinete sa Interneta?", |
IeSpellDownload : "Provera spelovanja nije instalirana. Da li želite da je skinete sa Interneta?", |
// Button Dialog |
DlgButtonText : "Tekst (vrednost)", |
367,7 → 370,7 |
// Checkbox and Radio Button Dialogs |
DlgCheckboxName : "Naziv", |
DlgCheckboxValue : "Vrednost", |
DlgCheckboxSelected : "Oznaceno", |
DlgCheckboxSelected : "Označeno", |
// Form Dialog |
DlgFormName : "Naziv", |
377,9 → 380,9 |
// Select Field Dialog |
DlgSelectName : "Naziv", |
DlgSelectValue : "Vrednost", |
DlgSelectSize : "Velicina", |
DlgSelectSize : "Veličina", |
DlgSelectLines : "linija", |
DlgSelectChkMulti : "Dozvoli viestruku selekciju", |
DlgSelectChkMulti : "Dozvoli višestruku selekciju", |
DlgSelectOpAvail : "Dostupne opcije", |
DlgSelectOpText : "Tekst", |
DlgSelectOpValue : "Vrednost", |
387,8 → 390,8 |
DlgSelectBtnModify : "Izmeni", |
DlgSelectBtnUp : "Gore", |
DlgSelectBtnDown : "Dole", |
DlgSelectBtnSetValue : "Podesi kao oznacenu vrednost", |
DlgSelectBtnDelete : "Obrii", |
DlgSelectBtnSetValue : "Podesi kao označenu vrednost", |
DlgSelectBtnDelete : "Obriši", |
// Textarea Dialog |
DlgTextareaName : "Naziv", |
398,7 → 401,7 |
// Text Field Dialog |
DlgTextName : "Naziv", |
DlgTextValue : "Vrednost", |
DlgTextCharWidth : "irina (karaktera)", |
DlgTextCharWidth : "Širina (karaktera)", |
DlgTextMaxChars : "Maksimalno karaktera", |
DlgTextType : "Tip", |
DlgTextTypeText : "Tekst", |
409,11 → 412,11 |
DlgHiddenValue : "Vrednost", |
// Bulleted List Dialog |
BulletedListProp : "Osobine Bulleted liste", |
BulletedListProp : "Osobine nenabrojive liste", |
NumberedListProp : "Osobine nabrojive liste", |
DlgLstType : "Tip", |
DlgLstTypeCircle : "Krug", |
DlgLstTypeDisk : "Disk", |
DlgLstTypeDisc : "Disc", //MISSING |
DlgLstTypeSquare : "Kvadrat", |
DlgLstTypeNumbers : "Brojevi (1, 2, 3)", |
DlgLstTypeLCase : "mala slova (a, b, c)", |
422,7 → 425,7 |
DlgLstTypeLRoman : "Velike rimske cifre (I, II, III)", |
// Document Properties Dialog |
DlgDocGeneralTab : "Opte osobine", |
DlgDocGeneralTab : "Opšte osobine", |
DlgDocBackTab : "Pozadina", |
DlgDocColorsTab : "Boje i margine", |
DlgDocMetaTab : "Metapodaci", |
431,7 → 434,7 |
DlgDocLangDir : "Smer jezika", |
DlgDocLangDirLTR : "Sleva nadesno (LTR)", |
DlgDocLangDirRTL : "Zdesna nalevo (RTL)", |
DlgDocLangCode : "ifra jezika", |
DlgDocLangCode : "Šifra jezika", |
DlgDocCharSet : "Kodiranje skupa karaktera", |
DlgDocCharSetOther : "Ostala kodiranja skupa karaktera", |
443,7 → 446,7 |
DlgDocBgNoScroll : "Fiksirana pozadina", |
DlgDocCText : "Tekst", |
DlgDocCLink : "Link", |
DlgDocCVisited : "Poseceni link", |
DlgDocCVisited : "Posećeni link", |
DlgDocCActive : "Aktivni link", |
DlgDocMargins : "Margine stranice", |
DlgDocMaTop : "Gornja", |
450,7 → 453,7 |
DlgDocMaLeft : "Leva", |
DlgDocMaRight : "Desna", |
DlgDocMaBottom : "Donja", |
DlgDocMeIndex : "Kljucne reci za indeksiranje dokumenta (razdvojene zarezima)", |
DlgDocMeIndex : "Ključne reci za indeksiranje dokumenta (razdvojene zarezima)", |
DlgDocMeDescr : "Opis dokumenta", |
DlgDocMeAuthor : "Autor", |
DlgDocMeCopy : "Autorska prava", |
458,15 → 461,15 |
// Templates Dialog |
Templates : "Obrasci", |
DlgTemplatesTitle : "Obrasci za sadraj", |
DlgTemplatesSelMsg : "Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadraj ce biti obrisan):", |
DlgTemplatesLoading : "Ucitavam listu obrazaca. Malo strpljenja...", |
DlgTemplatesTitle : "Obrasci za sadržaj", |
DlgTemplatesSelMsg : "Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):", |
DlgTemplatesLoading : "Učitavam listu obrazaca. Malo strpljenja...", |
DlgTemplatesNoTpl : "(Nema definisanih obrazaca)", |
// About Dialog |
DlgAboutAboutTab : "O editoru", |
DlgAboutBrowserInfoTab : "Informacije o pretraivacu", |
DlgAboutBrowserInfoTab : "Informacije o pretraživacu", |
DlgAboutVersion : "verzija", |
DlgAboutLicense : "Licencirano pod uslovima GNU Lesser General Public License", |
DlgAboutInfo : "Za vie informacija posetite" |
DlgAboutInfo : "Za više informacija posetite" |
} |
/trunk/api/fckeditor/editor/plugins/tablecommands/fckplugin.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckplugin.js |
* This plugin register the required Toolbar items to be able to insert the |
* toolbar commands in the toolbar. |
/trunk/api/fckeditor/editor/plugins/simplecommands/fckplugin.js |
---|
New file |
0,0 → 1,25 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckplugin.js |
* This plugin register Toolbar items for the combos modifying the style to |
* not show the box. |
* |
* File Authors: |
* Frederico Caldeira Knabben (fredck@fckeditor.net) |
*/ |
FCKToolbarItems.RegisterItem( 'SourceSimple' , new FCKToolbarButton( 'Source', FCKLang.Source, null, FCK_TOOLBARITEM_ONLYICON, true, true ) ) ; |
FCKToolbarItems.RegisterItem( 'StyleSimple' , new FCKToolbarStyleCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; |
FCKToolbarItems.RegisterItem( 'FontNameSimple' , new FCKToolbarFontsCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; |
FCKToolbarItems.RegisterItem( 'FontSizeSimple' , new FCKToolbarFontSizeCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; |
FCKToolbarItems.RegisterItem( 'FontFormatSimple', new FCKToolbarFontFormatCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; |
/trunk/api/fckeditor/editor/plugins/placeholder/lang/fr.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fr.js |
* Placholder Italian language file. |
* |
/trunk/api/fckeditor/editor/plugins/placeholder/lang/de.js |
---|
New file |
0,0 → 1,23 |
/* |
* FCKeditor - The text editor for internet |
* Copyright (C) 2003-2005 Frederico Caldeira Knabben |
* |
* Licensed under the terms of the GNU Lesser General Public License: |
* http://www.opensource.org/licenses/lgpl-license.php |
* |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: de.js |
* Placholder German language file. |
* |
* File Authors: |
* José Fontanil |
*/ |
FCKLang.PlaceholderBtn = 'Einfügen/editieren Platzhalter' ; |
FCKLang.PlaceholderDlgTitle = 'Platzhalter Eigenschaften' ; |
FCKLang.PlaceholderDlgName = 'Platzhalter Name' ; |
FCKLang.PlaceholderErrNoName = 'Bitte den Namen des Platzhalters schreiben' ; |
FCKLang.PlaceholderErrNameInUse = 'Der angegebene Namen ist schon in Gebrauch' ; |
/trunk/api/fckeditor/editor/plugins/placeholder/lang/it.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: it.js |
* Placholder Italian language file. |
* |
/trunk/api/fckeditor/editor/plugins/placeholder/lang/en.js |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: en.js |
* Placholder English language file. |
* |
/trunk/api/fckeditor/editor/plugins/placeholder/fck_placeholder.html |
---|
9,6 → 9,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_placeholder.html |
* Placeholder Plugin. |
* |
45,7 → 47,7 |
return ; |
if ( eSelected.tagName == 'SPAN' && eSelected._fckplaceholder ) |
txtName.value = eSelected._fckplaceholder ; |
document.getElementById('txtName').value = eSelected._fckplaceholder ; |
else |
eSelected == null ; |
} |
52,22 → 54,24 |
function Ok() |
{ |
if ( eSelected && eSelected._fckplaceholder == document.getElementById('txtName').value ) |
var sValue = document.getElementById('txtName').value ; |
if ( eSelected && eSelected._fckplaceholder == sValue ) |
return true ; |
if ( document.getElementById('txtName').value.length == 0 ) |
if ( sValue.length == 0 ) |
{ |
alert( FCKLang.PlaceholderErrNoName ) ; |
return false ; |
} |
if ( FCKPlaceholders.Exist( document.getElementById('txtName').value ) ) |
if ( FCKPlaceholders.Exist( sValue ) ) |
{ |
alert( FCKLang.PlaceholderErrNameInUse ) ; |
return false ; |
} |
FCKPlaceholders.Add( txtName.value ) ; |
FCKPlaceholders.Add( sValue ) ; |
return true ; |
} |
/trunk/api/fckeditor/editor/fckdialog.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckdialog.html |
* This page is used by all dialog box as the container. |
* |
23,17 → 25,17 |
// On some Gecko browsers (probably over slow connections) the |
// "dialogArguments" are not set so we must get it from the opener window. |
if ( !dialogArguments ) |
dialogArguments = window.opener.FCKLastDialogInfo ; |
if ( !window.dialogArguments ) |
window.dialogArguments = window.opener.FCKLastDialogInfo ; |
// Sets the Skin CSS |
document.write( '<link href="' + dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
document.write( '<link href="' + window.dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
// Sets the language direction. |
window.document.dir = dialogArguments.Editor.FCKLang.Dir ; |
window.document.dir = window.dialogArguments.Editor.FCKLang.Dir ; |
var sTitle = dialogArguments.Title ; |
document.write( '<title>' + sTitle + '</title>' ) ; |
var sTitle = window.dialogArguments.Title ; |
document.write( '<title>' + sTitle + '<\/title>' ) ; |
function LoadInnerDialog() |
{ |
41,9 → 43,9 |
window.onresize() ; |
// First of all, translate the dialog box contents. |
dialogArguments.Editor.FCKLanguageManager.TranslatePage( document ) ; |
window.dialogArguments.Editor.FCKLanguageManager.TranslatePage( document ) ; |
window.frames["frmMain"].document.location.href = dialogArguments.Page ; |
window.frames["frmMain"].document.location.href = window.dialogArguments.Page ; |
} |
function InnerDialogLoaded() |
51,15 → 53,15 |
var oInnerDoc = document.getElementById('frmMain').contentWindow.document ; |
// Set the language direction. |
oInnerDoc.dir = dialogArguments.Editor.FCKLang.Dir ; |
oInnerDoc.dir = window.dialogArguments.Editor.FCKLang.Dir ; |
// Sets the Skin CSS. |
oInnerDoc.write( '<link href="' + dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
oInnerDoc.write( '<link href="' + window.dialogArguments.Editor.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; |
SetOnKeyDown( oInnerDoc ) ; |
DisableContextMenu( oInnerDoc ) ; |
return dialogArguments.Editor ; |
return window.dialogArguments.Editor ; |
} |
function SetOkButton( showIt ) |
81,12 → 83,13 |
{ |
var oInnerDoc = document.getElementById('frmMain').contentWindow.document ; |
var iFrameHeight ; |
if ( document.all ) |
var iFrameHeight = oInnerDoc.body.offsetHeight ; |
iFrameHeight = oInnerDoc.body.offsetHeight ; |
else |
var iFrameHeight = document.getElementById('frmMain').contentWindow.innerHeight ; |
iFrameHeight = document.getElementById('frmMain').contentWindow.innerHeight ; |
var iInnerHeight = oInnerDoc.body.scrollHeight ; |
var iInnerHeight = oInnerDoc.body.scrollHeight ; |
var iDiff = iInnerHeight - iFrameHeight ; |
138,7 → 141,7 |
if ( startHidden ) |
oDiv.style.display = 'none' ; |
var eTabsRow = document.getElementById( 'TabsRow' ) ; |
eTabsRow = document.getElementById( 'TabsRow' ) ; |
oCell.appendChild( oDiv ) ; |
150,7 → 153,7 |
oDiv.className = 'PopupTabSelected' ; |
eTabsRow.style.display = '' ; |
if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
if ( ! window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
window.onresize() ; |
} |
194,7 → 197,7 |
{ |
targetDocument.onkeydown = function ( e ) |
{ |
var e = e || event || this.parentWindow.event ; |
e = e || event || this.parentWindow.event ; |
switch ( e.keyCode ) |
{ |
case 13 : // ENTER |
207,6 → 210,7 |
return false ; |
break ; |
} |
return true ; |
} |
} |
SetOnKeyDown( document ) ; |
213,7 → 217,7 |
function DisableContextMenu( targetDocument ) |
{ |
if ( dialogArguments.Editor.FCKBrowserInfo.IsIE ) return ; |
if ( window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) return ; |
// Disable Right-Click |
var oOnContextMenu = function( e ) |
226,7 → 230,7 |
} |
DisableContextMenu( document ) ; |
if ( ! dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
if ( ! window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
{ |
window.onresize = function() |
{ |
249,7 → 253,7 |
document.getElementById('frmMain').contentWindow.focus() ; |
} |
if ( dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
if ( window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) |
{ |
function Window_OnBeforeUnload() |
{ |
256,7 → 260,7 |
for ( var t in oTabs ) |
oTabs[t] = null ; |
dialogArguments.Editor = null ; |
window.dialogArguments.Editor = null ; |
} |
window.attachEvent( "onbeforeunload", Window_OnBeforeUnload ) ; |
} |
/trunk/api/fckeditor/editor/skins/default/fck_editor.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_editor.css |
* Styles used by the editor IFRAME and Toolbar. |
* |
69,6 → 71,11 |
border-bottom: #efefde 1px outset; |
} |
.TB_SideBorder |
{ |
background-color: #696969; |
} |
.TB_ToolbarSet, .TB_ToolbarSet * |
{ |
font-size: 11px; |
/trunk/api/fckeditor/editor/skins/default/fck_contextmenu.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_contextmenu.css |
* Styles used by the context menu and panels. |
* |
/trunk/api/fckeditor/editor/skins/default/fck_dialog.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_dialog.css |
* Styles used by the dialog boxes. |
* |
/trunk/api/fckeditor/editor/css/fck_internal.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_internal.css |
* This CSS Style Sheet defines rules used by the editor for its internal use. |
* |
/trunk/api/fckeditor/editor/css/fck_editorarea.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_editorarea.css |
* This is the default CSS file used by the editor area. It defines the |
* initial font of the editor and background color. |
/trunk/api/fckeditor/editor/css/fck_showtableborders_gecko.css |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fck_showtableborders_gecko.css |
* This CSS Style Sheet defines the rules to show table borders on Gecko. |
* |
/trunk/api/fckeditor/editor/js/fckeditorcode_gecko_1.js |
---|
8,18 → 8,20 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* This file has been compacted for best loading performance. |
*/ |
var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message,color){if (!FCKConfig.Debug) return;if (message!=null&&isNaN(message)) message=message.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed) this.DebugWindow=window.open('fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if (this.DebugWindow.Output) this.DebugWindow.Output(message,color);};}else FCKDebug.Output=function() {}; |
var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){if (FCKConfig.FormatOutput) FCK.LinkedField.value=FCKCodeFormatter.Format(value);else FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit",functionPointer);else oForm.addEventListener('submit',functionPointer,true);if (!oForm.updateFCKeditor) oForm.updateFCKeditor=new Array();oForm.updateFCKeditor[oForm.updateFCKeditor.length]=functionPointer;if (!oForm.originalSubmit&&(typeof(oForm.submit)=='function'||(!oForm.submit.tagName&&!oForm.submit.length))){oForm.originalSubmit=oForm.submit;oForm.submit=FCKTools_SubmitReplacer;};};function FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var i=0;i<this.updateFCKeditor.length;i++) this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.AddSelectOption=function(targetDocument,selectElement,optionText,optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length-1;i>=0;i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement,value,defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0;i<selectElement.options.length;i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue!=null) FCKTools.SelectNoCase(selectElement,defaultValue);};FCKTools.HTMLEncode=function(text){if (!text) return '';text=text.replace(/&/g,"&");text=text.replace(/"/g,""");text=text.replace(/</g,"<");text=text.replace(/>/g,">");text=text.replace(/'/g,"'");return text;};FCKTools.GetResultingArray=function(arraySource,separator){switch (typeof(arraySource)){case "string":return arraySource.split(separator);case "function":return separator();default:if (isArray(arraySource)) return arraySource;else return new Array();};};FCKTools.GetElementPosition=function(el){var c={ X:0,Y:0 };while (el){c.X+=el.offsetLeft;c.Y+=el.offsetTop;el=el.offsetParent;};return c;};FCKTools.GetElementAscensor=function(element,ascensorTagName){var e=element.parentNode;while (e){if (e.nodeName==ascensorTagName) return e;e=e.parentNode;};};FCKTools.Pause=function(miliseconds){var oStart=new Date();while (true){var oNow=new Date();if (miliseconds<oNow-oStart) return;};};FCKTools.ConvertStyleSizeToHtml=function(size){return size.endsWith('%')?size:parseInt(size);};FCKTools.ConvertHtmlSizeToStyle=function(size){return size.endsWith('%')?size:(size+'px');} |
FCKTools.AppendStyleSheet=function(documentElement,cssFileUrl){var e=documentElement.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=cssFileUrl;documentElement.getElementsByTagName("HEAD")[0].appendChild(e);return e;};FCKTools.ClearElementAttributes=function(element){for (var i=0;i<element.attributes.length;i++){element.removeAttribute(element.attributes[i].name,0);};};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();var fGetIds=function(parent){for (var i=0;i<parent.childNodes.length;i++){var sId=parent.childNodes[i].id;if (sId&&sId.length>0) aIds[aIds.length]=sId;fGetIds(parent.childNodes[i]);};};fGetIds(parentElement);return aIds;};FCKTools.RemoveOuterTags=function(e){var oFragment=e.ownerDocument.createDocumentFragment();for (var i=0;i<e.childNodes.length;i++) oFragment.appendChild(e.childNodes[i]);e.parentNode.replaceChild(oFragment,e);};FCKTools.CreateXmlObject=function(object){switch (object){case 'XmlHttp':return new XMLHttpRequest();case 'DOMDocument':return document.implementation.createDocument('','',null);};} |
var FCKRegexLib=new Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|INPUT|SELECT|TEXTAREA|HR|OBJECT)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"' ]+)/i;FCKRegexLib.HasBaseTag=/<base /i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/^[A-Za-z_:][\w.-:]*$/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></; |
FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang;if (navigator.userLanguage) sUserLang=navigator.userLanguage.toLowerCase();else if (navigator.language) sUserLang=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if (sUserLang.length>=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length>=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument,tag,propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0;i<aInputs.length;i++){var sKey=aInputs[i].getAttribute('fckLang');if (sKey){var s=FCKLang[sKey];if (s) eval('aInputs[i].'+propertyToSet+' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument,'INPUT','value');this.TranslateElements(targetDocument,'SPAN','innerHTML');this.TranslateElements(targetDocument,'LABEL','innerHTML');this.TranslateElements(targetDocument,'OPTION','innerHTML');};if (FCKLanguageManager.AvailableLanguages[FCKConfig.DefaultLanguage]) FCKLanguageManager.DefaultLanguage=FCKConfig.DefaultLanguage;else FCKLanguageManager.DefaultLanguage='en';FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[FCKLanguageManager.ActiveLanguage.Code];FCK.Language=FCKLanguageManager;LoadLanguageFile(); |
var FCKEvents;if (!(FCKEvents=NS.FCKEvents)){FCKEvents=NS.FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName,functionPointer){if (!this.RegisteredEvents[eventName]) this.RegisteredEvents[eventName]=new Array();this.RegisteredEvents[eventName][this.RegisteredEvents[eventName].length]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName,params){var bReturnValue=true;var oCalls=this.RegisteredEvents[eventName];if (oCalls){for (var i=0;i<oCalls.length;i++) bReturnValue=(oCalls[i](this.Owner,params)&&bReturnValue);};return bReturnValue;};} |
if (FCKConfig.ProcessHTMLEntities){FCKXHtmlEntities=new Object();FCKXHtmlEntities.Entities={' ':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','×':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â ':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â ':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â ':'cong','â':'asymp','â ':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â ':'sdot','â':'loz','â ':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â ':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','¤':'euro'};FCKXHtmlEntities.Chars='';for (var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if (FCKConfig.IncludeLatinEntities){var oEntities={'À':'Agrave','Á':'Aacute','Â':'Acirc','Ã':'Atilde','Ä':'Auml','Å':'Aring','Æ':'AElig','Ç':'Ccedil','È':'Egrave','É':'Eacute','Ê':'Ecirc','Ë':'Euml','Ì':'Igrave','Í':'Iacute','Î':'Icirc','Ï':'Iuml','Ð':'ETH','Ñ':'Ntilde','Ò':'Ograve','Ó':'Oacute','Ô':'Ocirc','Õ':'Otilde','Ö':'Ouml','Ø':'Oslash','Ù':'Ugrave','Ú':'Uacute','Û':'Ucirc','Ü':'Uuml','Ý':'Yacute','Þ':'THORN','ß':'szlig','à':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','å':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','í':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å ':'Scaron','Å¡':'scaron','¾':'Yuml'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};if (FCKConfig.IncludeGreekEntities){var oEntities={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î ':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï ':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};FCKXHtmlEntities.EntitiesRegex=new RegExp('','');FCKXHtmlEntities.EntitiesRegex.compile('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');FCKXHtmlEntities.GeckoEntitiesMarkerRegex=/#\?-\:/g;} |
var FCKXHtml=new Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(node,includeNode,format){FCKXHtml.SpecialBlocks=new Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if (includeNode) this._AppendNode(this.MainNode,node);else this._AppendChildNodes(this.MainNode,node,false);var sXHTML=this._GetMainXmlString();sXHTML=sXHTML.substr(7,sXHTML.length-15).trim();if (FCKBrowserInfo.IsGecko) sXHTML=sXHTML.replace(/<br\/>$/,'');sXHTML=sXHTML.replace(FCKRegexLib.SpaceNoClose,' />');if (FCKConfig.ForceSimpleAmpersand) sXHTML=sXHTML.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (format) sXHTML=FCKCodeFormatter.Format(sXHTML);for (var i=0;i<FCKXHtml.SpecialBlocks.length;i++){var oRegex=new RegExp('___FCKsi___'+i);sXHTML=sXHTML.replace(oRegex,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return sXHTML};FCKXHtml._AppendAttribute=function(xmlNode,attributeName,attributeValue){try{var oXmlAtt=this.XML.createAttribute(attributeName);oXmlAtt.value=attributeValue?attributeValue:'';xmlNode.attributes.setNamedItem(oXmlAtt);}catch (e){};};FCKXHtml._AppendChildNodes=function(xmlNode,htmlNode,isBlockElement){var iCount=0;if (htmlNode.hasChildNodes()){var oChildren=htmlNode.childNodes;for (var i=0;i<oChildren.length;i++){if (this._AppendNode(xmlNode,oChildren[i])) iCount++;};};if (iCount==0){if (isBlockElement&&FCKConfig.FillEmptyBlocks){this._AppendEntity(xmlNode,'nbsp');return;};if (!FCKRegexLib.EmptyElements.test(htmlNode.nodeName)) xmlNode.appendChild(this.XML.createTextNode(''));};};FCKXHtml._AppendNode=function(xmlNode,htmlNode){switch (htmlNode.nodeType){case 1:if (htmlNode.getAttribute('_fckfakelement')) return FCKXHtml._AppendNode(xmlNode,FCK.GetRealElement(htmlNode));if (FCKBrowserInfo.IsGecko&&htmlNode.hasAttribute('_moz_editor_bogus_node')) return false;if (htmlNode.getAttribute('_fckdelete')) return false;var sNodeName=htmlNode.nodeName;if (!FCKRegexLib.ElementName.test(sNodeName)) return false;sNodeName=sNodeName.toLowerCase();if (FCKBrowserInfo.IsGecko&&sNodeName=='br'&&htmlNode.hasAttribute('type')&&htmlNode.getAttribute('type',2)=='_moz') return false;if (htmlNode._fckxhtmljob==FCKXHtml.CurrentJobNum) return false;else htmlNode._fckxhtmljob=FCKXHtml.CurrentJobNum;var oNode=this.XML.createElement(sNodeName);FCKXHtml._AppendAttributes(xmlNode,htmlNode,oNode,sNodeName);var oTagProcessor=FCKXHtml.TagProcessors[sNodeName];if (oTagProcessor){oNode=oTagProcessor(oNode,htmlNode);if (!oNode) break;}else this._AppendChildNodes(oNode,htmlNode,FCKRegexLib.BlockElements.test(sNodeName));xmlNode.appendChild(oNode);break;case 3:this._AppendTextNode(xmlNode,htmlNode.nodeValue.replaceNewLineChars(' '));break;case 8:xmlNode.appendChild(this.XML.createComment(htmlNode.nodeValue));break;default:xmlNode.appendChild(this.XML.createComment("Element not supported - Type: "+htmlNode.nodeType+" Name: "+htmlNode.nodeName));break;};return true;};FCKXHtml._AppendSpecialItem=function(item){return '___FCKsi___'+FCKXHtml.SpecialBlocks.addItem(item);};if (FCKConfig.ProcessHTMLEntities){FCKXHtml._AppendTextNode=function(targetNode,textValue){var asPieces=textValue.match(FCKXHtmlEntities.EntitiesRegex);if (asPieces){for (var i=0;i<asPieces.length;i++){if (asPieces[i].length==1){var sEntity=FCKXHtmlEntities.Entities[asPieces[i]];if (sEntity!=null){this._AppendEntity(targetNode,sEntity);continue;};};targetNode.appendChild(this.XML.createTextNode(asPieces[i]));};};};}else{FCKXHtml._AppendTextNode=function(targetNode,textValue){targetNode.appendChild(this.XML.createTextNode(textValue));};};FCKXHtml.TagProcessors=new Object();FCKXHtml.TagProcessors['img']=function(node){if (!node.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(node,'alt','');return node;};FCKXHtml.TagProcessors['script']=function(node,htmlNode){if (!node.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(node,'type','text/javascript');node.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(htmlNode.text)));return node;};FCKXHtml.TagProcessors['style']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;if (!node.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(node,'type','text/css');node.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(htmlNode.innerHTML)));return node;};FCKXHtml.TagProcessors['title']=function(node,htmlNode){node.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return node;};FCKXHtml.TagProcessors['base']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;return node;};FCKXHtml.TagProcessors['link']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;return node;};FCKXHtml.TagProcessors['table']=function(node,htmlNode){var oClassAtt=node.attributes.getNamedItem('class');if (oClassAtt&&FCKRegexLib.TableBorderClass.test(oClassAtt.nodeValue)){var sClass=oClassAtt.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (sClass.length==0) node.attributes.removeNamedItem('class');else FCKXHtml._AppendAttribute(node,'class',sClass);};FCKXHtml._AppendChildNodes(node,htmlNode,false);return node;} |
FCKXHtml._GetMainXmlString=function(){var oSerializer=new XMLSerializer();if (FCKConfig.ProcessHTMLEntities){return oSerializer.serializeToString(this.MainNode).replace(FCKXHtmlEntities.GeckoEntitiesMarkerRegex,'&');}else return oSerializer.serializeToString(this.MainNode);};FCKXHtml._AppendEntity=function(xmlNode,entity){xmlNode.appendChild(this.XML.createTextNode('#?-:'+entity+';'));};FCKXHtml._AppendAttributes=function(xmlNode,htmlNode,node){var aAttributes=htmlNode.attributes;for (var n=0;n<aAttributes.length;n++){var oAttribute=aAttributes[n];if (oAttribute.specified){var sAttName=oAttribute.nodeName.toLowerCase();if (sAttName=='_fckxhtmljob') continue;else if (sAttName.indexOf('_moz')==0) continue;else if (sAttName=='class') var sAttValue=oAttribute.nodeValue;else if (oAttribute.nodeValue===true) sAttValue=sAttName;else var sAttValue=htmlNode.getAttribute(sAttName,2);if (FCKConfig.ForceSimpleAmpersand&&sAttValue.replace) sAttValue=sAttValue.replace(/&/g,'___FCKAmp___');this._AppendAttribute(node,sAttName,sAttValue);};};} |
var FCKCodeFormatter;if (!(FCKCodeFormatter=NS.FCKCodeFormatter)){FCKCodeFormatter=NS.FCKCodeFormatter=new Object();FCKCodeFormatter.Regex=new Object();FCKCodeFormatter.Regex.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.NewLineTags=/\<(BR|HR)[^\>]\>/gi;FCKCodeFormatter.Regex.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;FCKCodeFormatter.Regex.LineSplitter=/\s*\n+\s*/g;FCKCodeFormatter.Regex.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \/\>]/i;FCKCodeFormatter.Regex.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \>]/i;FCKCodeFormatter.Regex.FormatIndentatorRemove=new RegExp(FCKConfig.FormatIndentator);FCKCodeFormatter.Format=function(html){var sFormatted=html.replace(this.Regex.BlocksOpener,'\n$&');;sFormatted=sFormatted.replace(this.Regex.BlocksCloser,'$&\n');sFormatted=sFormatted.replace(this.Regex.NewLineTags,'$&\n');sFormatted=sFormatted.replace(this.Regex.MainTags,'\n$&\n');var sIndentation='';var asLines=sFormatted.split(this.Regex.LineSplitter);sFormatted='';for (var i=0;i<asLines.length;i++){var sLine=asLines[i];if (sLine.length==0) continue;if (this.Regex.DecreaseIndent.test(sLine)) sIndentation=sIndentation.replace(this.Regex.FormatIndentatorRemove,'');sFormatted+=sIndentation+sLine+'\n';if (this.Regex.IncreaseIndent.test(sLine)) sIndentation+=FCKConfig.FormatIndentator;};return sFormatted.trim();};} |
var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(A,B){if (!FCKConfig.Debug) return;if (A!=null&&isNaN(A)) A=A.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed) this.DebugWindow=window.open('fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if (this.DebugWindow.Output) this.DebugWindow.Output(A,B);};}else FCKDebug.Output=function() {}; |
var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.AttachToLinkedFieldFormSubmit=function(A){var B=FCK.LinkedField.form;if (!B) return;if (FCKBrowserInfo.IsIE) B.attachEvent("onsubmit",A);else B.addEventListener('submit',A,true);if (!B.updateFCKeditor) B.updateFCKeditor=new Array();B.updateFCKeditor[B.updateFCKeditor.length]=A;if (!B.originalSubmit&&(typeof(B.submit)=='function'||(!B.submit.tagName&&!B.submit.length))){B.originalSubmit=B.submit;B.submit=FCKTools_SubmitReplacer;};};function FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var i=0;i<this.updateFCKeditor.length;i++) this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.AddSelectOption=function(A,B,C,D){var E=A.createElement("OPTION");E.text=C;E.value=D;B.options.add(E);return E;};FCKTools.RemoveAllSelectOptions=function(A){for (var i=A.options.length-1;i>=0;i--){A.options.remove(i);};};FCKTools.SelectNoCase=function(A,B,C){var D=B.toString().toLowerCase();for (var i=0;i<A.options.length;i++){if (D==A.options[i].value.toLowerCase()){A.selectedIndex=i;return;};};if (C!=null) FCKTools.SelectNoCase(A,C);};FCKTools.HTMLEncode=function(A){if (!A) return '';A=A.replace(/&/g,"&");A=A.replace(/"/g,""");A=A.replace(/</g,"<");A=A.replace(/>/g,">");A=A.replace(/'/g,"'");return A;};FCKTools.GetResultingArray=function(A,B){switch (typeof(A)){case "string":return A.split(B);case "function":return B();default:if (isArray(A)) return A;else return new Array();};};FCKTools.GetElementPosition=function(A){var c={ X:0,Y:0 };while (A){c.X+=A.offsetLeft;c.Y+=A.offsetTop;A=A.offsetParent;};return c;};FCKTools.GetElementAscensor=function(A,B){var e=A;var C=","+B.toUpperCase()+",";while (e){if (C.indexOf(","+e.nodeName.toUpperCase()+",")!=-1) return e;e=e.parentNode;};return null;};FCKTools.Pause=function(A){var B=new Date();while (true){var C=new Date();if (A<C-B) return;};};FCKTools.ConvertStyleSizeToHtml=function(A){return A.endsWith('%')?A:parseInt(A);};FCKTools.ConvertHtmlSizeToStyle=function(A){return A.endsWith('%')?A:(A+'px');};FCKTools.SetElementAttributes=function(A,B){for (var i=0;i<B.length;i++){if (B[i].specified) A.setAttribute(B[i].nodeName,B[i].nodeValue,0);};};FCKTools.GetParentBlockNode=function(A){if (A.nodeName.toUpperCase()=="BODY") return null;else if (A.nodeType==1&&FCKRegexLib.BlockElements.test(A.tagName)) return A;else return FCKTools.GetParentBlockNode(A.parentNode);};FCKTools.NodeIsEmpty=function(A){var B=A.childNodes[0];while (B){if ((B.nodeType!=1&&B.nodeType!=3)||(B.nodeType==1&&B.nodeName.toUpperCase()!="BR")||(B.nodeType==3&&B.nodeValue&&B.nodeValue.trim()!='')) return false;B=B.nextSibling;};return true;};FCKTools.GetDocumentFragment=function(A,B,C,D,E,F){if (typeof D=="undefined") D=true;if (typeof E=="undefined") E=true;if (typeof F=="undefined") F=true;var G=FCK.EditorDocument.createDocumentFragment();var H=B;while (H&&H!=C){if (H!=B||D) G.appendChild(F?H.cloneNode(true):H);H=H.nextSibling;};if (H&&(B!=C&&E)) G.appendChild(F?H.cloneNode(true):H);return G;}; |
var GECKO_BOGUS='<br _moz_editor_bogus_node="TRUE">';FCKTools.AppendStyleSheet=function(A,B){var e=A.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=B;A.getElementsByTagName("HEAD")[0].appendChild(e);return e;};FCKTools.ClearElementAttributes=function(A){for (var i=0;i<A.attributes.length;i++){A.removeAttribute(A.attributes[i].name,0);};};FCKTools.GetAllChildrenIds=function(A){var B=new Array();var C=function(parent){for (var i=0;i<parent.childNodes.length;i++){var D=parent.childNodes[i].id;if (D&&D.length>0) B[B.length]=D;C(parent.childNodes[i]);};};C(A);return B;};FCKTools.RemoveOuterTags=function(e){var A=e.ownerDocument.createDocumentFragment();for (var i=0;i<e.childNodes.length;i++) A.appendChild(e.childNodes[i]);e.parentNode.replaceChild(A,e);};FCKTools.CreateXmlObject=function(A){switch (A){case 'XmlHttp':return new XMLHttpRequest();case 'DOMDocument':return document.implementation.createDocument('','',null);};return null;};FCKTools.GetFirstInlineNode=function(A){if (FCKRegexLib.BlockElements.test(A.nodeName)) return A;else if (A.previousSibling&&!FCKRegexLib.BlockElements.test(A.previousSibling.nodeName)) return FCKTools.GetFirstInlineNode(A.previousSibling);else if (A.parentNode&&!FCKRegexLib.BlockElements.test(A.parentNode.nodeName)&&A.parentNode.nodeName.toUpperCase()!="BODY") return FCKTools.GetFirstInlineNode(A.parentNode);else return A;};FCKTools.GetLastInlineNode=function(A){if (FCKRegexLib.BlockElements.test(A.nodeName)) return A;else if (A.nextSibling&&!FCKRegexLib.BlockElements.test(A.nextSibling.nodeName)) return FCKTools.GetLastInlineNode(A.nextSibling);else if (A.parentNode&&!FCKRegexLib.BlockElements.test(A.parentNode.nodeName)&&A.parentNode.nodeName.toUpperCase()!="BODY") return FCKTools.GetLastInlineNode(A.parentNode);else return A;};FCKTools.SplitNode=function(A,B,C){if (typeof C=="undefined") C=0;var D=FCK.EditorDocument.createDocumentFragment();var E=FCK.EditorDocument.createRange();if (FCKRegexLib.ListElements.test(A.nodeName)){oStartNode=A.firstChild;oEndNode=A.lastChild;}else{oStartNode=FCKTools.GetFirstInlineNode(B);oEndNode=FCKTools.GetLastInlineNode(B);};if (FCKRegexLib.BlockElements.test(oStartNode.nodeName)&&!FCKRegexLib.ListElements.test(A.nodeName)){if (oStartNode!=oEndNode){F=oStartNode.cloneNode(true);}else{F=FCK.EditorDocument.createElement("P");F.innerHTML=GECKO_BOGUS;if (!FCKRegexLib.SpecialBlockElements.test(A.nodeName)) FCKTools.SetElementAttributes(F,A.attributes);};}else{var F=FCK.EditorDocument.createElement(FCKRegexLib.SpecialBlockElements.test(A.nodeName)?"P":A.tagName);E.setStartBefore(oStartNode);if (C==0) E.setEndBefore(B);else E.setEnd(B,C);F.appendChild(E.cloneContents());F.innerHTML=F.innerHTML.replace(/[\x00-\x1F]/g,"");if (FCKTools.NodeIsEmpty(F)) F.innerHTML=GECKO_BOGUS;else F.innerHTML=F.innerHTML.replace(FCKRegexLib.EmptyElement,"");if (!FCKRegexLib.SpecialBlockElements.test(A.nodeName)) FCKTools.SetElementAttributes(F,A.attributes);};if (FCKRegexLib.BlockElements.test(oEndNode.nodeName)&&!FCKRegexLib.ListElements.test(A.nodeName)){G=oEndNode.cloneNode(true);}else{var G=FCK.EditorDocument.createElement(FCKRegexLib.SpecialBlockElements.test(A.nodeName)?"P":A.tagName);E.setEndAfter(oEndNode);if (C==0) E.setStartBefore(B);else E.setStart(B,C);G.appendChild(E.cloneContents());G.innerHTML=G.innerHTML.replace(/[\x00-\x1F]/g,"");if (FCKTools.NodeIsEmpty(G)) G.innerHTML=GECKO_BOGUS;else G.innerHTML=G.innerHTML.replace(FCKRegexLib.EmptyElement,"");if (!FCKRegexLib.SpecialBlockElements.test(A.nodeName)) FCKTools.SetElementAttributes(G,A.attributes);};D.appendChild(F);D.appendChild(G);FCKTools.ReplaceNodes(A,oStartNode,oEndNode,D);return G;};FCKTools.ReplaceNodes=function(A,B,C,D){var E=FCK.EditorDocument.createRange();if (!FCKRegexLib.SpecialBlockElements.test(A.nodeName)&&(A.firstChild==B)&&(A.lastChild==C)){E.selectNode (A);}else{E.setEndAfter(C);E.setStartBefore(B);};E.deleteContents();E.insertNode(D);}; |
var FCKRegexLib=new Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|INPUT|SELECT|TEXTAREA|HR|OBJECT)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TABLE|CAPTION)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"' ]+)/i;FCKRegexLib.HasBaseTag=/<base /i;FCKRegexLib.HeadOpener=/<head\s?[^>]*>/i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/^[A-Za-z_:][\w.-:]*$/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></;FCKRegexLib.TableCellElements=/^(?:TD|TH)$/i;FCKRegexLib.SpecialBlockElements=/^(?:BODY|TH|TD|CAPTION)$/i;FCKRegexLib.TableBlockElements=/^(?:BODY|DIV|LI|TD|TH)$/i;FCKRegexLib.ListElements=/^(?:OL|UL)$/i;FCKRegexLib.EmptyElement=/<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|SPAN|A)[^\>]*>\s*<\/\1>/gi;FCKRegexLib.StrongOpener=/<STRONG([ \>])/gi;FCKRegexLib.StrongCloser=/<\/STRONG>/gi;FCKRegexLib.EmOpener=/<EM([ \>])/gi;FCKRegexLib.EmCloser=/<\/EM>/gi; |
FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var A;if (navigator.userLanguage) A=navigator.userLanguage.toLowerCase();else if (navigator.language) A=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if (A.length>=5){A=A.substr(0,5);if (this.AvailableLanguages[A]) return A;};if (A.length>=2){A=A.substr(0,2);if (this.AvailableLanguages[A]) return A;};};return this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(A,B,C){var e=A.getElementsByTagName(B);for (var i=0;i<e.length;i++){var D=e[i].getAttribute('fckLang');if (D){var s=FCKLang[D];if (s) eval('e[i].'+C+' = s');};};};FCKLanguageManager.TranslatePage=function(A){this.TranslateElements(A,'INPUT','value');this.TranslateElements(A,'SPAN','innerHTML');this.TranslateElements(A,'LABEL','innerHTML');this.TranslateElements(A,'OPTION','innerHTML');};if (FCKLanguageManager.AvailableLanguages[FCKConfig.DefaultLanguage]) FCKLanguageManager.DefaultLanguage=FCKConfig.DefaultLanguage;else FCKLanguageManager.DefaultLanguage='en';FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[FCKLanguageManager.ActiveLanguage.Code];FCK.Language=FCKLanguageManager;LoadLanguageFile(); |
var FCKEvents;if (!(FCKEvents=NS.FCKEvents)){FCKEvents=NS.FCKEvents=function(A){this.Owner=A;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(A,B){if (!this.RegisteredEvents[A]) this.RegisteredEvents[A]=new Array();this.RegisteredEvents[A][this.RegisteredEvents[A].length]=B;};FCKEvents.prototype.FireEvent=function(A,B){var C=true;var D=this.RegisteredEvents[A];if (D){for (var i=0;i<D.length;i++) C=(D[i](this.Owner,B)&&C);};return C;};} |
if (FCKConfig.ProcessHTMLEntities){var FCKXHtmlEntities=new Object();FCKXHtmlEntities.Entities={' ':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','×':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â ':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â ':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â ':'cong','â':'asymp','â ':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â ':'sdot','â':'loz','â ':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â ':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','¤':'euro'};FCKXHtmlEntities.Chars='';for (var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if (FCKConfig.IncludeLatinEntities){var oEntities={'À':'Agrave','Á':'Aacute','Â':'Acirc','Ã':'Atilde','Ä':'Auml','Å':'Aring','Æ':'AElig','Ç':'Ccedil','È':'Egrave','É':'Eacute','Ê':'Ecirc','Ë':'Euml','Ì':'Igrave','Í':'Iacute','Î':'Icirc','Ï':'Iuml','Ð':'ETH','Ñ':'Ntilde','Ò':'Ograve','Ó':'Oacute','Ô':'Ocirc','Õ':'Otilde','Ö':'Ouml','Ø':'Oslash','Ù':'Ugrave','Ú':'Uacute','Û':'Ucirc','Ü':'Uuml','Ý':'Yacute','Þ':'THORN','ß':'szlig','à':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','å':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','í':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å ':'Scaron','Å¡':'scaron','¾':'Yuml'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};if (FCKConfig.IncludeGreekEntities){var oEntities={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î ':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï ':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};FCKXHtmlEntities.EntitiesRegex=new RegExp('','');FCKXHtmlEntities.EntitiesRegex.compile('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');FCKXHtmlEntities.GeckoEntitiesMarkerRegex=/#\?-\:/g;} |
var FCKXHtml=new Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(A,B,C){FCKXHtml.SpecialBlocks=new Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if (B) this._AppendNode(this.MainNode,A);else this._AppendChildNodes(this.MainNode,A,false);var D=this._GetMainXmlString();D=D.substr(7,D.length-15).trim();if (FCKBrowserInfo.IsGecko) D=D.replace(/<br\/>$/,'');D=D.replace(FCKRegexLib.SpaceNoClose,' />');if (FCKConfig.ForceSimpleAmpersand) D=D.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (C) D=FCKCodeFormatter.Format(D);for (var i=0;i<FCKXHtml.SpecialBlocks.length;i++){var E=new RegExp('___FCKsi___'+i);D=D.replace(E,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return D};FCKXHtml._AppendAttribute=function(A,B,C){try{var D=this.XML.createAttribute(B);D.value=C?C:'';A.attributes.setNamedItem(D);}catch (e){};};FCKXHtml._AppendChildNodes=function(A,B,C){var D=0;if (B.hasChildNodes()){var E=B.childNodes;for (var i=0;i<E.length;i++){if (this._AppendNode(A,E[i])) D++;};};if (D==0){if (C&&FCKConfig.FillEmptyBlocks){this._AppendEntity(A,'nbsp');return;};if (!FCKRegexLib.EmptyElements.test(B.nodeName)) A.appendChild(this.XML.createTextNode(''));};};FCKXHtml._AppendNode=function(A,B){switch (B.nodeType){case 1:if (B.getAttribute('_fckfakelement')) return FCKXHtml._AppendNode(A,FCK.GetRealElement(B));if (FCKBrowserInfo.IsGecko&&B.hasAttribute('_moz_editor_bogus_node')) return false;if (B.getAttribute('_fckdelete')) return false;var C=B.nodeName;if (!FCKRegexLib.ElementName.test(C)) return false;C=C.toLowerCase();if (FCKBrowserInfo.IsGecko&&C=='br'&&B.hasAttribute('type')&&B.getAttribute('type',2)=='_moz') return false;if (B._fckxhtmljob&&B._fckxhtmljob==FCKXHtml.CurrentJobNum) return false;else B._fckxhtmljob=FCKXHtml.CurrentJobNum;var D=this._CreateNode(C);FCKXHtml._AppendAttributes(A,B,D,C);var E=FCKXHtml.TagProcessors[C];if (E){D=E(D,B);if (!D) break;}else this._AppendChildNodes(D,B,FCKRegexLib.BlockElements.test(C));A.appendChild(D);break;case 3:this._AppendTextNode(A,B.nodeValue.replaceNewLineChars(' '));break;case 8:try { A.appendChild(this.XML.createComment(B.nodeValue));}catch (e) { /* Do nothing... probably this is a wrong format comment. */};break;default:A.appendChild(this.XML.createComment("Element not supported - Type: "+B.nodeType+" Name: "+B.nodeName));break;};return true;};if (FCKConfig.ForceStrongEm){FCKXHtml._CreateNode=function(A){switch (A){case 'b':A='strong';break;case 'i':A='em';break;};return this.XML.createElement(A);};}else{FCKXHtml._CreateNode=function(A){return this.XML.createElement(A);};};FCKXHtml._AppendSpecialItem=function(A){return '___FCKsi___'+FCKXHtml.SpecialBlocks.addItem(A);};if (FCKConfig.ProcessHTMLEntities){FCKXHtml._AppendTextNode=function(A,B){var C=B.match(FCKXHtmlEntities.EntitiesRegex);if (C){for (var i=0;i<C.length;i++){if (C[i].length==1){var D=FCKXHtmlEntities.Entities[C[i]];if (D!=null){this._AppendEntity(A,D);continue;};};A.appendChild(this.XML.createTextNode(C[i]));};};};}else{FCKXHtml._AppendTextNode=function(A,B){A.appendChild(this.XML.createTextNode(B));};};FCKXHtml.TagProcessors=new Object();FCKXHtml.TagProcessors['img']=function(A){if (!A.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(A,'alt','');return A;};FCKXHtml.TagProcessors['script']=function(A,B){if (!A.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(A,'type','text/javascript');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.text)));return A;};FCKXHtml.TagProcessors['style']=function(A,B){if (B.getAttribute('_fcktemp')) return null;if (!A.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML)));return A;};FCKXHtml.TagProcessors['title']=function(A,B){A.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return A;};FCKXHtml.TagProcessors['base']=function(A,B){if (B.getAttribute('_fcktemp')) return null;return A;};FCKXHtml.TagProcessors['link']=function(A,B){if (B.getAttribute('_fcktemp')) return null;return A;};FCKXHtml.TagProcessors['table']=function(A,B){var C=A.attributes.getNamedItem('class');if (C&&FCKRegexLib.TableBorderClass.test(C.nodeValue)){var D=C.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (D.length==0) A.attributes.removeNamedItem('class');else FCKXHtml._AppendAttribute(A,'class',D);};FCKXHtml._AppendChildNodes(A,B,false);return A;} |
FCKXHtml._GetMainXmlString=function(){var A=new XMLSerializer();if (FCKConfig.ProcessHTMLEntities){return A.serializeToString(this.MainNode).replace(FCKXHtmlEntities.GeckoEntitiesMarkerRegex,'&');}else return A.serializeToString(this.MainNode);};FCKXHtml._AppendEntity=function(A,B){A.appendChild(this.XML.createTextNode('#?-:'+B+';'));};FCKXHtml._AppendAttributes=function(A,B,C){var D=B.attributes;for (var n=0;n<D.length;n++){var E=D[n];if (E.specified){var F=E.nodeName.toLowerCase();var G;if (F=='_fckxhtmljob') continue;else if (F.indexOf('_moz')==0) continue;else if (F=='class') G=E.nodeValue;else if (E.nodeValue===true) G=F;else G=B.getAttribute(F,2);if (FCKConfig.ForceSimpleAmpersand&&G.replace) G=G.replace(/&/g,'___FCKAmp___');this._AppendAttribute(C,F,G);};};} |
var FCKCodeFormatter;if (!(FCKCodeFormatter=NS.FCKCodeFormatter)){FCKCodeFormatter=NS.FCKCodeFormatter=new Object();FCKCodeFormatter.Regex=new Object();FCKCodeFormatter.Regex.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.NewLineTags=/\<(BR|HR)[^\>]\>/gi;FCKCodeFormatter.Regex.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;FCKCodeFormatter.Regex.LineSplitter=/\s*\n+\s*/g;FCKCodeFormatter.Regex.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \/\>]/i;FCKCodeFormatter.Regex.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \>]/i;FCKCodeFormatter.Regex.FormatIndentatorRemove=new RegExp(FCKConfig.FormatIndentator);FCKCodeFormatter.Format=function(A){var B=A.replace(this.Regex.BlocksOpener,'\n$&');;B=B.replace(this.Regex.BlocksCloser,'$&\n');B=B.replace(this.Regex.NewLineTags,'$&\n');B=B.replace(this.Regex.MainTags,'\n$&\n');var C='';var D=B.split(this.Regex.LineSplitter);B='';for (var i=0;i<D.length;i++){var E=D[i];if (E.length==0) continue;if (this.Regex.DecreaseIndent.test(E)) C=C.replace(this.Regex.FormatIndentatorRemove,'');B+=C+E+'\n';if (this.Regex.IncreaseIndent.test(E)) C+=FCKConfig.FormatIndentator;};return B.trim();};} |
var FCKUndo=new Object();FCKUndo.SaveUndoStep=function(){} |
FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.StartEditor=function(){this.EditorWindow=window.frames['eEditorArea'];this.EditorDocument=this.EditorWindow.document;if (FCKBrowserInfo.IsGecko) this.MakeEditable();this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);FCKUndo.SaveUndoStep();this.SetStatus(FCK_STATUS_ACTIVE);};function Window_OnFocus(){FCK.Focus();};FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){window.onfocus=window.document.body.onfocus=Window_OnFocus;if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange',newStatus);};FCK.GetHTML=function(format){var sHTML;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsIE) sHTML=this.EditorDocument.body.innerHTML.replace(FCKRegexLib.ToReplace,'$1');else sHTML=this.EditorDocument.body.innerHTML;}else sHTML=document.getElementById('eSourceField').value;if (format) return FCKCodeFormatter.Format(sHTML);else return sHTML;};FCK.GetXHTML=function(format){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();if (FCKConfig.FullPage) var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,format);else{if (FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>') var sXHTML='';else var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body,false,format);};if (bSource) this.SwitchEditMode();if (FCKBrowserInfo.IsIE) sXHTML=sXHTML.replace(FCKRegexLib.ToReplace,'$1');if (FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0) sXHTML=FCK.DocTypeDeclaration+'\n'+sXHTML;if (FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0) sXHTML=FCK.XmlDeclaration+'\n'+sXHTML;return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML(FCKConfig.FormatOutput));else FCKTools.SetLinkedFieldValue(FCK.GetHTML(FCKConfig.FormatOutput));};FCK.ShowContextMenu=function(x,y){if (this.Status!=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x,y);this.Events.FireEvent("OnContextMenu");};FCK.RegisteredDoubleClickHandlers=new Object();FCK.OnDoubleClick=function(element){var oHandler=FCK.RegisteredDoubleClickHandlers[element.tagName];if (oHandler) oHandler(element);};FCK.RegisterDoubleClickHandler=function(handlerFunction,tag){FCK.RegisteredDoubleClickHandlers[tag.toUpperCase()]=handlerFunction;};FCK.OnAfterSetHTML=function(){var oProcessor,i=0;while(oProcessor=FCKDocumentProcessors[i++]) oProcessor.ProcessDocument(FCK.EditorDocument);this.Events.FireEvent('OnAfterSetHTML');};var FCKDocumentProcessors=new Array();var FCKDocumentProcessors_CreateFakeImage=function(fakeClass,realElement){var oImg=FCK.EditorDocument.createElement('IMG');oImg.className=fakeClass;oImg.src=FCKConfig.FullBasePath+'images/spacer.gif';oImg.setAttribute('_fckfakelement','true',0);oImg.setAttribute('_fckrealelement',FCKTempBin.AddElement(realElement),0);return oImg;};var FCKAnchorsProcessor=new Object();FCKAnchorsProcessor.ProcessDocument=function(document){var aLinks=document.getElementsByTagName('A');var oLink;var i=aLinks.length-1;while (i>=0&&(oLink=aLinks[i--])){if (oLink.name.length>0&&(!oLink.getAttribute('href')||oLink.getAttribute('href').length==0)){var oImg=FCKDocumentProcessors_CreateFakeImage('FCK__Anchor',oLink.cloneNode(true));oImg.setAttribute('_fckanchor','true',0);oLink.parentNode.insertBefore(oImg,oLink);oLink.parentNode.removeChild(oLink);};};};FCKDocumentProcessors.addItem(FCKAnchorsProcessor);var FCKFlashProcessor=new Object();FCKFlashProcessor.ProcessDocument=function(document){var aEmbeds=document.getElementsByTagName('EMBED');var oEmbed;var i=aEmbeds.length-1;while (i>=0&&(oEmbed=aEmbeds[i--])){if (oEmbed.src.endsWith('.swf',true)){var oImg=FCKDocumentProcessors_CreateFakeImage('FCK__Flash',oEmbed.cloneNode(true));oImg.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(oImg,oEmbed);oEmbed.parentNode.insertBefore(oImg,oEmbed);oEmbed.parentNode.removeChild(oEmbed);};};};FCKFlashProcessor.RefreshView=function(placholderImage,originalEmbed){if (originalEmbed.width>0) placholderImage.style.width=FCKTools.ConvertHtmlSizeToStyle(originalEmbed.width);if (originalEmbed.height>0) placholderImage.style.height=FCKTools.ConvertHtmlSizeToStyle(originalEmbed.height);};FCKDocumentProcessors.addItem(FCKFlashProcessor);FCK.GetRealElement=function(fakeElement){var e=FCKTempBin.Elements[fakeElement.getAttribute('_fckrealelement')];if (fakeElement.getAttribute('_fckflash')){if (fakeElement.style.width.length>0) e.width=FCKTools.ConvertStyleSizeToHtml(fakeElement.style.width);if (fakeElement.style.height.length>0) e.height=FCKTools.ConvertStyleSizeToHtml(fakeElement.style.height);};return e;} |
FCK.Description="FCKeditor for Gecko Browsers";FCK.InitializeBehaviors=function(){if (FCKConfig.ShowBorders){var oStyle=FCKTools.AppendStyleSheet(this.EditorDocument,FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css');oStyle.setAttribute('_fcktemp','true');};var oOnContextMenu=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX,e.clientY);};this.EditorDocument.addEventListener('contextmenu',oOnContextMenu,true);var oOnKeyDown=function(e){if (e.ctrlKey&&!e.shiftKey&&!e.altKey){if (e.which==86||e.which==118){if (FCK.Status!=FCK_STATUS_COMPLETE||!FCK.Events.FireEvent("OnPaste")){e.preventDefault();e.stopPropagation();};};};};this.EditorDocument.addEventListener('keypress',oOnKeyDown,true);this.ExecOnSelectionChange=function(){FCK.Events.FireEvent("OnSelectionChange");};this.ExecOnSelectionChangeTimer=function(){if (FCK.LastOnChangeTimer) window.clearTimeout(FCK.LastOnChangeTimer);FCK.LastOnChangeTimer=window.setTimeout(FCK.ExecOnSelectionChange,100);};this.EditorDocument.addEventListener('mouseup',this.ExecOnSelectionChange,false);this.EditorDocument.addEventListener('keyup',this.ExecOnSelectionChangeTimer,false);this._DblClickListener=function(e){FCK.OnDoubleClick(e.target);e.stopPropagation();};this.EditorDocument.addEventListener('dblclick',this._DblClickListener,true);this._OnLoad=function(){if (this._FCK_HTML){this.document.body.innerHTML=this._FCK_HTML;this._FCK_HTML=null;};};this.EditorWindow.addEventListener('load',this._OnLoad,true);};FCK.MakeEditable=function(){if (this.EditorWindow.document.designMode=='on') return;this.EditorWindow.document.designMode='on';this.EditorWindow.document.execCommand('useCSS',false,!FCKConfig.GeckoUseSPAN);};FCK.Focus=function(){try{FCK.EditorWindow.focus();}catch(e) {};};FCK.SetHTML=function(html,forceWYSIWYG){if (forceWYSIWYG||FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKConfig.FullPage&&FCKRegexLib.BodyContents.test(html)){if (FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(html)) html=html.replace(FCKRegexLib.HeadCloser,FCK.TempBaseTag+'</head>');html=html.replace(FCKRegexLib.HeadCloser,'<link href="'+FCKConfig.BasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" /></head>');var oMatch=html.match(FCKRegexLib.BodyContents);var sOpener=oMatch[1];var sContents=oMatch[2];var sCloser=oMatch[3];var sHtml=sOpener+' '+sCloser;if (!this._Initialized){FCK.EditorDocument.designMode="on";FCK.EditorDocument.execCommand("useCSS",false,!FCKConfig.GeckoUseSPAN);this._Initialized=true;};this.EditorDocument.open();this.EditorDocument.write(sHtml);this.EditorDocument.close();if (this.EditorDocument.body) this.EditorDocument.body.innerHTML=sContents;else this.EditorWindow._FCK_HTML=sContents;this.InitializeBehaviors();}else{if (!this._Initialized){this.EditorDocument.dir=FCKConfig.ContentLangDirection;var sHtml='<title></title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+'<link href="'+FCKConfig.BasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />';sHtml+=FCK.TempBaseTag;this.EditorDocument.getElementsByTagName("HEAD")[0].innerHTML=sHtml;this.InitializeBehaviors();this._Initialized=true;};if (html.length==0) FCK.EditorDocument.body.innerHTML='<br _moz_editor_bogus_node="TRUE">';else if (FCKRegexLib.EmptyParagraph.test(html)) FCK.EditorDocument.body.innerHTML=html.replace(FCKRegexLib.TagBody,'><br _moz_editor_bogus_node="TRUE"><');else FCK.EditorDocument.body.innerHTML=html;FCK.EditorDocument.execCommand('useCSS',false,!FCKConfig.GeckoUseSPAN);};FCK.OnAfterSetHTML();}else document.getElementById('eSourceField').value=html;} |
FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.StartEditor=function(){this.EditorWindow=window.frames['eEditorArea'];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);FCKUndo.SaveUndoStep();this.SetStatus(FCK_STATUS_ACTIVE);};function Window_OnFocus(){FCK.Focus();};FCK.SetStatus=function(A){this.Status=A;if (A==FCK_STATUS_ACTIVE){window.onfocus=window.document.body.onfocus=Window_OnFocus;if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange',A);};FCK.GetHTML=function(A){var B;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsIE) B=this.EditorDocument.body.innerHTML.replace(FCKRegexLib.ToReplace,'$1');else B=this.EditorDocument.body.innerHTML;}else B=document.getElementById('eSourceField').value;if (A) return FCKCodeFormatter.Format(B);else return B;};FCK.GetXHTML=function(A){var B=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (B) this.SwitchEditMode();var C;if (FCKConfig.FullPage) C=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,A);else{if (FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>') C='';else C=FCKXHtml.GetXHTML(this.EditorDocument.body,false,A);};if (B) this.SwitchEditMode();if (FCKBrowserInfo.IsIE) C=C.replace(FCKRegexLib.ToReplace,'$1');if (FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0) C=FCK.DocTypeDeclaration+'\n'+C;if (FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0) C=FCK.XmlDeclaration+'\n'+C;return FCKConfig.ProtectedSource.Revert(C);};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCK.LinkedField.value=FCK.GetXHTML(FCKConfig.FormatOutput);else FCK.LinkedField.value=FCK.GetHTML(FCKConfig.FormatOutput);FCK.Events.FireEvent('OnAfterLinkedFieldUpdate');};FCK.ShowContextMenu=function(x,y){if (this.Status!=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x,y);this.Events.FireEvent("OnContextMenu");};FCK.RegisteredDoubleClickHandlers=new Object();FCK.OnDoubleClick=function(A){var B=FCK.RegisteredDoubleClickHandlers[A.tagName];if (B) B(A);};FCK.RegisterDoubleClickHandler=function(A,B){FCK.RegisteredDoubleClickHandlers[B.toUpperCase()]=A;};FCK.OnAfterSetHTML=function(){var A,i=0;while((A=FCKDocumentProcessors[i++])) A.ProcessDocument(FCK.EditorDocument);this.Events.FireEvent('OnAfterSetHTML');};var FCKDocumentProcessors=new Array();var FCKDocumentProcessors_CreateFakeImage=function(A,B){var C=FCK.EditorDocument.createElement('IMG');C.className=A;C.src=FCKConfig.FullBasePath+'images/spacer.gif';C.setAttribute('_fckfakelement','true',0);C.setAttribute('_fckrealelement',FCKTempBin.AddElement(B),0);return C;};var FCKAnchorsProcessor=new Object();FCKAnchorsProcessor.ProcessDocument=function(A){var B=A.getElementsByTagName('A');var C;var i=B.length-1;while (i>=0&&(C=B[i--])){if (C.name.length>0&&(!C.getAttribute('href')||C.getAttribute('href').length==0)){var D=FCKDocumentProcessors_CreateFakeImage('FCK__Anchor',C.cloneNode(true));D.setAttribute('_fckanchor','true',0);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);};};};FCKDocumentProcessors.addItem(FCKAnchorsProcessor);var FCKFlashProcessor=new Object();FCKFlashProcessor.ProcessDocument=function(A){var B=A.getElementsByTagName('EMBED');var C;var i=B.length-1;while (i>=0&&(C=B[i--])){if (C.src.endsWith('.swf',true)){var D=FCKDocumentProcessors_CreateFakeImage('FCK__Flash',C.cloneNode(true));D.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(D,C);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);};};};FCKFlashProcessor.RefreshView=function(A,B){if (B.width>0) A.style.width=FCKTools.ConvertHtmlSizeToStyle(B.width);if (B.height>0) A.style.height=FCKTools.ConvertHtmlSizeToStyle(B.height);};FCKDocumentProcessors.addItem(FCKFlashProcessor);FCK.GetRealElement=function(A){var e=FCKTempBin.Elements[A.getAttribute('_fckrealelement')];if (A.getAttribute('_fckflash')){if (A.style.width.length>0) e.width=FCKTools.ConvertStyleSizeToHtml(A.style.width);if (A.style.height.length>0) e.height=FCKTools.ConvertStyleSizeToHtml(A.style.height);};return e;};var FCKTablesProcessor=new Object();FCKTablesProcessor.ProcessDocument=function(A){FCKTablesProcessor.CheckTablesNesting(A);};FCKTablesProcessor.CheckTablesNesting=function(A){var B=A.getElementsByTagName("TABLE");var C;for (var i=0;i<B.length;i++){FCKTablesProcessor.CheckTableNesting(B[i]);};};FCKTablesProcessor.CheckTableNesting=function(A){var B=FCKTools.GetParentBlockNode(A.parentNode);if (B&&!FCKRegexLib.TableBlockElements.test(B.nodeName)){var C=FCK.EditorDocument.createElement(B.tagName);var D=FCKTools.GetDocumentFragment(B,B.firstChild,A,true,false,true);C.appendChild(D);FCKTools.SetElementAttributes(C,B.attributes);var E=FCK.EditorDocument.createElement(B.tagName);var F=FCKTools.GetDocumentFragment(B,A,B.lastChild,false,true,true);E.appendChild(F);FCKTools.SetElementAttributes(E,B.attributes);var G=FCK.EditorDocument.createDocumentFragment();if (!FCKTools.NodeIsEmpty(C)) G.appendChild(C);G.appendChild(A);if (!FCKTools.NodeIsEmpty(E)) G.appendChild(E);B.parentNode.replaceChild(G,B);};};FCKDocumentProcessors.addItem(FCKTablesProcessor); |
FCK.Description="FCKeditor for Gecko Browsers";FCK.InitializeBehaviors=function(){if (FCKConfig.ShowBorders){var A=FCKTools.AppendStyleSheet(this.EditorDocument,FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css');A.setAttribute('_fcktemp','true');};var B=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX,e.clientY);};this.EditorDocument.addEventListener('contextmenu',B,true);var C=function(e){if (e.which==13&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&!FCKConfig.UseBROnCarriageReturn&&!FCK.Events.FireEvent("OnEnter")){e.preventDefault();e.stopPropagation();};if (e.which==8&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&!FCKConfig.UserBROnCarriageReturn&&!FCK.Events.FireEvent("OnBackSpace")){e.preventDefault();e.stopPropagation();};if (e.ctrlKey&&!e.shiftKey&&!e.altKey){var D=false;switch (e.which){case 66:case 98:FCK.ExecuteNamedCommand('bold');D=true;break;case 105:case 73:FCK.ExecuteNamedCommand('italic');D=true;break;case 117:case 85:FCK.ExecuteNamedCommand('underline');D=true;break;case 86:case 118:D=(FCK.Status!=FCK_STATUS_COMPLETE||!FCK.Events.FireEvent("OnPaste"));break;};if (D){e.preventDefault();e.stopPropagation();};};};this.EditorDocument.addEventListener('keypress',C,true);this.ExecOnSelectionChange=function(){FCK.Events.FireEvent("OnSelectionChange");};this.ExecOnSelectionChangeTimer=function(){if (FCK.LastOnChangeTimer) window.clearTimeout(FCK.LastOnChangeTimer);FCK.LastOnChangeTimer=window.setTimeout(FCK.ExecOnSelectionChange,100);};this.EditorDocument.addEventListener('mouseup',this.ExecOnSelectionChange,false);this.EditorDocument.addEventListener('keyup',this.ExecOnSelectionChangeTimer,false);this._DblClickListener=function(e){FCK.OnDoubleClick(e.target);e.stopPropagation();};this.EditorDocument.addEventListener('dblclick',this._DblClickListener,true);this._OnLoad=function(){if (this._FCK_HTML){this.document.body.innerHTML=this._FCK_HTML;this._FCK_HTML=null;};};this.EditorWindow.addEventListener('load',this._OnLoad,true);};FCK.MakeEditable=function(){try{FCK.EditorDocument.designMode='on';FCK.EditorDocument.execCommand('useCSS',false,!FCKConfig.GeckoUseSPAN);}catch (e) {};};FCK.Focus=function(){try{FCK.EditorWindow.focus();}catch(e) {};};FCK.SetHTML=function(A,B){A=A.replace(FCKRegexLib.StrongOpener,'<b$1');A=A.replace(FCKRegexLib.StrongCloser,'<\/b>');A=A.replace(FCKRegexLib.EmOpener,'<i$1');A=A.replace(FCKRegexLib.EmCloser,'<\/i>');if (B||FCK.EditMode==FCK_EDITMODE_WYSIWYG){A=FCKConfig.ProtectedSource.Protect(A);if (FCKConfig.FullPage&&FCKRegexLib.BodyContents.test(A)){if (FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(A)) A=A.replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);A=A.replace(FCKRegexLib.HeadCloser,'<link href="'+FCKConfig.BasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" /></head>');var C=A.match(FCKRegexLib.BodyContents);var D=C[1];var E=C[2];var F=C[3];var G=D+' '+F;if (!this._Initialized){FCK.EditorDocument.designMode="on";FCK.EditorDocument.execCommand("useCSS",false,!FCKConfig.GeckoUseSPAN);this._Initialized=true;};this.EditorDocument.open();this.EditorDocument.write(G);this.EditorDocument.close();if (this.EditorDocument.body) this.EditorDocument.body.innerHTML=E;else this.EditorWindow._FCK_HTML=E;this.InitializeBehaviors();}else{if (!this._Initialized){this.EditorDocument.dir=FCKConfig.ContentLangDirection;var G='<title></title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+'<link href="'+FCKConfig.BasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />'+FCK.TempBaseTag;this.EditorDocument.getElementsByTagName("HEAD")[0].innerHTML=G;this.InitializeBehaviors();this._Initialized=true;};if (A.length==0) FCK.EditorDocument.body.innerHTML=GECKO_BOGUS;else if (FCKRegexLib.EmptyParagraph.test(A)) FCK.EditorDocument.body.innerHTML=A.replace(FCKRegexLib.TagBody,'>'+GECKO_BOGUS+'<');else FCK.EditorDocument.body.innerHTML=A;FCK.MakeEditable();};FCK.OnAfterSetHTML();}else document.getElementById('eSourceField').value=A;} |
/trunk/api/fckeditor/editor/js/fckeditorcode_gecko_2.js |
---|
8,47 → 8,49 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* This file has been compacted for best loading performance. |
*/ |
FCK.RedirectNamedCommands=new Object();FCK.ExecuteNamedCommand=function(commandName,commandParameter){FCKUndo.SaveUndoStep();if (FCK.RedirectNamedCommands[commandName]!=null) FCK.ExecuteRedirectedNamedCommand(commandName,commandParameter);else{FCK.Focus();FCK.EditorDocument.execCommand(commandName,false,commandParameter);FCK.Events.FireEvent('OnSelectionChange');};};FCK.GetNamedCommandState=function(commandName){try{if (!FCK.EditorDocument.queryCommandEnabled(commandName)) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(commandName)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(commandName){var sValue='';var eState=FCK.GetNamedCommandState(commandName);if (eState==FCK_TRISTATE_DISABLED) return null;try{sValue=this.EditorDocument.queryCommandValue(commandName);}catch(e) {};return sValue?sValue:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var iWidth=screen.width*0.8;var iHeight=screen.height*0.7;var iLeft=(screen.width-iWidth) / 2;var oWindow=window.open('', null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + iWidth + ',height=' + iHeight + ',left=' + iLeft);var sHTML;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length > 0) sHTML=FCK.GetXHTML().replace( FCKRegexLib.HeadCloser, FCK.TempBaseTag + '</head>');else sHTML=FCK.GetXHTML();}else{sHTML=FCKConfig.DocType + '<html dir="' + FCKConfig.ContentLangDirection + '">' + '<head><title>' + FCKLang.Preview + '</title>' + '<link href="' + FCKConfig.EditorAreaCSS + '" rel="stylesheet" type="text/css" />' + FCK.TempBaseTag + '</head><body>' + FCK.GetXHTML() + '</body></html>';};oWindow.document.write(sHTML);oWindow.document.close();};FCK.SwitchEditMode=function(){var bWYSIWYG=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display = bWYSIWYG ? 'none' : '';document.getElementById('eSource').style.display = bWYSIWYG ? '' : 'none';if (bWYSIWYG){if (FCKBrowserInfo.IsIE) FCKUndo.SaveUndoStep();document.getElementById('eSourceField').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ));}else FCK.SetHTML(FCK.GetHTML(), true);FCK.EditMode=bWYSIWYG ? FCK_EDITMODE_SOURCE : FCK_EDITMODE_WYSIWYG;FCKToolbarSet.RefreshModeState();FCK.Focus();};FCK.CreateElement=function(tag){var e=FCK.EditorDocument.createElement(tag);return FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('__FCKTempLabel', 1);this.InsertElement(e);var aEls=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var i=0 ; i < aEls.length ; i++){if (aEls[i].getAttribute( '__FCKTempLabel' )){aEls[i].removeAttribute('__FCKTempLabel');return aEls[i];};};}; |
FCK._BaseGetNamedCommandState=FCK.GetNamedCommandState;FCK.GetNamedCommandState=function(commandName){switch (commandName){case 'Unlink':return FCKSelection.HasAncestorNode('A')?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;default:return FCK._BaseGetNamedCommandState(commandName);};};FCK.RedirectNamedCommands={Print:true,Paste:true,Cut:true,Copy:true};FCK.ExecuteRedirectedNamedCommand=function(commandName,commandParameter){switch (commandName){case 'Print':FCK.EditorWindow.print();break;case 'Paste':try { if (FCK.Paste()) FCK._BaseExecuteNamedCommand('Paste');}catch (e) { alert(FCKLang.PasteErrorPaste);};break;case 'Cut':try { FCK._BaseExecuteNamedCommand('Cut');}catch (e) { alert(FCKLang.PasteErrorCut);};break;case 'Copy':try { FCK._BaseExecuteNamedCommand('Copy');}catch (e) { alert(FCKLang.PasteErrorCopy);};break;default:FCK.ExecuteNamedCommand(commandName,commandParameter);};};FCK.AttachToOnSelectionChange=function(functionPointer){this.Events.AttachEvent('OnSelectionChange',functionPointer);};FCK.Paste=function(){if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else if (FCKConfig.AutoDetectPasteFromWord){var sHTML=FCK.GetClipboardHTML();var re=/<\w[^>]* class="?MsoNormal"?/gi;if (re.test(sHTML)){if (confirm(FCKLang["PasteWordConfirm"])){FCK.PasteFromWord();return false;};};}else return true;};FCK.InsertHtml=function(html){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);var oFragment=oRange.createContextualFragment(html);var oLastNode=oFragment.lastChild;oRange.insertNode(oFragment);oRange.setEndAfter(oLastNode);oRange.setStartAfter(oLastNode);oSel.removeAllRanges();oSel=FCK.EditorWindow.getSelection();oSel.addRange(oRange);this.Focus();};FCK.InsertElement=function(element){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);oRange.insertNode(element);oRange.setEndAfter(element);oRange.setStartAfter(element);this.Focus();};FCK.PasteAsPlainText=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteAsText,'dialog/fck_paste.html',400,330,'PlainText');};FCK.GetClipboardHTML=function(){return '';};FCK.CreateLink=function(url){FCK.ExecuteNamedCommand('Unlink');if (url.length>0){var sTempUrl='javascript:void(0);/*'+(new Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',sTempUrl);var oLink=document.evaluate("//a[@href='"+sTempUrl+"']",this.EditorDocument.body,null,9,null).singleNodeValue;if (oLink){oLink.href=url;return oLink;};};}; |
FCK.RedirectNamedCommands=new Object();FCK.ExecuteNamedCommand=function(A,B){FCKUndo.SaveUndoStep();if (FCK.RedirectNamedCommands[A]!=null) FCK.ExecuteRedirectedNamedCommand(A,B);else{FCK.Focus();FCK.EditorDocument.execCommand(A,false,B);FCK.Events.FireEvent('OnSelectionChange');};FCKUndo.SaveUndoStep();};FCK.GetNamedCommandState=function(A){try{if (!FCK.EditorDocument.queryCommandEnabled(A)) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(A)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(A){var B='';var C=FCK.GetNamedCommandState(A);if (C==FCK_TRISTATE_DISABLED) return null;try{B=this.EditorDocument.queryCommandValue(A);}catch(e) {};return B?B:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var A=FCKConfig.ScreenWidth*0.8;var B=FCKConfig.ScreenHeight*0.7;var C=(FCKConfig.ScreenWidth-A)/2;var D=window.open('',null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+A+',height='+B+',left='+C);var E;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length>0) E=FCK.GetXHTML().replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);else E=FCK.GetXHTML();}else{E=FCKConfig.DocType+'<html dir="'+FCKConfig.ContentLangDirection+'">'+'<head><title>'+FCKLang.Preview+'</title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+FCK.TempBaseTag+'</head><body>'+FCK.GetXHTML()+'</body></html>';};D.document.write(E);D.document.close();};FCK.SwitchEditMode=function(){var A=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display=A?'none':'';document.getElementById('eSource').style.display=A?'':'none';if (A){if (FCKBrowserInfo.IsIE) FCKUndo.SaveUndoStep();document.getElementById('eSourceField').value=(FCKConfig.EnableXHTML&&FCKConfig.EnableSourceXHTML?FCK.GetXHTML(FCKConfig.FormatSource):FCK.GetHTML(FCKConfig.FormatSource));}else FCK.SetHTML(FCK.GetHTML(),true);FCK.EditMode=A?FCK_EDITMODE_SOURCE:FCK_EDITMODE_WYSIWYG;FCKToolbarSet.RefreshModeState();FCK.Focus();};FCK.CreateElement=function(A){var e=FCK.EditorDocument.createElement(A);return FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('__FCKTempLabel',1);this.InsertElement(e);var A=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var i=0;i<A.length;i++){if (A[i].getAttribute('__FCKTempLabel')){A[i].removeAttribute('__FCKTempLabel');return A[i];};};return null;}; |
FCK._BaseGetNamedCommandState=FCK.GetNamedCommandState;FCK.GetNamedCommandState=function(A){switch (A){case 'Unlink':return FCKSelection.HasAncestorNode('A')?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;default:return FCK._BaseGetNamedCommandState(A);};};FCK.RedirectNamedCommands={Print:true,Paste:true,Cut:true,Copy:true,InsertOrderedList:true,InsertUnorderedList:true};FCK.ExecuteRedirectedNamedCommand=function(A,B){switch (A){case 'Print':FCK.EditorWindow.print();break;case 'Paste':try { if (FCK.Paste()) FCK._BaseExecuteNamedCommand('Paste');}catch (e) { alert(FCKLang.PasteErrorPaste);};break;case 'Cut':try { FCK._BaseExecuteNamedCommand('Cut');}catch (e) { alert(FCKLang.PasteErrorCut);};break;case 'Copy':try { FCK._BaseExecuteNamedCommand('Copy');}catch (e) { alert(FCKLang.PasteErrorCopy);};break;case 'InsertOrderedList':case 'InsertUnorderedList':if (!FCKConfig.UseBROnCarriageReturn&&FCK.EditorDocument.queryCommandState(A)){var C=FCK.EditorWindow.getSelection();var D=C.focusNode;var E=FCKTools.GetElementAscensor(D,"LI");FCK.ToggleListItem(E,D);}else{FCK.Focus();FCK.EditorDocument.execCommand(A,false,B);};FCK.Events.FireEvent('OnSelectionChange');break;default:FCK.ExecuteNamedCommand(A,B);};};FCK.AttachToOnSelectionChange=function(A){this.Events.AttachEvent('OnSelectionChange',A);};FCK.Paste=function(){if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else return true;};FCK.InsertHtml=function(A){var B=FCKSelection.Delete();var C=B.getRangeAt(0);var D=C.createContextualFragment(A);var E=D.lastChild;C.insertNode(D);C.setEndAfter(E);C.setStartAfter(E);B.removeAllRanges();B=FCK.EditorWindow.getSelection();B.addRange(C);this.Focus();};FCK.InsertElement=function(A){var B=FCKSelection.Delete();var C=B.getRangeAt(0);C.insertNode(A);C.setEndAfter(A);C.setStartAfter(A);this.Focus();};FCK.PasteAsPlainText=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteAsText,'dialog/fck_paste.html',400,330,'PlainText');};FCK.GetClipboardHTML=function(){return '';};FCK.CreateLink=function(A){FCK.ExecuteNamedCommand('Unlink');if (A.length>0){var B='javascript:void(0);/*'+(new Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',B);var C=document.evaluate("//a[@href='"+B+"']",this.EditorDocument.body,null,9,null).singleNodeValue;if (C){C.href=A;return C;};};};FCK.ToggleListItem=function(A,B){var C=FCKTools.GetElementAscensor(A,"UL,OL");var D=FCK.EditorDocument.createRange();var E=FCK.EditorDocument.createElement("P");E.innerHTML=A.innerHTML;if (FCKTools.NodeIsEmpty(E)) E.innerHTML=GECKO_BOGUS;if (A.className&&A.className!='') E.className=A.className;var F=E;if (C.childNodes[0]==A){C.removeChild(A);D.setStartBefore(C);D.setEndBefore(C);}else if (C.childNodes[C.childNodes.length-1]==A){C.removeChild(A);D.setEndAfter(C);D.setStartAfter(C);}else{C=FCKTools.SplitNode(C,B,0);C.removeChild(C.childNodes[0]);D.setStartBefore(C);D.setEndBefore(C);};D.insertNode(E);if (C.childNodes.length==0) C.parentNode.removeChild(C);FCK.Selection.SetCursorPosition(F);};FCK.ListItemEnter=function(A,B,C){if (FCKTools.NodeIsEmpty(A)){FCK.ToggleListItem(A,B);return false;};return true;};FCK.ListItemBackSpace=function(A,B){var C=A.parentNode;if (FCKTools.NodeIsEmpty(A)&&(C.childNodes[0]==A)){var D=FCK.EditorDocument.createRange();var E=FCK.EditorDocument.createElement("P");if (FCKTools.NodeIsEmpty(E)) E.innerHTML=GECKO_BOGUS;C.removeChild(A);D.setStartBefore(C);D.setEndBefore(C);D.insertNode(E);if (C.childNodes.length==0) C.parentNode.removeChild(C);FCK.Selection.SetCursorPosition(E);return false;};return true;};FCK.Enter=function(){FCK.Selection.Delete();var A=FCK.EditorWindow.getSelection();var B=A.focusOffset;var C=A.focusNode;if (!C) return false;var D=FCKTools.GetElementAscensor(C,"LI");if (D){return FCK.ListItemEnter(D,C,B);}else if (C.nodeType==3){var E=FCKTools.GetParentBlockNode(C);var F=FCKTools.SplitNode(E?E:FCK.EditorDocument.body,C,B);FCK.Selection.SetCursorPosition(F);return false;}else{if (B>=C.childNodes.length){var G=FCK.EditorDocument.createElement("P");if (FCKTools.NodeIsEmpty(G)) G.innerHTML=GECKO_BOGUS;C.appendChild(G);FCK.Selection.SetCursorPosition(G);return false;};var F=FCKTools.SplitNode(C,C.childNodes[B]);FCK.Selection.SetCursorPosition(F);return false;};return true;};FCK.BackSpace=function(){var A=FCK.EditorWindow.getSelection();var B=A.focusNode;var C=A.focusOffset;var D=null;if (!B) return false;if (B.nodeName.toUpperCase()=="LI"){return FCK.ListItemBackSpace(B,C);}else{if (B.nodeType!=3){B=B.childNodes[C];C=0;};if (!B.previousSibling&&C<=0){D=B.parentNode;if (D&&D.previousSibling&&FCKRegexLib.BlockElements.test(D.previousSibling.nodeName)){if (FCKTools.NodeIsEmpty(D.previousSibling)){var E=FCK.EditorDocument.createRange();E.selectNode (D.previousSibling);E.deleteContents();return false;};};};};return true;}; |
var FCKSelection=new Object();FCK.Selection=FCKSelection; |
FCKSelection.GetType=function(){this._Type='Text';var oSel=FCK.EditorWindow.getSelection();if (oSel&&oSel.rangeCount==1){var oRange=oSel.getRangeAt(0);if (oRange.startContainer==oRange.endContainer&&(oRange.endOffset-oRange.startOffset)==1) this._Type='Control';};return this._Type;};FCKSelection.GetSelectedElement=function(){if (this.GetType()=='Control'){var oSel=FCK.EditorWindow.getSelection();return oSel.anchorNode.childNodes[oSel.anchorOffset];};};FCKSelection.GetParentElement=function(){if (this.GetType()=='Control') return FCKSelection.GetSelectedElement().parentElement;else{var oSel=FCK.EditorWindow.getSelection();if (oSel){var oNode=oSel.anchorNode;while (oNode&&oNode.nodeType!=1) oNode=oNode.parentNode;return oNode;};};};FCKSelection.SelectNode=function(element){FCK.Focus();var oRange=FCK.EditorDocument.createRange();oRange.selectNode(element);var oSel=FCK.EditorWindow.getSelection();oSel.removeAllRanges();oSel.addRange(oRange);};FCKSelection.Collapse=function(toStart){var oSel=FCK.EditorWindow.getSelection();if (toStart==null||toStart===true) oSel.collapseToStart();else oSel.collapseToEnd();};FCKSelection.HasAncestorNode=function(nodeTagName){var oContainer=this.GetSelectedElement();if (!oContainer&&FCK.EditorWindow){try { oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;}catch(e){};};while (oContainer){if (oContainer.tagName==nodeTagName) return true;oContainer=oContainer.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(nodeTagName){var oNode;var oContainer=this.GetSelectedElement();if (!oContainer) oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;while (oContainer){if (oContainer.tagName==nodeTagName) return oContainer;oContainer=oContainer.parentNode;};};FCKSelection.Delete=function(){var oSel=FCK.EditorWindow.getSelection();for (var i=0;i<oSel.rangeCount;i++){oSel.getRangeAt(i).deleteContents();};return oSel;} |
var FCKPanel=function(parentWindow){if (parentWindow) this.Window=parentWindow;else{this.Window=window;while (this.Window!=window.top){try{if (this.Window.parent.document.body.tagName=='FRAMESET') break;}catch (e){break;};this.Window=this.Window.parent;};};};FCKPanel.prototype.Create=function(){this._IFrame=this.Window.document.body.appendChild(this.Window.document.createElement('iframe'));this._IFrame.src='about:blank';this._IFrame.frameBorder='0';this._IFrame.scrolling='no';this._IFrame.style.left='0px';this._IFrame.style.top='0px';this._IFrame.width=10;this._IFrame.height=10;this._IFrame.style.position='absolute';this._IFrame.style.visibility='hidden';this._IFrame.IsFCKPanel=true;this._IFrame.Panel=this;this.Document=this._IFrame.contentWindow.document;this.Document.open();this.Document.write('<html><head></head><body><\/body><\/html>');this.Document.close();this.Document.body.style.margin=this.Document.body.style.padding='0px';if (this.StyleSheet) FCKTools.AppendStyleSheet(this.Document,this.StyleSheet);this.OuterDiv=this.Document.body.appendChild(this.Document.createElement('DIV'));this.OuterDiv.style.cssFloat='left';this.PanelDiv=this.OuterDiv.appendChild(this.Document.createElement('DIV'));this.PanelDiv.className='FCK_Panel';this.Created=true;};FCKPanel.prototype.Show=function(panelX,panelY,relElement,width,height,autoSize){if (!this.Created) this.Create();if (width!=null&&autoSize&&width<this.OuterDiv.offsetWidth) this.PanelDiv.style.width=width;if (height!=null&&autoSize&&height<this.PanelDiv.offsetHeight) this.PanelDiv.style.height=height+'px';var oPos=this.GetElementPosition(relElement);panelX+=oPos.X;panelY+=oPos.Y;if (panelX+this.OuterDiv.offsetWidth>this.Window.innerWidth){panelX-=panelX+this.OuterDiv.offsetWidth-this.Window.innerWidth;};this._IFrame.style.left=panelX+'px';this._IFrame.style.top=panelY+'px';function SetOnClickListener(targetWindow,targetFunction){try{if (targetWindow==null||(targetWindow.frameElement&&targetWindow.frameElement.IsFCKPanel)) return;targetWindow.document.addEventListener('click',targetFunction,false);}catch (e) {};for (var i=0;i<targetWindow.frames.length;i++) SetOnClickListener(targetWindow.frames[i],targetFunction);};SetOnClickListener(window.top,FCKPanelEventHandlers.OnDocumentClick);this._IFrame.width=this.OuterDiv.offsetWidth;this._IFrame.height=this.OuterDiv.offsetHeight;this._IFrame.style.visibility='';};FCKPanel.prototype.GetElementPosition=function(el){var c={ X:0,Y:0 };while (el){c.X+=el.offsetLeft;c.Y+=el.offsetTop;if (el.offsetParent==null&&el.ownerDocument.defaultView!=this.Window) el=el.ownerDocument.defaultView.frameElement;else el=el.offsetParent;};return c;};FCKPanel.prototype.Hide=function(){this.PanelDiv.style.overflow='visible';this._IFrame.style.visibility='hidden';};var FCKPanelEventHandlers=new Object();FCKPanelEventHandlers.OnDocumentClick=function(e){var oWindow=e.target.ownerDocument.defaultView;if (!oWindow.IsFCKPanel){function RemoveOnClickListener(targetWindow){if (targetWindow==null) return;try{if (targetWindow.frameElement&&targetWindow.frameElement.IsFCKPanel) targetWindow.frameElement.Panel.Hide();else targetWindow.document.removeEventListener('click',FCKPanelEventHandlers.OnDocumentClick,false);}catch (e) {};for (var i=0;i<targetWindow.frames.length;i++) RemoveOnClickListener(targetWindow.frames[i]);};RemoveOnClickListener(window.top);};} |
var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var oRow=FCKSelection.MoveToAncestorNode("TR");if (!oRow) return;var oNewRow=oRow.cloneNode(true);oRow.parentNode.insertBefore(oNewRow,oRow);FCKTableHandler.ClearRow(oRow);};FCKTableHandler.DeleteRows=function(row){if (!row) row=FCKSelection.MoveToAncestorNode("TR");if (!row) return;var oTable=FCKTools.GetElementAscensor(row,'TABLE');if (oTable.rows.length==1){FCKTableHandler.DeleteTable(oTable);return;};row.parentNode.removeChild(row);};FCKTableHandler.DeleteTable=function(table){if (!table) table=FCKSelection.MoveToAncestorNode("TABLE");if (!table) return;table.parentNode.removeChild(table);};FCKTableHandler.InsertColumn=function(){var oCell=FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oTable=FCKTools.GetElementAscensor(oCell,'TABLE');var iIndex=oCell.cellIndex+1;for (var i=0;i<oTable.rows.length;i++){var oRow=oTable.rows[i];if (oRow.cells.length<iIndex) continue;oCell=FCK.EditorDocument.createElement('TD');if (FCKBrowserInfo.IsGecko) oCell.innerHTML='<br _moz_editor_bogus_node="TRUE">';var oBaseCell=oRow.cells[iIndex];if (oBaseCell){oRow.insertBefore(oCell,oBaseCell);}else{oRow.appendChild(oCell);};};};FCKTableHandler.DeleteColumns=function(){var oCell=FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oTable=FCKTools.GetElementAscensor(oCell,'TABLE');var iIndex=oCell.cellIndex;for (var i=oTable.rows.length-1;i>=0;i--){var oRow=oTable.rows[i];if (iIndex==0&&oRow.cells.length==1){FCKTableHandler.DeleteRows(oRow);continue;};if (oRow.cells[iIndex]) oRow.removeChild(oRow.cells[iIndex]);};};FCKTableHandler.InsertCell=function(cell){var oCell=cell?cell:FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oNewCell=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko) oNewCell.innerHTML='<br _moz_editor_bogus_node="TRUE">';if (oCell.cellIndex==oCell.parentNode.cells.lenght-1){oCell.parentNode.appendChild(oNewCell);}else{oCell.parentNode.insertBefore(oNewCell,oCell.nextSibling);};return oNewCell;};FCKTableHandler.DeleteCell=function(cell){if (cell.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(cell,'TR'));return;};cell.parentNode.removeChild(cell);};FCKTableHandler.DeleteCells=function(){var aCells=FCKTableHandler.GetSelectedCells();for (var i=aCells.length-1;i>=0;i--){FCKTableHandler.DeleteCell(aCells[i]);};};FCKTableHandler.MergeCells=function(){var aCells=FCKTableHandler.GetSelectedCells();if (aCells.length<2) return;if (aCells[0].parentNode!=aCells[aCells.length-1].parentNode) return;var iColSpan=isNaN(aCells[0].colSpan)?1:aCells[0].colSpan;var sHtml='';for (var i=aCells.length-1;i>0;i--){iColSpan+=isNaN(aCells[i].colSpan)?1:aCells[i].colSpan;sHtml=aCells[i].innerHTML+sHtml;FCKTableHandler.DeleteCell(aCells[i]);};aCells[0].colSpan=iColSpan;aCells[0].innerHTML+=sHtml;};FCKTableHandler.SplitCell=function(){var aCells=FCKTableHandler.GetSelectedCells();if (aCells.length!=1) return;var aMap=this._CreateTableMap(aCells[0].parentNode.parentNode);var iCellIndex=FCKTableHandler._GetCellIndexSpan(aMap,aCells[0].parentNode.rowIndex,aCells[0]);var aCollCells=this._GetCollumnCells(aMap,iCellIndex);for (var i=0;i<aCollCells.length;i++){if (aCollCells[i]==aCells[0]){var oNewCell=this.InsertCell(aCells[0]);if (!isNaN(aCells[0].rowSpan)&&aCells[0].rowSpan>1) oNewCell.rowSpan=aCells[0].rowSpan;}else{if (isNaN(aCollCells[i].colSpan)) aCollCells[i].colSpan=2;else aCollCells[i].colSpan+=1;};};};FCKTableHandler._GetCellIndexSpan=function(tableMap,rowIndex,cell){if (tableMap.length<rowIndex+1) return;var oRow=tableMap[rowIndex];for (var c=0;c<oRow.length;c++){if (oRow[c]==cell) return c;};};FCKTableHandler._GetCollumnCells=function(tableMap,collumnIndex){var aCollCells=new Array();for (var r=0;r<tableMap.length;r++){var oCell=tableMap[r][collumnIndex];if (oCell&&(aCollCells.length==0||aCollCells[aCollCells.length-1]!=oCell)) aCollCells[aCollCells.length]=oCell;};return aCollCells;};FCKTableHandler._CreateTableMap=function(table){var aRows=table.rows;var r=-1;var aMap=new Array();for (var i=0;i<aRows.length;i++){r++;if (!aMap[r]) aMap[r]=new Array();var c=-1;for (var j=0;j<aRows[i].cells.length;j++){var oCell=aRows[i].cells[j];c++;while (aMap[r][c]) c++;var iColSpan=isNaN(oCell.colSpan)?1:oCell.colSpan;var iRowSpan=isNaN(oCell.rowSpan)?1:oCell.rowSpan;for (var rs=0;rs<iRowSpan;rs++){if (!aMap[r+rs]) aMap[r+rs]=new Array();for (var cs=0;cs<iColSpan;cs++){aMap[r+rs][c+cs]=aRows[i].cells[j];};};c+=iColSpan-1;};};return aMap;};FCKTableHandler.ClearRow=function(tr){var aCells=tr.cells;for (var i=0;i<aCells.length;i++){if (FCKBrowserInfo.IsGecko) aCells[i].innerHTML='<br _moz_editor_bogus_node="TRUE">';else aCells[i].innerHTML='';};} |
FCKTableHandler.GetSelectedCells=function(){var aCells=new Array();var oSelection=FCK.EditorWindow.getSelection();if (oSelection.rangeCount==1&&oSelection.anchorNode.nodeType==3){var oParent=FCKTools.GetElementAscensor(oSelection.anchorNode,'TD');if (oParent){aCells[0]=oParent;return aCells;};};for (var i=0;i<oSelection.rangeCount;i++){var oRange=oSelection.getRangeAt(i);var oCell=oRange.startContainer.childNodes[oRange.startOffset];if (oCell.tagName=='TD') aCells[aCells.length]=oCell;};return aCells;}; |
var FCKXml;if (!(FCKXml=NS.FCKXml)){FCKXml=NS.FCKXml=function(){};FCKXml.prototype.LoadUrl=function(urlToCall){var oFCKXml=this;var oXmlHttp=FCKTools.CreateXmlObject('XmlHttp');oXmlHttp.open("GET",urlToCall,false);oXmlHttp.send(null);if (oXmlHttp.status==200) this.DOMDocument=oXmlHttp.responseXML;else if (oXmlHttp.status==0&&oXmlHttp.readyState==4) this.DOMDocument=oXmlHttp.responseXML;else alert('Error loading "'+urlToCall+'"');};FCKXml.prototype.SelectNodes=function(xpath,contextNode){var aNodeArray=new Array();var xPathResult=this.DOMDocument.evaluate(xpath,contextNode?contextNode:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if (xPathResult){var oNode=xPathResult.iterateNext();while(oNode){aNodeArray[aNodeArray.length]=oNode;oNode=xPathResult.iterateNext();};};return aNodeArray;};FCKXml.prototype.SelectSingleNode=function(xpath,contextNode){var xPathResult=this.DOMDocument.evaluate(xpath,contextNode?contextNode:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),9,null);if (xPathResult&&xPathResult.singleNodeValue) return xPathResult.singleNodeValue;else return null;};} |
var FCKStyleDef=function(name,element){this.Name=name;this.Element=element.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new Object();};FCKStyleDef.prototype.AddAttribute=function(name,value){this.Attributes[name]=value;};FCKStyleDef.prototype.GetOpenerTag=function(){var s='<'+this.Element;for (var a in this.Attributes) s+=' '+a+'="'+this.Attributes[a]+'"';return s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return '</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if (FCKSelection.GetType()=='Control') this._RemoveMe(FCKSelection.GetSelectedElement());else this._RemoveMe(FCKSelection.GetParentElement());} |
FCKStyleDef.prototype.ApplyToSelection=function(){if (FCKSelection.GetType()=='Text'&&!this.IsObjectElement){var oSelection=FCK.EditorWindow.getSelection();var e=FCK.EditorDocument.createElement(this.Element);for (var i=0;i<oSelection.rangeCount;i++){e.appendChild(oSelection.getRangeAt(i).extractContents());};this._AddAttributes(e);this._RemoveDuplicates(e);var oRange=oSelection.getRangeAt(0);oRange.insertNode(e);}else{var oControl=FCKSelection.GetSelectedElement();if (oControl.tagName==this.Element) this._AddAttributes(oControl);};};FCKStyleDef.prototype._AddAttributes=function(targetElement){for (var a in this.Attributes) targetElement.setAttribute(a,this.Attributes[a],0);};FCKStyleDef.prototype._RemoveDuplicates=function(parent){for (var i=0;i<parent.childNodes.length;i++){var oChild=parent.childNodes[i];if (oChild.nodeType!=1) continue;this._RemoveDuplicates(oChild);if (this.IsEqual(oChild)) FCKTools.RemoveOuterTags(oChild);};};FCKStyleDef.prototype.IsEqual=function(e){if (e.tagName!=this.Element) return false;for (var a in this.Attributes){if (e.getAttribute(a)!=this.Attributes[a]) return false;};return true;};FCKStyleDef.prototype._RemoveMe=function(elementToCheck){if (!elementToCheck) return;var oParent=elementToCheck.parentNode;if (elementToCheck.nodeType==1&&this.IsEqual(elementToCheck)){if (this.IsObjectElement){for (var a in this.Attributes) elementToCheck.removeAttribute(a,0);return;}else FCKTools.RemoveOuterTags(elementToCheck);};this._RemoveMe(oParent);} |
var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(stylesXmlUrl){var oXml=new FCKXml();oXml.LoadUrl(stylesXmlUrl);var aStyleNodes=oXml.SelectNodes('Styles/Style');for (var i=0;i<aStyleNodes.length;i++){var sElement=aStyleNodes[i].attributes.getNamedItem('element').value.toUpperCase();var oStyleDef=new FCKStyleDef(aStyleNodes[i].attributes.getNamedItem('name').value,sElement);if (oStyleDef.IsObjectElement) this.HasObjectElements=true;var aAttNodes=oXml.SelectNodes('Attribute',aStyleNodes[i]);for (var j=0;j<aAttNodes.length;j++){var sAttName=aAttNodes[j].attributes.getNamedItem('name').value;var sAttValue=aAttNodes[j].attributes.getNamedItem('value').value;if (sAttName.toLowerCase()=='style'){var oTempE=document.createElement('SPAN');oTempE.style.cssText=sAttValue;sAttValue=oTempE.style.cssText;};oStyleDef.AddAttribute(sAttName,sAttValue);};this.Styles[oStyleDef.Name]=oStyleDef;var aGroup=this.StyleGroups[sElement];if (aGroup==null){this.StyleGroups[sElement]=new Array();aGroup=this.StyleGroups[sElement];};aGroup[aGroup.length]=oStyleDef;};this.Loaded=true;} |
var FCKNamedCommand=function(commandName){this.Name=commandName;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);}; |
var FCKDialogCommand=function(name,title,url,width,height,getStateFunction,getStateParam){this.Name=name;this.Title=title;this.Url=url;this.Width=width;this.Height=height;this.GetStateFunction=getStateFunction;this.GetStateParam=getStateParam;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else return FCK_TRISTATE_OFF;};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(fontName){if (fontName==null||fontName==""){}else FCK.ExecuteNamedCommand('FontName',fontName);};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(fontSize){if (typeof(fontSize)=='string') fontSize=parseInt(fontSize);if (fontSize==null||fontSize==''){FCK.ExecuteNamedCommand('FontSize',3);}else FCK.ExecuteNamedCommand('FontSize',fontSize);};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(formatName){if (formatName==null||formatName=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else FCK.ExecuteNamedCommand('FormatBlock','<'+formatName+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var oForm=FCK.LinkedField.form;if (typeof(oForm.onsubmit)=='function'){var bRet=oForm.onsubmit();if (bRet!=null&&bRet===false) return;};oForm.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsGecko){var iWidth=screen.width*0.65;var iHeight=screen.height*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',iWidth,iHeight,null,null,true);}else FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Undo();else FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.Typing||FCKUndo.CurrentIndex>0?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Undo');};var FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Redo();else FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (!FCKUndo.Typing&&FCKUndo.CurrentIndex<(FCKUndo.SavedData.length-1)?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Redo');} |
FCKSelection.GetType=function(){this._Type='Text';var A=FCK.EditorWindow.getSelection();if (A&&A.rangeCount==1){var B=A.getRangeAt(0);if (B.startContainer==B.endContainer&&(B.endOffset-B.startOffset)==1) this._Type='Control';};return this._Type;};FCKSelection.GetSelectedElement=function(){if (this.GetType()=='Control'){var A=FCK.EditorWindow.getSelection();return A.anchorNode.childNodes[A.anchorOffset];};};FCKSelection.GetParentElement=function(){if (this.GetType()=='Control') return FCKSelection.GetSelectedElement().parentElement;else{var A=FCK.EditorWindow.getSelection();if (A){var B=A.anchorNode;while (B&&B.nodeType!=1) B=B.parentNode;return B;};};};FCKSelection.SelectNode=function(A){FCK.Focus();var B=FCK.EditorDocument.createRange();B.selectNode(A);var C=FCK.EditorWindow.getSelection();C.removeAllRanges();C.addRange(B);};FCKSelection.Collapse=function(A){var B=FCK.EditorWindow.getSelection();if (A==null||A===true) B.collapseToStart();else B.collapseToEnd();};FCKSelection.HasAncestorNode=function(A){var B=this.GetSelectedElement();if (!B&&FCK.EditorWindow){try { B=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;}catch(e){};};while (B){if (B.nodeType==1&&B.tagName==A) return true;B=B.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(A){var B;var C=this.GetSelectedElement();if (!C) C=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;while (C){if (C.tagName==A) return C;C=C.parentNode;};return null;};FCKSelection.Delete=function(){var A=FCK.EditorWindow.getSelection();for (var i=0;i<A.rangeCount;i++){A.getRangeAt(i).deleteContents();};return A;};FCKSelection.SetCursorPosition=function (A,B){if (typeof B=="undefined") B=0;var C=FCK.EditorWindow.getSelection();var D=FCK.EditorDocument.createRange();D.setStart(A,B);D.collapse(true);C.removeAllRanges();C.addRange(D);if (A.scrollIntoView) A.scrollIntoView(false);}; |
var FCKPanel=function(A){if (A) this.Window=A;else{this.Window=window;while (this.Window!=window.top){try{if (this.Window.parent.document.body.tagName=='FRAMESET') break;}catch (e){break;};this.Window=this.Window.parent;};};};FCKPanel.prototype.Create=function(){this._IFrame=this.Window.document.createElement('iframe');this._IFrame.src='about:blank';this._IFrame.frameBorder='0';this._IFrame.scrolling='no';this._IFrame.style.left='0px';this._IFrame.style.top='0px';this._IFrame.width=10;this._IFrame.height=10;this._IFrame.style.position='absolute';this._IFrame.style.visibility='hidden';this._IFrame.IsFCKPanel=true;this._IFrame.Panel=this;this.Window.document.body.appendChild(this._IFrame);this.Document=this._IFrame.contentWindow.document;this.Document.open();this.Document.write('<html><head></head><body><\/body><\/html>');this.Document.close();this.Document.body.style.margin=this.Document.body.style.padding='0px';if (this.StyleSheet) FCKTools.AppendStyleSheet(this.Document,this.StyleSheet);this.OuterDiv=this.Document.body.appendChild(this.Document.createElement('DIV'));this.OuterDiv.style.cssFloat='left';this.PanelDiv=this.OuterDiv.appendChild(this.Document.createElement('DIV'));this.PanelDiv.className='FCK_Panel';this.Created=true;};FCKPanel.prototype.Show=function(A,B,C,D,E,F){if (!this.Created) this.Create();if (D!=null&&F&&D<this.OuterDiv.offsetWidth) this.PanelDiv.style.width=D;if (E!=null&&F&&E<this.PanelDiv.offsetHeight) this.PanelDiv.style.height=E+'px';var G=this.GetElementPosition(C);A+=G.X;B+=G.Y;if (A+this.OuterDiv.offsetWidth>this.Window.innerWidth){A-=A+this.OuterDiv.offsetWidth-this.Window.innerWidth;};this._IFrame.style.left=A+'px';this._IFrame.style.top=B+'px';function SetOnClickListener(targetWindow,targetFunction){try{if (targetWindow==null||(targetWindow.frameElement&&targetWindow.frameElement.IsFCKPanel)) return;targetWindow.document.addEventListener('click',targetFunction,false);}catch (e) {};for (var i=0;i<targetWindow.frames.length;i++) SetOnClickListener(targetWindow.frames[i],targetFunction);};SetOnClickListener(window.top,FCKPanelEventHandlers.OnDocumentClick);this._IFrame.width=this.OuterDiv.offsetWidth;this._IFrame.height=this.OuterDiv.offsetHeight;this._IFrame.style.visibility='';};FCKPanel.prototype.GetElementPosition=function(A){var c={ X:0,Y:0 };while (A){c.X+=A.offsetLeft;c.Y+=A.offsetTop;if (A.offsetParent==null&&A.ownerDocument.defaultView!=this.Window) A=A.ownerDocument.defaultView.frameElement;else A=A.offsetParent;};return c;};FCKPanel.prototype.Hide=function(){this.PanelDiv.style.overflow='visible';this._IFrame.style.visibility='hidden';};var FCKPanelEventHandlers=new Object();FCKPanelEventHandlers.OnDocumentClick=function(e){var A=e.target.ownerDocument.defaultView;if (!A.IsFCKPanel){function RemoveOnClickListener(targetWindow){if (targetWindow==null) return;try{if (targetWindow.frameElement&&targetWindow.frameElement.IsFCKPanel) targetWindow.frameElement.Panel.Hide();else targetWindow.document.removeEventListener('click',FCKPanelEventHandlers.OnDocumentClick,false);}catch (e) {};for (var i=0;i<targetWindow.frames.length;i++) RemoveOnClickListener(targetWindow.frames[i]);};RemoveOnClickListener(window.top);};} |
var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var B=A.cloneNode(true);A.parentNode.insertBefore(B,A);FCKTableHandler.ClearRow(A);};FCKTableHandler.DeleteRows=function(A){if (!A) A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');if (B.rows.length==1){FCKTableHandler.DeleteTable(B);return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteTable=function(A){if (!A) A=FCKSelection.MoveToAncestorNode("TABLE");if (!A) return;A.parentNode.removeChild(A);};FCKTableHandler.InsertColumn=function(){var A=FCKSelection.MoveToAncestorNode("TD");if (!A) A=FCKSelection.MoveToAncestorNode("TH");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex+1;for (var i=0;i<B.rows.length;i++){var D=B.rows[i];if (D.cells.length<C) continue;A=D.cells[C-1].cloneNode(false);if (FCKBrowserInfo.IsGecko) A.innerHTML=FCKBrowserInfo.IsGecko?GECKO_BOGUS:'';var E=D.cells[C];if (E) D.insertBefore(A,E);else D.appendChild(A);};};FCKTableHandler.DeleteColumns=function(){var A=FCKSelection.MoveToAncestorNode("TD");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex;for (var i=B.rows.length-1;i>=0;i--){var D=B.rows[i];if (C==0&&D.cells.length==1){FCKTableHandler.DeleteRows(D);continue;};if (D.cells[C]) D.removeChild(D.cells[C]);};};FCKTableHandler.InsertCell=function(A){var B=A?A:FCKSelection.MoveToAncestorNode("TD");if (!B) return;var C=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko) C.innerHTML=GECKO_BOGUS;if (B.cellIndex==B.parentNode.cells.lenght-1){B.parentNode.appendChild(C);}else{B.parentNode.insertBefore(C,B.nextSibling);};return C;};FCKTableHandler.DeleteCell=function(A){if (A.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(A,'TR'));return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteCells=function(){var A=FCKTableHandler.GetSelectedCells();for (var i=A.length-1;i>=0;i--){FCKTableHandler.DeleteCell(A[i]);};};FCKTableHandler.MergeCells=function(){var A=FCKTableHandler.GetSelectedCells();if (A.length<2) return;if (A[0].parentNode!=A[A.length-1].parentNode) return;var B=isNaN(A[0].colSpan)?1:A[0].colSpan;var C='';for (var i=A.length-1;i>0;i--){B+=isNaN(A[i].colSpan)?1:A[i].colSpan;C=A[i].innerHTML+C;FCKTableHandler.DeleteCell(A[i]);};A[0].colSpan=B;A[0].innerHTML+=C;};FCKTableHandler.SplitCell=function(){var A=FCKTableHandler.GetSelectedCells();if (A.length!=1) return;var B=this._CreateTableMap(A[0].parentNode.parentNode);var C=FCKTableHandler._GetCellIndexSpan(B,A[0].parentNode.rowIndex,A[0]);var D=this._GetCollumnCells(B,C);for (var i=0;i<D.length;i++){if (D[i]==A[0]){var E=this.InsertCell(A[0]);if (!isNaN(A[0].rowSpan)&&A[0].rowSpan>1) E.rowSpan=A[0].rowSpan;}else{if (isNaN(D[i].colSpan)) D[i].colSpan=2;else D[i].colSpan+=1;};};};FCKTableHandler._GetCellIndexSpan=function(A,B,C){if (A.length<B+1) return null;var D=A[B];for (var c=0;c<D.length;c++){if (D[c]==C) return c;};return null;};FCKTableHandler._GetCollumnCells=function(A,B){var C=new Array();for (var r=0;r<A.length;r++){var D=A[r][B];if (D&&(C.length==0||C[C.length-1]!=D)) C[C.length]=D;};return C;};FCKTableHandler._CreateTableMap=function(A){var B=A.rows;var r=-1;var C=new Array();for (var i=0;i<B.length;i++){r++;if (!C[r]) C[r]=new Array();var c=-1;for (var j=0;j<B[i].cells.length;j++){var D=B[i].cells[j];c++;while (C[r][c]) c++;var E=isNaN(D.colSpan)?1:D.colSpan;var F=isNaN(D.rowSpan)?1:D.rowSpan;for (var G=0;G<F;G++){if (!C[r+G]) C[r+G]=new Array();for (var H=0;H<E;H++){C[r+G][c+H]=B[i].cells[j];};};c+=E-1;};};return C;};FCKTableHandler.ClearRow=function(A){var B=A.cells;for (var i=0;i<B.length;i++){if (FCKBrowserInfo.IsGecko) B[i].innerHTML=GECKO_BOGUS;else B[i].innerHTML='';};} |
FCKTableHandler.GetSelectedCells=function(){var A=new Array();var B=FCK.EditorWindow.getSelection();if (B.rangeCount==1&&B.anchorNode.nodeType==3){var C=FCKTools.GetElementAscensor(B.anchorNode,'TD');if (C){A[0]=C;return A;};};for (var i=0;i<B.rangeCount;i++){var D=B.getRangeAt(i);var E=D.startContainer.childNodes[D.startOffset];if (E.tagName=='TD') A[A.length]=E;};return A;}; |
var FCKXml;if (!(FCKXml=NS.FCKXml)){FCKXml=NS.FCKXml=function(){};FCKXml.prototype.LoadUrl=function(A){var B=this;var C=FCKTools.CreateXmlObject('XmlHttp');C.open("GET",A,false);C.send(null);if (C.status==200||C.status==304) this.DOMDocument=C.responseXML;else if (C.status==0&&C.readyState==4) this.DOMDocument=C.responseXML;else alert('Error loading "'+A+'"');};FCKXml.prototype.SelectNodes=function(A,B){var C=new Array();var D=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if (D){var E=D.iterateNext();while(E){C[C.length]=E;E=D.iterateNext();};};return C;};FCKXml.prototype.SelectSingleNode=function(A,B){var C=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),9,null);if (C&&C.singleNodeValue) return C.singleNodeValue;else return null;};} |
var FCKStyleDef=function(A,B){this.Name=A;this.Element=B.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new Object();};FCKStyleDef.prototype.AddAttribute=function(A,B){this.Attributes[A]=B;};FCKStyleDef.prototype.GetOpenerTag=function(){var s='<'+this.Element;for (var a in this.Attributes) s+=' '+a+'="'+this.Attributes[a]+'"';return s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return '</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if (FCKSelection.GetType()=='Control') this._RemoveMe(FCKSelection.GetSelectedElement());else this._RemoveMe(FCKSelection.GetParentElement());} |
FCKStyleDef.prototype.ApplyToSelection=function(){if (FCKSelection.GetType()=='Text'&&!this.IsObjectElement){var A=FCK.EditorWindow.getSelection();var e=FCK.EditorDocument.createElement(this.Element);for (var i=0;i<A.rangeCount;i++){e.appendChild(A.getRangeAt(i).extractContents());};this._AddAttributes(e);this._RemoveDuplicates(e);var B=A.getRangeAt(0);B.insertNode(e);}else{var C=FCKSelection.GetSelectedElement();if (C.tagName==this.Element) this._AddAttributes(C);};};FCKStyleDef.prototype._AddAttributes=function(A){for (var a in this.Attributes) A.setAttribute(a,this.Attributes[a],0);};FCKStyleDef.prototype._RemoveDuplicates=function(A){for (var i=0;i<A.childNodes.length;i++){var B=A.childNodes[i];if (B.nodeType!=1) continue;this._RemoveDuplicates(B);if (this.IsEqual(B)) FCKTools.RemoveOuterTags(B);};};FCKStyleDef.prototype.IsEqual=function(e){if (e.tagName!=this.Element) return false;for (var a in this.Attributes){if (e.getAttribute(a)!=this.Attributes[a]) return false;};return true;};FCKStyleDef.prototype._RemoveMe=function(A){if (!A) return;var B=A.parentNode;if (A.nodeType==1&&this.IsEqual(A)){if (this.IsObjectElement){for (var a in this.Attributes) A.removeAttribute(a,0);return;}else FCKTools.RemoveOuterTags(A);};this._RemoveMe(B);} |
var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(A){var B=new FCKXml();B.LoadUrl(A);var C=B.SelectNodes('Styles/Style');for (var i=0;i<C.length;i++){var D=C[i].attributes.getNamedItem('element').value.toUpperCase();var E=new FCKStyleDef(C[i].attributes.getNamedItem('name').value,D);if (E.IsObjectElement) this.HasObjectElements=true;var F=B.SelectNodes('Attribute',C[i]);for (var j=0;j<F.length;j++){var G=F[j].attributes.getNamedItem('name').value;var H=F[j].attributes.getNamedItem('value').value;if (G.toLowerCase()=='style'){var I=document.createElement('SPAN');I.style.cssText=H;H=I.style.cssText;};E.AddAttribute(G,H);};this.Styles[E.Name]=E;var J=this.StyleGroups[D];if (J==null){this.StyleGroups[D]=new Array();J=this.StyleGroups[D];};J[J.length]=E;};this.Loaded=true;} |
var FCKNamedCommand=function(A){this.Name=A;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);}; |
var FCKDialogCommand=function(A,B,C,D,E,F,G){this.Name=A;this.Title=B;this.Url=C;this.Width=D;this.Height=E;this.GetStateFunction=F;this.GetStateParam=G;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else return FCK_TRISTATE_OFF;};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(A){if (A==null||A==""){}else FCK.ExecuteNamedCommand('FontName',A);};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(A){if (typeof(A)=='string') A=parseInt(A);if (A==null||A==''){FCK.ExecuteNamedCommand('FontSize',3);}else FCK.ExecuteNamedCommand('FontSize',A);};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(A){if (A==null||A=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else FCK.ExecuteNamedCommand('FormatBlock','<'+A+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var A=FCK.LinkedField.form;if (typeof(A.onsubmit)=='function'){var B=A.onsubmit();if (B!=null&&B===false) return;};A.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');FCKUndo.Typing=true;};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsGecko){var A=FCKConfig.ScreenWidth*0.65;var B=FCKConfig.ScreenHeight*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',A,B,null,null,true);}else FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Undo();else FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.CheckUndoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Undo');};var FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Redo();else FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.CheckRedoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Redo');} |
var FCKSpellCheckCommand=function(){this.Name='SpellCheck';this.IsEnabled=(FCKConfig.SpellChecker=='SpellerPages');};FCKSpellCheckCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_SpellCheck','Spell Check','dialog/fck_spellerpages.html',440,480);};FCKSpellCheckCommand.prototype.GetState=function(){return this.IsEnabled?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;} |
var FCKTextColorCommand=function(type){this.Name=type=='ForeColor'?'TextColor':'BGColor';this.Type=type;this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._CreatePanelBody(this._Panel.Document,this._Panel.PanelDiv);};FCKTextColorCommand.prototype.Execute=function(panelX,panelY,relElement){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(panelX,panelY,relElement);};FCKTextColorCommand.prototype.SetColor=function(color){if (FCK._ActiveColorPanelType=='ForeColor') FCK.ExecuteNamedCommand('ForeColor',color);else if (FCKBrowserInfo.IsGecko) FCK.ExecuteNamedCommand('hilitecolor',color);else FCK.ExecuteNamedCommand('BackColor',color);delete FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() { this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() { this.className='ColorDeselected';};function FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(targetDocument,targetDiv){function CreateSelectionDiv(){var oDiv=targetDocument.createElement("DIV");oDiv.className='ColorDeselected';oDiv.onmouseover=FCKTextColorCommand_OnMouseOver;oDiv.onmouseout=FCKTextColorCommand_OnMouseOut;return oDiv;};var oTable=targetDiv.appendChild(targetDocument.createElement("TABLE"));oTable.style.tableLayout='fixed';oTable.cellPadding=0;oTable.cellSpacing=0;oTable.border=0;oTable.width=150;var oCell=oTable.insertRow(-1).insertCell(-1);oCell.colSpan=8;var oDiv=oCell.appendChild(CreateSelectionDiv());oDiv.innerHTML='<table cellspacing="0" cellpadding="0" width="100%" border="0">\ <tr>\ <td><div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #000000"></div></div></td>\ <td nowrap width="100%" align="center" unselectable="on">'+FCKLang.ColorAutomatic+'</td>\ </tr>\ </table>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_AutoOnClick;var aColors=FCKConfig.FontColors.toString().split(',');var iCounter=0;while (iCounter<aColors.length){var oRow=oTable.insertRow(-1);for (var i=0;i<8&&iCounter<aColors.length;i++,iCounter++){var oDiv=oRow.insertCell(-1).appendChild(CreateSelectionDiv());oDiv.Color=aColors[iCounter];oDiv.innerHTML='<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #'+aColors[iCounter]+'"></div></div>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_OnClick;};};var oCell=oTable.insertRow(-1).insertCell(-1);oCell.colSpan=8;var oDiv=oCell.appendChild(CreateSelectionDiv());oDiv.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_MoreOnClick;} |
var FCKTextColorCommand=function(A){this.Name=A=='ForeColor'?'TextColor':'BGColor';this.Type=A;this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._CreatePanelBody(this._Panel.Document,this._Panel.PanelDiv);};FCKTextColorCommand.prototype.Execute=function(A,B,C){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(A,B,C);};FCKTextColorCommand.prototype.SetColor=function(A){if (FCK._ActiveColorPanelType=='ForeColor') FCK.ExecuteNamedCommand('ForeColor',A);else if (FCKBrowserInfo.IsGecko) FCK.ExecuteNamedCommand('hilitecolor',A);else FCK.ExecuteNamedCommand('BackColor',A);delete FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() { this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() { this.className='ColorDeselected';};function FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(A,B){function CreateSelectionDiv(){var C=A.createElement("DIV");C.className='ColorDeselected';C.onmouseover=FCKTextColorCommand_OnMouseOver;C.onmouseout=FCKTextColorCommand_OnMouseOut;return C;};var D=B.appendChild(A.createElement("TABLE"));D.style.tableLayout='fixed';D.cellPadding=0;D.cellSpacing=0;D.border=0;D.width=150;var E=D.insertRow(-1).insertCell(-1);E.colSpan=8;var C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table cellspacing="0" cellpadding="0" width="100%" border="0">\<tr>\<td><div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #000000"></div></div></td>\<td nowrap width="100%" align="center" unselectable="on">' + FCKLang.ColorAutomatic + '</td>\</tr>\</table>';C.Command=this;C.onclick=FCKTextColorCommand_AutoOnClick;var G=FCKConfig.FontColors.toString().split(',');var H=0;while (H<G.length){var I=D.insertRow(-1);for (var i=0;i<8&&H<G.length;i++,H++){C=I.insertCell(-1).appendChild(CreateSelectionDiv());C.Color=G[H];C.innerHTML='<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #'+G[H]+'"></div></div>';C.Command=this;C.onclick=FCKTextColorCommand_OnClick;};};E=D.insertRow(-1).insertCell(-1);E.colSpan=8;C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';C.Command=this;C.onclick=FCKTextColorCommand_MoreOnClick;} |
var FCKPastePlainTextCommand=function(){this.Name='PasteText';};FCKPastePlainTextCommand.prototype.Execute=function(){FCK.PasteAsPlainText();};FCKPastePlainTextCommand.prototype.GetState=function(){return FCK.GetNamedCommandState('Paste');}; |
var FCKPasteWordCommand=function(){this.Name='PasteWord';};FCKPasteWordCommand.prototype.Execute=function(){FCK.PasteFromWord();};FCKPasteWordCommand.prototype.GetState=function(){if (FCKConfig.ForcePasteAsPlainText) return FCK_TRISTATE_DISABLED;else return FCK.GetNamedCommandState('Paste');}; |
var FCKTableCommand=function(command){this.Name=command;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch (this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case 'TableDeleteRows':FCKTableHandler.DeleteRows();break;case 'TableInsertColumn':FCKTableHandler.InsertColumn();break;case 'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case 'TableInsertCell':FCKTableHandler.InsertCell();break;case 'TableDeleteCells':FCKTableHandler.DeleteCells();break;case 'TableMergeCells':FCKTableHandler.MergeCells();break;case 'TableSplitCell':FCKTableHandler.SplitCell();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));};};FCKTableCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;} |
var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(styleName,styleComboItem){if (styleComboItem.Selected) styleComboItem.Style.RemoveFromSelection();else styleComboItem.Style.ApplyToSelection();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){var oSelection=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var e=FCKSelection.GetSelectedElement();if (e) return this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;else FCK_TRISTATE_OFF;}else return FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var aActiveStyles=new Array();if (FCKSelection.GetType()=='Control') this._CheckStyle(FCKSelection.GetSelectedElement(),aActiveStyles,false);else this._CheckStyle(FCKSelection.GetParentElement(),aActiveStyles,true);return aActiveStyles;};FCKStyleCommand.prototype._CheckStyle=function(element,targetArray,checkParent){if (!element) return;if (element.nodeType==1){var aStyleGroup=this.StylesLoader.StyleGroups[element.tagName];if (aStyleGroup){for (var i=0;i<aStyleGroup.length;i++){if (aStyleGroup[i].IsEqual(element)) targetArray[targetArray.length]=aStyleGroup[i];};};};if (checkParent) this._CheckStyle(element.parentNode,targetArray,checkParent);} |
var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new Object();FCKCommands.RegisterCommand=function(commandName,command){this.LoadedCommands[commandName]=command;};FCKCommands.GetCommand=function(commandName){var oCommand=FCKCommands.LoadedCommands[commandName];if (oCommand) return oCommand;switch (commandName){case 'DocProps':oCommand=new FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case 'Templates':oCommand=new FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case 'Link':oCommand=new FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case 'Anchor':oCommand=new FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case 'BulletedList':oCommand=new FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case 'NumberedList':oCommand=new FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case 'About':oCommand=new FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case 'Find':oCommand=new FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case 'Replace':oCommand=new FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case 'Image':oCommand=new FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case 'Flash':oCommand=new FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case 'SpecialChar':oCommand=new FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,300);break;case 'Smiley':oCommand=new FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case 'Table':oCommand=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',400,250);break;case 'TableProp':oCommand=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case 'TableCellProp':oCommand=new FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case 'UniversalKey':oCommand=new FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case 'Style':oCommand=new FCKStyleCommand();break;case 'FontName':oCommand=new FCKFontNameCommand();break;case 'FontSize':oCommand=new FCKFontSizeCommand();break;case 'FontFormat':oCommand=new FCKFormatBlockCommand();break;case 'Source':oCommand=new FCKSourceCommand();break;case 'Preview':oCommand=new FCKPreviewCommand();break;case 'Save':oCommand=new FCKSaveCommand();break;case 'NewPage':oCommand=new FCKNewPageCommand();break;case 'TextColor':oCommand=new FCKTextColorCommand('ForeColor');break;case 'BGColor':oCommand=new FCKTextColorCommand('BackColor');break;case 'PasteText':oCommand=new FCKPastePlainTextCommand();break;case 'PasteWord':oCommand=new FCKPasteWordCommand();break;case 'TableInsertRow':oCommand=new FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':oCommand=new FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':oCommand=new FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':oCommand=new FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':oCommand=new FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':oCommand=new FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':oCommand=new FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':oCommand=new FCKTableCommand('TableSplitCell');break;case 'Form':oCommand=new FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case 'Checkbox':oCommand=new FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case 'Radio':oCommand=new FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case 'TextField':oCommand=new FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case 'Textarea':oCommand=new FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case 'HiddenField':oCommand=new FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case 'Button':oCommand=new FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case 'Select':oCommand=new FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case 'ImageButton':oCommand=new FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case 'SpellCheck':oCommand=new FCKSpellCheckCommand();break;case 'Undo':oCommand=new FCKUndoCommand();break;case 'Redo':oCommand=new FCKRedoCommand();break;case 'Undefined':oCommand=new FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(commandName)) oCommand=new FCKNamedCommand(commandName);else{alert(FCKLang.UnknownCommand.replace(/%1/g,commandName));return;};};FCKCommands.LoadedCommands[commandName]=oCommand;return oCommand;};FCKCommands.GetFullPageState=function(){return FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}; |
var FCKToolbarButton=function(commandName,label,tooltip,style,sourceView,contextSensitive){this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.Tooltip=tooltip?tooltip:(label?label:commandName);this.Style=style?style:FCK_TOOLBARITEM_ONLYICON;this.SourceView=sourceView?true:false;this.ContextSensitive=contextSensitive?true:false;this.IconPath=FCKConfig.SkinPath+'toolbar/'+commandName.toLowerCase()+'.gif';this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var sHtml='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) sHtml+='<td class="TB_Icon" unselectable="on"><img src="'+this.IconPath+'" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) sHtml+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';sHtml+='</tr>'+'</table>';this.DOMDiv.innerHTML=sHtml;var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var eState=this.Command.GetState();if (eState==this.State) return;this.State=eState;switch (this.State){case FCK_TRISTATE_ON:this.DOMDiv.className='TB_Button_On';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOnOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOnOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;case FCK_TRISTATE_OFF:this.DOMDiv.className='TB_Button_Off';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOffOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOffOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;default:this.Disable();break;};};function FCKToolbarButton_OnMouseOnOver(){this.className='TB_Button_On TB_Button_On_Over';};function FCKToolbarButton_OnMouseOnOut(){this.className='TB_Button_On';};function FCKToolbarButton_OnMouseOffOver(){this.className='TB_Button_On TB_Button_Off_Over';};function FCKToolbarButton_OnMouseOffOut(){this.className='TB_Button_Off';};function FCKToolbarButton_OnClick(e){this.FCKToolbarButton.Click(e);return false;};FCKToolbarButton.prototype.Click=function(){this.Command.Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this.DOMDiv.className='TB_Button_Disabled';this.DOMDiv.onmouseover=null;this.DOMDiv.onmouseout=null;this.DOMDiv.onclick=null;} |
var FCKSpecialCombo=function(caption){this.FieldWidth=80;this.PanelWidth=130;this.PanelMaxHeight=150;this.Label=' ';this.Caption=caption;this.Enabled=true;this.Items=new Object();this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._Panel.PanelDiv.className+=' SC_Panel';this._Panel.PanelDiv.innerHTML='<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>';this._ItemsHolderEl=this._Panel.PanelDiv.getElementsByTagName('TD')[0];};function FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function FCKSpecialCombo_ItemOnClick(){this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if (typeof(this.FCKSpecialCombo.OnSelect)=='function') this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(id,html,label){var oDiv=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));oDiv.className=oDiv.originalClass='SC_Item';oDiv.innerHTML=html;oDiv.FCKItemID=id;oDiv.FCKItemLabel=label?label:id;oDiv.FCKSpecialCombo=this;oDiv.Selected=false;oDiv.onmouseover=FCKSpecialCombo_ItemOnMouseOver;oDiv.onmouseout=FCKSpecialCombo_ItemOnMouseOut;oDiv.onclick=FCKSpecialCombo_ItemOnClick;this.Items[id.toString().toLowerCase()]=oDiv;return oDiv;};FCKSpecialCombo.prototype.SelectItem=function(itemId){itemId=itemId?itemId.toString().toLowerCase():'';var oDiv=this.Items[itemId];if (oDiv){oDiv.className=oDiv.originalClass='SC_ItemSelected';oDiv.Selected=true;};};FCKSpecialCombo.prototype.DeselectAll=function(){for (var i in this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};};FCKSpecialCombo.prototype.SetLabelById=function(id){id=id?id.toString().toLowerCase():'';var oDiv=this.Items[id];this.SetLabel(oDiv?oDiv.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(text){this.Label=text.length==0?' ':text;if (this._LabelEl) this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(isEnabled){this.Enabled=isEnabled;this._OuterTable.className=isEnabled?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(targetElement){this._OuterTable=targetElement.appendChild(document.createElement('TABLE'));this._OuterTable.cellPadding=0;this._OuterTable.cellSpacing=0;this._OuterTable.insertRow(-1);if (this.Caption&&this.Caption.length>0){var oCaptionCell=this._OuterTable.rows[0].insertCell(-1);oCaptionCell.unselectable='on';oCaptionCell.innerHTML=this.Caption;oCaptionCell.className='SC_FieldCaption';};var oField=this._OuterTable.rows[0].insertCell(-1).appendChild(document.createElement('DIV'));oField.className='SC_Field';oField.style.width=this.FieldWidth+'px';oField.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldLabel" unselectable="on"><label unselectable="on"> </label></td><td class="SC_FieldButton" unselectable="on"> </td></tr></tbody></table>';this._LabelEl=oField.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;oField.SpecialCombo=this;oField.onmouseover=FCKSpecialCombo_OnMouseOver;oField.onmouseout=FCKSpecialCombo_OnMouseOut;oField.onclick=FCKSpecialCombo_OnClick;};function FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled) this.className='SC_Field SC_FieldOver';};function FCKSpecialCombo_OnMouseOut(){this.className='SC_Field';};function FCKSpecialCombo_OnClick(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.SpecialCombo.Enabled){if (typeof(this.SpecialCombo.OnBeforeClick)=='function') this.SpecialCombo.OnBeforeClick(this.SpecialCombo);if (this.SpecialCombo._ItemsHolderEl.offsetHeight>this.SpecialCombo.PanelMaxHeight) this.SpecialCombo._Panel.PanelDiv.style.height=this.SpecialCombo.PanelMaxHeight+'px';else this.SpecialCombo._Panel.PanelDiv.style.height=this.SpecialCombo._ItemsHolderEl.offsetHeight+'px';this.SpecialCombo._Panel.PanelDiv.style.width=this.SpecialCombo.PanelWidth+'px';if (FCKBrowserInfo.IsGecko) this.SpecialCombo._Panel.PanelDiv.style.overflow='-moz-scrollbars-vertical';this.SpecialCombo._Panel.Show(0,this.offsetHeight,this,null,this.SpecialCombo.PanelMaxHeight,true);};return false;}; |
var FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function FCKToolbarSpecialCombo_OnSelect(itemId,item){this.Command.Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.CreateInstance=function(parentToolbar){this._Combo=new FCKSpecialCombo(this.GetLabel());this._Combo.FieldWidth=100;this._Combo.PanelWidth=150;this._Combo.PanelMaxHeight=150;this.CreateItems(this._Combo);this._Combo.Create(parentToolbar.DOMRow.insertCell(-1));this._Combo.Command=this.Command;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var eState;var sValue=this.Command.GetState();if (sValue!=FCK_TRISTATE_DISABLED){eState=FCK_TRISTATE_ON;if (this.RefreshActiveItems) this.RefreshActiveItems(this._Combo,sValue);else FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,sValue);}else eState=FCK_TRISTATE_DISABLED;if (eState==this.State) return;if (eState==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=eState;this._Combo.SetEnabled(eState!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);} |
var FCKToolbarFontsCombo=function(){this.Command=FCKCommands.GetCommand('FontName');};FCKToolbarFontsCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(targetSpecialCombo){var aFonts=FCKConfig.FontNames.split(';');for (var i=0;i<aFonts.length;i++) this._Combo.AddItem(aFonts[i],'<span style="font-family: \''+aFonts[i]+'\'; font-size: 12px;">'+aFonts[i]+'</span>');} |
var FCKToolbarFontSizeCombo=function(){this.Command=FCKCommands.GetCommand('FontSize');};FCKToolbarFontSizeCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(targetSpecialCombo){targetSpecialCombo.FieldWidth=70;var aSizes=FCKConfig.FontSizes.split(';');for (var i=0;i<aSizes.length;i++){var aSizeParts=aSizes[i].split('/');this._Combo.AddItem(aSizeParts[0],'<font size="'+aSizeParts[0]+'">'+aSizeParts[1]+'</font>',aSizeParts[1]);};} |
var FCKToolbarFontFormatCombo=function(){this.Command=FCKCommands.GetCommand('FontFormat');};FCKToolbarFontFormatCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(targetSpecialCombo){var aNames=FCKLang['FontFormats'].split(';');var oNames={p:aNames[0],pre:aNames[1],address:aNames[2],h1:aNames[3],h2:aNames[4],h3:aNames[5],h4:aNames[6],h5:aNames[7],h6:aNames[8],div:aNames[9]};var aTags=FCKConfig.FontFormats.split(';');for (var i=0;i<aTags.length;i++){if (aTags[i]=='div'&&FCKBrowserInfo.IsGecko) continue;this._Combo.AddItem(aTags[i],'<'+aTags[i]+'>'+oNames[aTags[i]]+'</'+aTags[i]+'>',oNames[aTags[i]]);};} |
var FCKToolbarStyleCombo=function(){this.Command=FCKCommands.GetCommand('Style');};FCKToolbarStyleCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(targetSpecialCombo){FCKTools.AppendStyleSheet(targetSpecialCombo._Panel.Document,FCKConfig.EditorAreaCSS);if (!FCKBrowserInfo.IsGecko) targetSpecialCombo.OnBeforeClick=this.RefreshVisibleItems;for (var s in this.Command.Styles){var oStyle=this.Command.Styles[s];if (oStyle.IsObjectElement) var oItem=targetSpecialCombo.AddItem(s,s);else var oItem=targetSpecialCombo.AddItem(s,oStyle.GetOpenerTag()+s+oStyle.GetCloserTag());oItem.Style=oStyle;};};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(targetSpecialCombo){targetSpecialCombo.DeselectAll();var aStyles=this.Command.GetActiveStyles();if (aStyles.length>0){for (var i=0;i<aStyles.length;i++) targetSpecialCombo.SelectItem(aStyles[i].Name);targetSpecialCombo.SetLabelById(aStyles[0].Name);}else targetSpecialCombo.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(targetSpecialCombo){if (FCKSelection.GetType()=='Control') var sTagName=FCKSelection.GetSelectedElement().tagName;for (var i in targetSpecialCombo.Items){var oItem=targetSpecialCombo.Items[i];if ((sTagName&&oItem.Style.Element==sTagName)||(!sTagName&&!oItem.Style.IsObjectElement)) oItem.style.display='';else oItem.style.display='none';};} |
var FCKToolbarPanelButton=function(commandName,label,tooltip,style){this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.Tooltip=tooltip?tooltip:(label?label:commandName);this.Style=style?style:FCK_TOOLBARITEM_ONLYICON;this.State=FCK_UNKNOWN;};FCKToolbarPanelButton.prototype.Click=function(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.State!=FCK_TRISTATE_DISABLED){this.Command.Execute(0,this.DOMDiv.offsetHeight,this.DOMDiv);};return false;};FCKToolbarPanelButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var sHtml='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) sHtml+='<td class="TB_Icon" unselectable="on"><img src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) sHtml+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';sHtml+='<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';this.DOMDiv.innerHTML=sHtml;var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable; |
var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new Object();FCKToolbarItems.RegisterItem=function(itemName,item){this.LoadedItems[itemName]=item;};FCKToolbarItems.GetItem=function(itemName){var oItem=FCKToolbarItems.LoadedItems[itemName];if (oItem) return oItem;switch (itemName){case 'Source':oItem=new FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true);break;case 'DocProps':oItem=new FCKToolbarButton('DocProps',FCKLang.DocProps);break;case 'Templates':oItem=new FCKToolbarButton('Templates',FCKLang.Templates);break;case 'Save':oItem=new FCKToolbarButton('Save',FCKLang.Save,null,null,true);break;case 'NewPage':oItem=new FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true);break;case 'Preview':oItem=new FCKToolbarButton('Preview',FCKLang.Preview,null,null,true);break;case 'About':oItem=new FCKToolbarButton('About',FCKLang.About,null,null,true);break;case 'Cut':oItem=new FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true);break;case 'Copy':oItem=new FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true);break;case 'Paste':oItem=new FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true);break;case 'PasteText':oItem=new FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true);break;case 'PasteWord':oItem=new FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true);break;case 'Print':oItem=new FCKToolbarButton('Print',FCKLang.Print,null,null,false,true);break;case 'SpellCheck':oItem=new FCKToolbarButton('SpellCheck',FCKLang.SpellCheck);break;case 'Undo':oItem=new FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true);break;case 'Redo':oItem=new FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true);break;case 'SelectAll':oItem=new FCKToolbarButton('SelectAll',FCKLang.SelectAll);break;case 'RemoveFormat':oItem=new FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true);break;case 'Bold':oItem=new FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true);break;case 'Italic':oItem=new FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true);break;case 'Underline':oItem=new FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true);break;case 'StrikeThrough':oItem=new FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true);break;case 'Subscript':oItem=new FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true);break;case 'Superscript':oItem=new FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true);break;case 'OrderedList':oItem=new FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true);break;case 'UnorderedList':oItem=new FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true);break;case 'Outdent':oItem=new FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true);break;case 'Indent':oItem=new FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true);break;case 'Link':oItem=new FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true);break;case 'Unlink':oItem=new FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true);break;case 'Anchor':oItem=new FCKToolbarButton('Anchor',FCKLang.Anchor);break;case 'Image':oItem=new FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage);break;case 'Flash':oItem=new FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash);break;case 'Table':oItem=new FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable);break;case 'SpecialChar':oItem=new FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar);break;case 'Smiley':oItem=new FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley);break;case 'UniversalKey':oItem=new FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard);break;case 'Rule':oItem=new FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true);break;case 'JustifyLeft':oItem=new FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true);break;case 'JustifyCenter':oItem=new FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true);break;case 'JustifyRight':oItem=new FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true);break;case 'JustifyFull':oItem=new FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true);break;case 'Style':oItem=new FCKToolbarStyleCombo();break;case 'FontName':oItem=new FCKToolbarFontsCombo();break;case 'FontSize':oItem=new FCKToolbarFontSizeCombo();break;case 'FontFormat':oItem=new FCKToolbarFontFormatCombo();break;case 'TextColor':oItem=new FCKToolbarPanelButton('TextColor',FCKLang.TextColor);break;case 'BGColor':oItem=new FCKToolbarPanelButton('BGColor',FCKLang.BGColor);break;case 'Find':oItem=new FCKToolbarButton('Find',FCKLang.Find);break;case 'Replace':oItem=new FCKToolbarButton('Replace',FCKLang.Replace);break;case 'Form':oItem=new FCKToolbarButton('Form',FCKLang.Form);break;case 'Checkbox':oItem=new FCKToolbarButton('Checkbox',FCKLang.Checkbox);break;case 'Radio':oItem=new FCKToolbarButton('Radio',FCKLang.RadioButton);break;case 'TextField':oItem=new FCKToolbarButton('TextField',FCKLang.TextField);break;case 'Textarea':oItem=new FCKToolbarButton('Textarea',FCKLang.Textarea);break;case 'HiddenField':oItem=new FCKToolbarButton('HiddenField',FCKLang.HiddenField);break;case 'Button':oItem=new FCKToolbarButton('Button',FCKLang.Button);break;case 'Select':oItem=new FCKToolbarButton('Select',FCKLang.SelectionField);break;case 'ImageButton':oItem=new FCKToolbarButton('ImageButton',FCKLang.ImageButton);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,itemName));return;};FCKToolbarItems.LoadedItems[itemName]=oItem;return oItem;} |
var FCKToolbar=function(){this.Items=new Array();this.DOMTable=document.createElement('table');this.DOMTable.className='TB_Toolbar';with (this.DOMTable){style.styleFloat=style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';cellPadding=0;cellSpacing=0;border=0;};this.DOMRow=this.DOMTable.insertRow(-1);var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_Start';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(this.DOMTable);};FCKToolbar.prototype.AddItem=function(toolbarItem){this.Items[this.Items.length]=toolbarItem;toolbarItem.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.unselectable='on';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_End';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';}; |
var FCKToolbarBreak=function(){var oBreakDiv=document.createElement('div');oBreakDiv.style.clear=oBreakDiv.style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';FCKToolbarSet.DOMElement.appendChild(oBreakDiv);} |
var FCKToolbarSet=FCK.ToolbarSet=new Object();document.getElementById('ExpandHandle').title=FCKLang.ToolbarExpand;document.getElementById('CollapseHandle').title=FCKLang.ToolbarCollapse;FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.ItemsWysiwygOnly=new Array();FCKToolbarSet.ItemsContextSensitive=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display='none';document.getElementById('Expanded').style.display='';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display='';document.getElementById('Expanded').style.display='none';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display=FCKConfig.ToolbarCanCollapse?'':'none';};FCKToolbarSet.Load=function(toolbarSetName){this.DOMElement=document.getElementById('eToolbar');var ToolbarSet=FCKConfig.ToolbarSets[toolbarSetName];if (!ToolbarSet){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,toolbarSetName));return;};this.Toolbars=new Array();for (var x=0;x<ToolbarSet.length;x++){var oToolbarItems=ToolbarSet[x];var oToolbar;if (typeof(oToolbarItems)=='string'){if (oToolbarItems=='/') oToolbar=new FCKToolbarBreak();}else{var oToolbar=new FCKToolbar();for (var j=0;j<oToolbarItems.length;j++){var sItem=oToolbarItems[j];if (sItem=='-') oToolbar.AddSeparator();else{var oItem=FCKToolbarItems.GetItem(sItem);if (oItem){oToolbar.AddItem(oItem);if (!oItem.SourceView) this.ItemsWysiwygOnly[this.ItemsWysiwygOnly.length]=oItem;if (oItem.ContextSensitive) this.ItemsContextSensitive[this.ItemsContextSensitive.length]=oItem;};};};oToolbar.AddTerminator();};this.Toolbars[this.Toolbars.length]=oToolbar;};};FCKToolbarSet.RefreshModeState=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Enable();FCKToolbarSet.RefreshItemsState();}else{FCKToolbarSet.RefreshItemsState();for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Disable();};};FCKToolbarSet.RefreshItemsState=function(){for (var i=0;i<FCKToolbarSet.ItemsContextSensitive.length;i++) FCKToolbarSet.ItemsContextSensitive[i].RefreshState();}; |
var FCKDialog=new Object();FCKDialog.OpenDialog=function(dialogName,dialogTitle,dialogPage,width,height,customValue,parentWindow,resizable){var oDialogInfo=new Object();oDialogInfo.Title=dialogTitle;oDialogInfo.Page=dialogPage;oDialogInfo.Editor=window;oDialogInfo.CustomValue=customValue;var sUrl=FCKConfig.BasePath+'fckdialog.html';this.Show(oDialogInfo,dialogName,sUrl,width,height,parentWindow,resizable);}; |
FCKDialog.Show=function(dialogInfo,dialogName,pageUrl,dialogWidth,dialogHeight,parentWindow,resizable){var iTop=(screen.height-dialogHeight) / 2;var iLeft=(screen.width - dialogWidth) / 2;var sOption="location=no,menubar=no,toolbar=no,dependent=yes,dialog=yes,minimizable=no,modal=yes,alwaysRaised=yes"+",resizable="+(resizable?'yes':'no')+",width="+dialogWidth+",height="+dialogHeight+",top="+iTop+",left="+iLeft;if (!parentWindow) parentWindow=window;var oWindow=parentWindow.open('','FCKeditorDialog_'+dialogName,sOption,true);oWindow.moveTo(iLeft,iTop);oWindow.resizeTo(dialogWidth,dialogHeight);oWindow.focus();oWindow.location.href=pageUrl;oWindow.dialogArguments=dialogInfo;parentWindow.FCKLastDialogInfo=dialogInfo;this.Window=oWindow;try{window.top.captureEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.addEventListener('mousedown',this.CheckFocus,true);window.top.parent.addEventListener('mouseup',this.CheckFocus,true);window.top.parent.addEventListener('click',this.CheckFocus,true);window.top.parent.addEventListener('focus',this.CheckFocus,true);}catch (e){};};FCKDialog.CheckFocus=function(){if (typeof(FCKDialog)!="object") return;if (FCKDialog.Window&&!FCKDialog.Window.closed){FCKDialog.Window.focus();return false;}else{try{window.top.releaseEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.removeEventListener('onmousedown',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('mouseup',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('click',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('onfocus',FCKDialog.CheckFocus,true);}catch (e){};};}; |
var FCKContextMenuItem=function(contextMenu,commandName,label,hasIcon){this.ContextMenu=contextMenu;this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.HasIcon=hasIcon?true:false;};function FCKContextMenuItem_OnMouseOver(){if (this.className!='CM_Disabled') this.className='CM_Over';};function FCKContextMenuItem_OnMouseOut(){if (this.className!='CM_Disabled') this.className='CM_Option';};function FCKContextMenuItem_OnClick(){if (this.className!='CM_Disabled'){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();};return false;};FCKContextMenuItem.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=FCKContextMenuItem_OnMouseOver;this._Row.onmouseout=FCKContextMenuItem_OnMouseOut;this._Row.onclick=FCKContextMenuItem_OnClick;var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';if (this.HasIcon) oCell.innerHTML='<img alt="" src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="20" unselectable="on">';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.unselectable='on';oCell.noWrap=true;oCell.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible?'':'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON:case FCK_TRISTATE_OFF:this._Row.className='CM_Option';break;default:this._Row.className='CM_Disabled';break;};}; |
var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Separator';var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible?'':'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){}; |
var FCKContextMenuGroup=function(addSeparator,contextMenu,firstItemCommand,firstItemLabel,hasIcon){this.IsVisible=true;this.Items=new Array();if (addSeparator) this.Add(new FCKContextMenuSeparator());if (contextMenu&&firstItemCommand&&firstItemLabel) this.Add(new FCKContextMenuItem(contextMenu,firstItemCommand,firstItemLabel,hasIcon));this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(contextMenuItem){this.Items[this.Items.length]=contextMenuItem;};FCKContextMenuGroup.prototype.CreateTableRows=function(table){for (var i=0;i<this.Items.length;i++){this.Items[i].CreateTableRow(table);};};FCKContextMenuGroup.prototype.SetVisible=function(isVisible){for (var i=0;i<this.Items.length;i++){this.Items[i].SetVisible(isVisible);};this.IsVisible=isVisible;};FCKContextMenuGroup.prototype.RefreshState=function(){if (!this.IsVisible) return;for (var i=0;i<this.Items.length;i++){this.Items[i].RefreshState();};} |
var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var oTable=this._Document.createElement('TABLE');oTable.cellSpacing=0;oTable.cellPadding=0;oTable.border=0;this._Div.appendChild(oTable);this.Groups=new Object();for (var i=0;i<FCKConfig.ContextMenu.length;i++){var sGroup=FCKConfig.ContextMenu[i];this.Groups[sGroup]=this._GetGroup(sGroup);this.Groups[sGroup].CreateTableRows(oTable);};this._IsLoaded=true;};FCKContextMenu._GetGroup=function(groupName){var oGroup;switch (groupName){case 'Generic':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuItem(this,'Cut',FCKLang.Cut,true));Add(new FCKContextMenuItem(this,'Copy',FCKLang.Copy,true));Add(new FCKContextMenuItem(this,'Paste',FCKLang.Paste,true));};break;case 'Link':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'Link',FCKLang.EditLink,true));Add(new FCKContextMenuItem(this,'Unlink',FCKLang.RemoveLink,true));};break;case 'TableCell':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertRow',FCKLang.InsertRow,true));Add(new FCKContextMenuItem(this,'TableDeleteRows',FCKLang.DeleteRows,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertColumn',FCKLang.InsertColumn,true));Add(new FCKContextMenuItem(this,'TableDeleteColumns',FCKLang.DeleteColumns,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertCell',FCKLang.InsertCell,true));Add(new FCKContextMenuItem(this,'TableDeleteCells',FCKLang.DeleteCells,true));Add(new FCKContextMenuItem(this,'TableMergeCells',FCKLang.MergeCells,true));Add(new FCKContextMenuItem(this,'TableSplitCell',FCKLang.SplitCell,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableCellProp',FCKLang.CellProperties,true));Add(new FCKContextMenuItem(this,'TableProp',FCKLang.TableProperties,true));};break;case 'Table':return new FCKContextMenuGroup(true,this,'Table',FCKLang.TableProperties,true);case 'Image':return new FCKContextMenuGroup(true,this,'Image',FCKLang.ImageProperties,true);case 'Flash':return new FCKContextMenuGroup(true,this,'Flash',FCKLang.FlashProperties,true);case 'Form':return new FCKContextMenuGroup(true,this,'Form',FCKLang.FormProp,true);case 'Checkbox':return new FCKContextMenuGroup(true,this,'Checkbox',FCKLang.CheckboxProp,true);case 'Radio':return new FCKContextMenuGroup(true,this,'Radio',FCKLang.RadioButtonProp,true);case 'TextField':return new FCKContextMenuGroup(true,this,'TextField',FCKLang.TextFieldProp,true);case 'HiddenField':return new FCKContextMenuGroup(true,this,'HiddenField',FCKLang.HiddenFieldProp,true);case 'ImageButton':return new FCKContextMenuGroup(true,this,'ImageButton',FCKLang.ImageButtonProp,true);case 'Button':return new FCKContextMenuGroup(true,this,'Button',FCKLang.ButtonProp,true);case 'Select':return new FCKContextMenuGroup(true,this,'Select',FCKLang.SelectionFieldProp,true);case 'Textarea':return new FCKContextMenuGroup(true,this,'Textarea',FCKLang.TextareaProp,true);case 'BulletedList':return new FCKContextMenuGroup(true,this,'BulletedList',FCKLang.BulletedListProp,true);case 'NumberedList':return new FCKContextMenuGroup(true,this,'NumberedList',FCKLang.NumberedListProp,true);case 'Anchor':return new FCKContextMenuGroup(true,this,'Anchor',FCKLang.AnchorProp,true);};return oGroup;};FCKContextMenu.RefreshState=function(){var oTag=FCKSelection.GetSelectedElement();var sTagName;if (oTag){sTagName=oTag.tagName;};if (this.Groups['Link']) this.Groups['Link'].SetVisible(/*!bIsAnchor &&*/ FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED);if (this.Groups['TableCell']) this.Groups['TableCell'].SetVisible(sTagName!='TABLE'&&FCKSelection.HasAncestorNode('TABLE'));if (this.Groups['Table']) this.Groups['Table'].SetVisible(sTagName=='TABLE');if (this.Groups['Image']) this.Groups['Image'].SetVisible(sTagName=='IMG'&&!oTag.getAttribute('_fckflash')&&!oTag.getAttribute('_fckanchor'));if (this.Groups['Flash']) this.Groups['Flash'].SetVisible(sTagName=='IMG'&&oTag.getAttribute('_fckflash'));if (this.Groups['Anchor']) this.Groups['Anchor'].SetVisible(sTagName=='IMG'&&oTag.getAttribute('_fckanchor'));if (this.Groups['BulletedList']) this.Groups['BulletedList'].SetVisible(FCKSelection.HasAncestorNode('UL'));if (this.Groups['NumberedList']) this.Groups['NumberedList'].SetVisible(FCKSelection.HasAncestorNode('OL'));if (this.Groups['Select']) this.Groups['Select'].SetVisible(sTagName=='SELECT');if (this.Groups['Textarea']) this.Groups['Textarea'].SetVisible(sTagName=='TEXTAREA');if (this.Groups['Form']) this.Groups['Form'].SetVisible(FCKSelection.HasAncestorNode('FORM'));if (this.Groups['Checkbox']) this.Groups['Checkbox'].SetVisible(sTagName=='INPUT'&&oTag.type=='checkbox');if (this.Groups['Radio']) this.Groups['Radio'].SetVisible(sTagName=='INPUT'&&oTag.type=='radio');if (this.Groups['TextField']) this.Groups['TextField'].SetVisible(sTagName=='INPUT'&&(oTag.type=='text'||oTag.type=='password'));if (this.Groups['HiddenField']) this.Groups['HiddenField'].SetVisible(sTagName=='INPUT'&&oTag.type=='hidden');if (this.Groups['ImageButton']) this.Groups['ImageButton'].SetVisible(sTagName=='INPUT'&&oTag.type=='image');if (this.Groups['Button']) this.Groups['Button'].SetVisible(sTagName=='INPUT'&&(oTag.type=='button'||oTag.type=='submit'||oTag.type=='reset'));for (var o in this.Groups){this.Groups[o].RefreshState();};}; |
FCKTools.AppendStyleSheet(window.parent.document,FCKConfig.SkinPath+'fck_contextmenu.css');FCKContextMenu.Show=function(x,y){if (!this._Document){this._Document=window.parent.document;};if (!this._IsLoaded){this.Reload();this._Div.style.zIndex=10000;this._Div.oncontextmenu=function() { return false;};};this.RefreshState();var oCoordsA=FCKTools.GetElementPosition(FCK.EditorWindow.frameElement);var oCoordsB=FCKTools.GetElementPosition(window.frameElement);x+=oCoordsA.X+oCoordsB.X;y+=oCoordsA.Y+oCoordsB.Y;var iXSpace=x+this._Div.offsetWidth-this._Div.ownerDocument.defaultView.innerWidth;var iYSpace=y+this._Div.offsetHeight-this._Div.ownerDocument.defaultView.innerHeight;if (iXSpace>0) x-=this._Div.offsetWidth;if (iYSpace>0) y-=this._Div.offsetHeight;this._Div.style.left=x+'px';this._Div.style.top=y+'px';var oActualWindow=FCK.EditorWindow;while (oActualWindow){oActualWindow.document.addEventListener('click',FCKContextMenu._OnDocumentClick,false);if (oActualWindow!=oActualWindow.parent) oActualWindow=oActualWindow.parent;else if (oActualWindow.opener==null) oActualWindow=oActualWindow.opener;else break;};this._Div.style.visibility='';};FCKContextMenu._OnDocumentClick=function(event){var e=event.target;while (e){if (e==FCKContextMenu._Div) return;e=e.parentNode;};FCKContextMenu.Hide();};FCKContextMenu.Hide=function(){this._Div.style.visibility='hidden';this._Div.style.left=this._Div.style.top='1px';} |
if (!FCKConfig.PluginsPath.endsWith('/')) FCKConfig.PluginsPath+='/';var FCKPlugin=function(name,availableLangs,basePath){this.Name=name;this.BasePath=basePath?basePath:FCKConfig.PluginsPath;this.Path=this.BasePath+name+'/';if (!availableLangs||availableLangs.length==0) this.AvailableLangs=new Array();else this.AvailableLangs=availableLangs.split(',');};FCKPlugin.prototype.Load=function(){if (this.AvailableLangs.length>0){if (this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) var sLang=FCKLanguageManager.ActiveLanguage.Code;else var sLang=this.AvailableLangs[0];FCKScriptLoader.AddScript(this.Path+'lang/'+sLang+'.js');};FCKScriptLoader.AddScript(this.Path+'fckplugin.js');} |
var FCKTableCommand=function(A){this.Name=A;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch (this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case 'TableDeleteRows':FCKTableHandler.DeleteRows();break;case 'TableInsertColumn':FCKTableHandler.InsertColumn();break;case 'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case 'TableInsertCell':FCKTableHandler.InsertCell();break;case 'TableDeleteCells':FCKTableHandler.DeleteCells();break;case 'TableMergeCells':FCKTableHandler.MergeCells();break;case 'TableSplitCell':FCKTableHandler.SplitCell();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));};};FCKTableCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;} |
var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(A,B){if (B.Selected) B.Style.RemoveFromSelection();else B.Style.ApplyToSelection();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){var A=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var e=FCKSelection.GetSelectedElement();if (e) return this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};return FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var A=new Array();if (FCKSelection.GetType()=='Control') this._CheckStyle(FCKSelection.GetSelectedElement(),A,false);else this._CheckStyle(FCKSelection.GetParentElement(),A,true);return A;};FCKStyleCommand.prototype._CheckStyle=function(A,B,C){if (!A) return;if (A.nodeType==1){var D=this.StylesLoader.StyleGroups[A.tagName];if (D){for (var i=0;i<D.length;i++){if (D[i].IsEqual(A)) B[B.length]=D[i];};};};if (C) this._CheckStyle(A.parentNode,B,C);} |
var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new Object();FCKCommands.RegisterCommand=function(A,B){this.LoadedCommands[A]=B;};FCKCommands.GetCommand=function(A){var B=FCKCommands.LoadedCommands[A];if (B) return B;switch (A){case 'DocProps':B=new FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case 'Templates':B=new FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case 'Link':B=new FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case 'Anchor':B=new FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case 'BulletedList':B=new FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case 'NumberedList':B=new FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case 'About':B=new FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case 'Find':B=new FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case 'Replace':B=new FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case 'Image':B=new FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case 'Flash':B=new FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case 'SpecialChar':B=new FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,300);break;case 'Smiley':B=new FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case 'Table':B=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',400,250);break;case 'TableProp':B=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case 'TableCellProp':B=new FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case 'UniversalKey':B=new FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case 'Style':B=new FCKStyleCommand();break;case 'FontName':B=new FCKFontNameCommand();break;case 'FontSize':B=new FCKFontSizeCommand();break;case 'FontFormat':B=new FCKFormatBlockCommand();break;case 'Source':B=new FCKSourceCommand();break;case 'Preview':B=new FCKPreviewCommand();break;case 'Save':B=new FCKSaveCommand();break;case 'NewPage':B=new FCKNewPageCommand();break;case 'TextColor':B=new FCKTextColorCommand('ForeColor');break;case 'BGColor':B=new FCKTextColorCommand('BackColor');break;case 'PasteText':B=new FCKPastePlainTextCommand();break;case 'PasteWord':B=new FCKPasteWordCommand();break;case 'TableInsertRow':B=new FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':B=new FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':B=new FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':B=new FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':B=new FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':B=new FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':B=new FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':B=new FCKTableCommand('TableSplitCell');break;case 'Form':B=new FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case 'Checkbox':B=new FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case 'Radio':B=new FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case 'TextField':B=new FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case 'Textarea':B=new FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case 'HiddenField':B=new FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case 'Button':B=new FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case 'Select':B=new FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case 'ImageButton':B=new FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case 'SpellCheck':B=new FCKSpellCheckCommand();break;case 'Undo':B=new FCKUndoCommand();break;case 'Redo':B=new FCKRedoCommand();break;case 'Undefined':B=new FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(A)) B=new FCKNamedCommand(A);else{alert(FCKLang.UnknownCommand.replace(/%1/g,A));return null;};};FCKCommands.LoadedCommands[A]=B;return B;};FCKCommands.GetFullPageState=function(){return FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}; |
var FCKToolbarButton=function(A,B,C,D,E,F){this.Command=FCKCommands.GetCommand(A);this.Label=B?B:A;this.Tooltip=C?C:(B?B:A);this.Style=D?D:FCK_TOOLBARITEM_ONLYICON;this.SourceView=E?true:false;this.ContextSensitive=F?true:false;this.IconPath=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(A){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var B='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) B+='<td class="TB_Icon" unselectable="on"><img src="'+this.IconPath+'" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) B+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';B+='</tr>'+'</table>';this.DOMDiv.innerHTML=B;var C=A.DOMRow.insertCell(-1);C.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var A=this.Command.GetState();if (A==this.State) return;this.State=A;switch (this.State){case FCK_TRISTATE_ON:this.DOMDiv.className='TB_Button_On';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOnOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOnOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;case FCK_TRISTATE_OFF:this.DOMDiv.className='TB_Button_Off';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOffOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOffOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;default:this.Disable();break;};};function FCKToolbarButton_OnMouseOnOver(){this.className='TB_Button_On TB_Button_On_Over';};function FCKToolbarButton_OnMouseOnOut(){this.className='TB_Button_On';};function FCKToolbarButton_OnMouseOffOver(){this.className='TB_Button_On TB_Button_Off_Over';};function FCKToolbarButton_OnMouseOffOut(){this.className='TB_Button_Off';};function FCKToolbarButton_OnClick(e){this.FCKToolbarButton.Click(e);return false;};FCKToolbarButton.prototype.Click=function(){this.Command.Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this.DOMDiv.className='TB_Button_Disabled';this.DOMDiv.onmouseover=null;this.DOMDiv.onmouseout=null;this.DOMDiv.onclick=null;} |
var FCKSpecialCombo=function(A){this.FieldWidth=80;this.PanelWidth=130;this.PanelMaxHeight=150;this.Label=' ';this.Caption=A;this.Tooltip=A;this.Style=FCK_TOOLBARITEM_ICONTEXT;this.Enabled=true;this.Items=new Object();this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._Panel.PanelDiv.className+=' SC_Panel';this._Panel.PanelDiv.innerHTML='<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>';this._ItemsHolderEl=this._Panel.PanelDiv.getElementsByTagName('TD')[0];};function FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function FCKSpecialCombo_ItemOnClick(){this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if (typeof(this.FCKSpecialCombo.OnSelect)=='function') this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(A,B,C){var D=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));D.className=D.originalClass='SC_Item';D.innerHTML=B;D.FCKItemID=A;D.FCKItemLabel=C?C:A;D.FCKSpecialCombo=this;D.Selected=false;D.onmouseover=FCKSpecialCombo_ItemOnMouseOver;D.onmouseout=FCKSpecialCombo_ItemOnMouseOut;D.onclick=FCKSpecialCombo_ItemOnClick;this.Items[A.toString().toLowerCase()]=D;return D;};FCKSpecialCombo.prototype.SelectItem=function(A){A=A?A.toString().toLowerCase():'';var B=this.Items[A];if (B){B.className=B.originalClass='SC_ItemSelected';B.Selected=true;};};FCKSpecialCombo.prototype.DeselectAll=function(){for (var i in this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};};FCKSpecialCombo.prototype.SetLabelById=function(A){A=A?A.toString().toLowerCase():'';var B=this.Items[A];this.SetLabel(B?B.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(A){this.Label=A.length==0?' ':A;if (this._LabelEl) this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(A){this.Enabled=A;this._OuterTable.className=A?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(A){this._OuterTable=A.appendChild(document.createElement('TABLE'));this._OuterTable.cellPadding=0;this._OuterTable.cellSpacing=0;this._OuterTable.insertRow(-1);var B;var C;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON:B='TB_ButtonType_Icon';C=false;break;case FCK_TOOLBARITEM_ONLYTEXT:B='TB_ButtonType_Text';C=false;break;case FCK_TOOLBARITEM_ICONTEXT:C=true;break;};if (this.Caption&&this.Caption.length>0&&C){var D=this._OuterTable.rows[0].insertCell(-1);D.unselectable='on';D.innerHTML=this.Caption;D.className='SC_FieldCaption';};var E=this._OuterTable.rows[0].insertCell(-1).appendChild(document.createElement('DIV'));if (C){E.className='SC_Field';E.style.width=this.FieldWidth+'px';E.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldLabel" unselectable="on"><label unselectable="on"> </label></td><td class="SC_FieldButton" unselectable="on"> </td></tr></tbody></table>';this._LabelEl=E.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;}else{E.className='TB_Button_Off';E.innerHTML='<table cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldButton" style="border-left: none;" unselectable="on"> </td></tr></tbody></table>';E.innerHTML='<table title="'+this.Tooltip+'" class="'+B+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>'+'<td class="TB_Text" unselectable="on">'+this.Caption+'</td>'+'<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';};E.SpecialCombo=this;E.onmouseover=FCKSpecialCombo_OnMouseOver;E.onmouseout=FCKSpecialCombo_OnMouseOut;E.onclick=FCKSpecialCombo_OnClick;};function FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled){switch (this.SpecialCombo.Style){case FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_On';break;case FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_On';break;case FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field SC_FieldOver';break;};};};function FCKSpecialCombo_OnMouseOut(){switch (this.SpecialCombo.Style){case FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_Off';break;case FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_Off';break;case FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field';break;};};function FCKSpecialCombo_OnClick(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.SpecialCombo.Enabled){var oPanel=this.SpecialCombo._Panel;if (typeof(this.SpecialCombo.OnBeforeClick)=='function') this.SpecialCombo.OnBeforeClick(this.SpecialCombo);if (this.SpecialCombo._ItemsHolderEl.offsetHeight>this.SpecialCombo.PanelMaxHeight) oPanel.PanelDiv.style.height=this.SpecialCombo.PanelMaxHeight+'px';else oPanel.PanelDiv.style.height=this.SpecialCombo._ItemsHolderEl.offsetHeight+'px';oPanel.PanelDiv.style.width=this.SpecialCombo.PanelWidth+'px';if (FCKBrowserInfo.IsGecko) oPanel.PanelDiv.style.overflow='-moz-scrollbars-vertical';oPanel.Show(0,this.offsetHeight,this,null,this.SpecialCombo.PanelMaxHeight,true);};return false;}; |
var FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function FCKToolbarSpecialCombo_OnSelect(itemId,item){this.Command.Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.CreateInstance=function(A){this._Combo=new FCKSpecialCombo(this.GetLabel());this._Combo.FieldWidth=this.FieldWidth!=null?this.FieldWidth:100;this._Combo.PanelWidth=this.PanelWidth!=null?this.PanelWidth:150;this._Combo.PanelMaxHeight=this.PanelMaxHeight!=null?this.PanelMaxHeight:150;this._Combo.Tooltip=this.Tooltip;this._Combo.Style=this.Style;this.CreateItems(this._Combo);this._Combo.Create(A.DOMRow.insertCell(-1));this._Combo.Command=this.Command;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var A;var B=this.Command.GetState();if (B!=FCK_TRISTATE_DISABLED){A=FCK_TRISTATE_ON;if (this.RefreshActiveItems) this.RefreshActiveItems(this._Combo,B);else FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,B);}else A=FCK_TRISTATE_DISABLED;if (A==this.State) return;if (A==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=A;this._Combo.SetEnabled(A!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);} |
var FCKToolbarFontsCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontName');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontsCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(A){var B=FCKConfig.FontNames.split(';');for (var i=0;i<B.length;i++) this._Combo.AddItem(B[i],'<span style="font-family: \''+B[i]+'\'; font-size: 12px;">'+B[i]+'</span>');} |
var FCKToolbarFontSizeCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontSize');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontSizeCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(A){A.FieldWidth=70;var B=FCKConfig.FontSizes.split(';');for (var i=0;i<B.length;i++){var C=B[i].split('/');this._Combo.AddItem(C[0],'<font size="'+C[0]+'">'+C[1]+'</font>',C[1]);};} |
var FCKToolbarFontFormatCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontFormat');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;this.PanelWidth=190;};FCKToolbarFontFormatCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(A){var B=FCKLang['FontFormats'].split(';');var C={p:B[0],pre:B[1],address:B[2],h1:B[3],h2:B[4],h3:B[5],h4:B[6],h5:B[7],h6:B[8],div:B[9]};var D=FCKConfig.FontFormats.split(';');for (var i=0;i<D.length;i++){if (D[i]=='div'&&FCKBrowserInfo.IsGecko) continue;this._Combo.AddItem(D[i],'<'+D[i]+'>'+C[D[i]]+'</'+D[i]+'>',C[D[i]]);};} |
var FCKToolbarStyleCombo=function(A,B){this.Command=FCKCommands.GetCommand('Style');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarStyleCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(A){FCKTools.AppendStyleSheet(A._Panel.Document,FCKConfig.EditorAreaCSS);if (!FCKBrowserInfo.IsGecko) A.OnBeforeClick=this.RefreshVisibleItems;for (var s in this.Command.Styles){var B=this.Command.Styles[s];var C;if (B.IsObjectElement) C=A.AddItem(s,s);else C=A.AddItem(s,B.GetOpenerTag()+s+B.GetCloserTag());C.Style=B;};};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(A){A.DeselectAll();var B=this.Command.GetActiveStyles();if (B.length>0){for (var i=0;i<B.length;i++) A.SelectItem(B[i].Name);A.SetLabelById(B[0].Name);}else A.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(A){if (FCKSelection.GetType()=='Control') var B=FCKSelection.GetSelectedElement().tagName;for (var i in A.Items){var C=A.Items[i];if ((B&&C.Style.Element==B)||(!B&&!C.Style.IsObjectElement)) C.style.display='';else C.style.display='none';};} |
var FCKToolbarPanelButton=function(A,B,C,D){this.Command=FCKCommands.GetCommand(A);this.Label=B?B:A;this.Tooltip=C?C:(B?B:A);this.Style=D?D:FCK_TOOLBARITEM_ONLYICON;this.State=FCK_UNKNOWN;};FCKToolbarPanelButton.prototype.Click=function(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.State!=FCK_TRISTATE_DISABLED){this.Command.Execute(0,this.DOMDiv.offsetHeight,this.DOMDiv);};return false;};FCKToolbarPanelButton.prototype.CreateInstance=function(A){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var B='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) B+='<td class="TB_Icon" unselectable="on"><img src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) B+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';B+='<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';this.DOMDiv.innerHTML=B;var C=A.DOMRow.insertCell(-1);C.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable; |
var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new Object();FCKToolbarItems.RegisterItem=function(A,B){this.LoadedItems[A]=B;};FCKToolbarItems.GetItem=function(A){var B=FCKToolbarItems.LoadedItems[A];if (B) return B;switch (A){case 'Source':B=new FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true);break;case 'DocProps':B=new FCKToolbarButton('DocProps',FCKLang.DocProps);break;case 'Templates':B=new FCKToolbarButton('Templates',FCKLang.Templates);break;case 'Save':B=new FCKToolbarButton('Save',FCKLang.Save,null,null,true);break;case 'NewPage':B=new FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true);break;case 'Preview':B=new FCKToolbarButton('Preview',FCKLang.Preview,null,null,true);break;case 'About':B=new FCKToolbarButton('About',FCKLang.About,null,null,true);break;case 'Cut':B=new FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true);break;case 'Copy':B=new FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true);break;case 'Paste':B=new FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true);break;case 'PasteText':B=new FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true);break;case 'PasteWord':B=new FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true);break;case 'Print':B=new FCKToolbarButton('Print',FCKLang.Print,null,null,false,true);break;case 'SpellCheck':B=new FCKToolbarButton('SpellCheck',FCKLang.SpellCheck);break;case 'Undo':B=new FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true);break;case 'Redo':B=new FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true);break;case 'SelectAll':B=new FCKToolbarButton('SelectAll',FCKLang.SelectAll);break;case 'RemoveFormat':B=new FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true);break;case 'Bold':B=new FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true);break;case 'Italic':B=new FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true);break;case 'Underline':B=new FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true);break;case 'StrikeThrough':B=new FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true);break;case 'Subscript':B=new FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true);break;case 'Superscript':B=new FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true);break;case 'OrderedList':B=new FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true);break;case 'UnorderedList':B=new FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true);break;case 'Outdent':B=new FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true);break;case 'Indent':B=new FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true);break;case 'Link':B=new FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true);break;case 'Unlink':B=new FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true);break;case 'Anchor':B=new FCKToolbarButton('Anchor',FCKLang.Anchor);break;case 'Image':B=new FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage);break;case 'Flash':B=new FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash);break;case 'Table':B=new FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable);break;case 'SpecialChar':B=new FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar);break;case 'Smiley':B=new FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley);break;case 'UniversalKey':B=new FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard);break;case 'Rule':B=new FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true);break;case 'JustifyLeft':B=new FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true);break;case 'JustifyCenter':B=new FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true);break;case 'JustifyRight':B=new FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true);break;case 'JustifyFull':B=new FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true);break;case 'Style':B=new FCKToolbarStyleCombo();break;case 'FontName':B=new FCKToolbarFontsCombo();break;case 'FontSize':B=new FCKToolbarFontSizeCombo();break;case 'FontFormat':B=new FCKToolbarFontFormatCombo();break;case 'TextColor':B=new FCKToolbarPanelButton('TextColor',FCKLang.TextColor);break;case 'BGColor':B=new FCKToolbarPanelButton('BGColor',FCKLang.BGColor);break;case 'Find':B=new FCKToolbarButton('Find',FCKLang.Find);break;case 'Replace':B=new FCKToolbarButton('Replace',FCKLang.Replace);break;case 'Form':B=new FCKToolbarButton('Form',FCKLang.Form);break;case 'Checkbox':B=new FCKToolbarButton('Checkbox',FCKLang.Checkbox);break;case 'Radio':B=new FCKToolbarButton('Radio',FCKLang.RadioButton);break;case 'TextField':B=new FCKToolbarButton('TextField',FCKLang.TextField);break;case 'Textarea':B=new FCKToolbarButton('Textarea',FCKLang.Textarea);break;case 'HiddenField':B=new FCKToolbarButton('HiddenField',FCKLang.HiddenField);break;case 'Button':B=new FCKToolbarButton('Button',FCKLang.Button);break;case 'Select':B=new FCKToolbarButton('Select',FCKLang.SelectionField);break;case 'ImageButton':B=new FCKToolbarButton('ImageButton',FCKLang.ImageButton);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,A));return null;};FCKToolbarItems.LoadedItems[A]=B;return B;} |
var FCKToolbar=function(){this.Items=new Array();var e=this.DOMTable=document.createElement('table');e.className='TB_Toolbar';e.style.styleFloat=e.style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';e.cellPadding=0;e.cellSpacing=0;e.border=0;this.DOMRow=e.insertRow(-1);var A=this.DOMRow.insertCell(-1);A.className='TB_Start';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(e);};FCKToolbar.prototype.AddItem=function(A){this.Items[this.Items.length]=A;A.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var A=this.DOMRow.insertCell(-1);A.unselectable='on';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var A=this.DOMRow.insertCell(-1);A.className='TB_End';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';}; |
var FCKToolbarBreak=function(){var A=document.createElement('div');A.style.clear=A.style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';FCKToolbarSet.DOMElement.appendChild(A);} |
var FCKToolbarSet=FCK.ToolbarSet=new Object();document.getElementById('ExpandHandle').title=FCKLang.ToolbarExpand;document.getElementById('CollapseHandle').title=FCKLang.ToolbarCollapse;FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.ItemsWysiwygOnly=new Array();FCKToolbarSet.ItemsContextSensitive=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display='none';document.getElementById('Expanded').style.display='';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display='';document.getElementById('Expanded').style.display='none';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display=FCKConfig.ToolbarCanCollapse?'':'none';};FCKToolbarSet.Load=function(A){this.DOMElement=document.getElementById('eToolbar');var B=FCKConfig.ToolbarSets[A];if (!B){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,A));return;};this.Toolbars=new Array();for (var x=0;x<B.length;x++){var C=B[x];var D;if (typeof(C)=='string'){if (C=='/') D=new FCKToolbarBreak();}else{D=new FCKToolbar();for (var j=0;j<C.length;j++){var E=C[j];if (E=='-') D.AddSeparator();else{var F=FCKToolbarItems.GetItem(E);if (F){D.AddItem(F);if (!F.SourceView) this.ItemsWysiwygOnly[this.ItemsWysiwygOnly.length]=F;if (F.ContextSensitive) this.ItemsContextSensitive[this.ItemsContextSensitive.length]=F;};};};D.AddTerminator();};this.Toolbars[this.Toolbars.length]=D;};};FCKToolbarSet.RefreshModeState=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Enable();FCKToolbarSet.RefreshItemsState();}else{FCKToolbarSet.RefreshItemsState();for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Disable();};};FCKToolbarSet.RefreshItemsState=function(){for (var i=0;i<FCKToolbarSet.ItemsContextSensitive.length;i++) FCKToolbarSet.ItemsContextSensitive[i].RefreshState();}; |
var FCKDialog=new Object();FCKDialog.OpenDialog=function(A,B,C,D,E,F,G,H){var I=new Object();I.Title=B;I.Page=C;I.Editor=window;I.CustomValue=F;var J=FCKConfig.BasePath+'fckdialog.html';this.Show(I,A,J,D,E,G,H);}; |
FCKDialog.Show=function(A,B,C,D,E,F,G){var H=(FCKConfig.ScreenHeight-E)/2;var I=(FCKConfig.ScreenWidth-D)/2;var J="location=no,menubar=no,toolbar=no,dependent=yes,dialog=yes,minimizable=no,modal=yes,alwaysRaised=yes"+",resizable="+(G?'yes':'no')+",width="+D+",height="+E+",top="+H+",left="+I;if (!F) F=window;var K=F.open('','FCKeditorDialog_'+B,J,true);K.moveTo(I,H);K.resizeTo(D,E);K.focus();K.location.href=C;K.dialogArguments=A;F.FCKLastDialogInfo=A;this.Window=K;try{window.top.captureEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.addEventListener('mousedown',this.CheckFocus,true);window.top.parent.addEventListener('mouseup',this.CheckFocus,true);window.top.parent.addEventListener('click',this.CheckFocus,true);window.top.parent.addEventListener('focus',this.CheckFocus,true);}catch (e){};};FCKDialog.CheckFocus=function(){if (typeof(FCKDialog)!="object") return false;if (FCKDialog.Window&&!FCKDialog.Window.closed) FCKDialog.Window.focus();else{try{window.top.releaseEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.removeEventListener('onmousedown',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('mouseup',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('click',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('onfocus',FCKDialog.CheckFocus,true);}catch (e){};};return false;}; |
var FCKContextMenuItem=function(A,B,C,D){this.ContextMenu=A;this.Command=FCKCommands.GetCommand(B);this.Label=C?C:B;this.HasIcon=D?true:false;};function FCKContextMenuItem_OnMouseOver(){if (this.className!='CM_Disabled') this.className='CM_Over';};function FCKContextMenuItem_OnMouseOut(){if (this.className!='CM_Disabled') this.className='CM_Option';};function FCKContextMenuItem_OnClick(){if (this.className!='CM_Disabled'){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();};return false;};FCKContextMenuItem.prototype.CreateTableRow=function(A){this._Row=A.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=FCKContextMenuItem_OnMouseOver;this._Row.onmouseout=FCKContextMenuItem_OnMouseOut;this._Row.onclick=FCKContextMenuItem_OnClick;var B=this._Row.insertCell(-1);B.className='CM_Icon';if (this.HasIcon) B.innerHTML='<img alt="" src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="20" unselectable="on">';B=this._Row.insertCell(-1);B.className='CM_Label';B.unselectable='on';B.noWrap=true;B.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(A){this._Row.style.display=A?'':'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON:case FCK_TRISTATE_OFF:this._Row.className='CM_Option';break;default:this._Row.className='CM_Disabled';break;};}; |
var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(A){this._Row=A.insertRow(-1);this._Row.className='CM_Separator';var B=this._Row.insertCell(-1);B.className='CM_Icon';B=this._Row.insertCell(-1);B.className='CM_Label';B.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(A){this._Row.style.display=A?'':'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){}; |
var FCKContextMenuGroup=function(A,B,C,D,E){this.IsVisible=true;this.Items=new Array();if (A) this.Add(new FCKContextMenuSeparator());if (B&&C&&D) this.Add(new FCKContextMenuItem(B,C,D,E));this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(A){this.Items[this.Items.length]=A;};FCKContextMenuGroup.prototype.CreateTableRows=function(A){for (var i=0;i<this.Items.length;i++){this.Items[i].CreateTableRow(A);};};FCKContextMenuGroup.prototype.SetVisible=function(A){for (var i=0;i<this.Items.length;i++){this.Items[i].SetVisible(A);};this.IsVisible=A;};FCKContextMenuGroup.prototype.RefreshState=function(){if (!this.IsVisible) return;for (var i=0;i<this.Items.length;i++){this.Items[i].RefreshState();};} |
var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var A=this._Document.createElement('TABLE');A.cellSpacing=0;A.cellPadding=0;A.border=0;this._Div.appendChild(A);this.Groups=new Object();for (var i=0;i<FCKConfig.ContextMenu.length;i++){var B=FCKConfig.ContextMenu[i];this.Groups[B]=this._GetGroup(B);this.Groups[B].CreateTableRows(A);};this._IsLoaded=true;};FCKContextMenu._GetGroup=function(A){var B;switch (A){case 'Generic':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuItem(this,'Cut',FCKLang.Cut,true));B.Add(new FCKContextMenuItem(this,'Copy',FCKLang.Copy,true));B.Add(new FCKContextMenuItem(this,'Paste',FCKLang.Paste,true));break;case 'Link':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'Link',FCKLang.EditLink,true));B.Add(new FCKContextMenuItem(this,'Unlink',FCKLang.RemoveLink,true));break;case 'TableCell':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertRow',FCKLang.InsertRow,true));B.Add(new FCKContextMenuItem(this,'TableDeleteRows',FCKLang.DeleteRows,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertColumn',FCKLang.InsertColumn,true));B.Add(new FCKContextMenuItem(this,'TableDeleteColumns',FCKLang.DeleteColumns,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertCell',FCKLang.InsertCell,true));B.Add(new FCKContextMenuItem(this,'TableDeleteCells',FCKLang.DeleteCells,true));B.Add(new FCKContextMenuItem(this,'TableMergeCells',FCKLang.MergeCells,true));B.Add(new FCKContextMenuItem(this,'TableSplitCell',FCKLang.SplitCell,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableCellProp',FCKLang.CellProperties,true));B.Add(new FCKContextMenuItem(this,'TableProp',FCKLang.TableProperties,true));break;case 'Table':return new FCKContextMenuGroup(true,this,'Table',FCKLang.TableProperties,true);case 'Image':return new FCKContextMenuGroup(true,this,'Image',FCKLang.ImageProperties,true);case 'Flash':return new FCKContextMenuGroup(true,this,'Flash',FCKLang.FlashProperties,true);case 'Form':return new FCKContextMenuGroup(true,this,'Form',FCKLang.FormProp,true);case 'Checkbox':return new FCKContextMenuGroup(true,this,'Checkbox',FCKLang.CheckboxProp,true);case 'Radio':return new FCKContextMenuGroup(true,this,'Radio',FCKLang.RadioButtonProp,true);case 'TextField':return new FCKContextMenuGroup(true,this,'TextField',FCKLang.TextFieldProp,true);case 'HiddenField':return new FCKContextMenuGroup(true,this,'HiddenField',FCKLang.HiddenFieldProp,true);case 'ImageButton':return new FCKContextMenuGroup(true,this,'ImageButton',FCKLang.ImageButtonProp,true);case 'Button':return new FCKContextMenuGroup(true,this,'Button',FCKLang.ButtonProp,true);case 'Select':return new FCKContextMenuGroup(true,this,'Select',FCKLang.SelectionFieldProp,true);case 'Textarea':return new FCKContextMenuGroup(true,this,'Textarea',FCKLang.TextareaProp,true);case 'BulletedList':return new FCKContextMenuGroup(true,this,'BulletedList',FCKLang.BulletedListProp,true);case 'NumberedList':return new FCKContextMenuGroup(true,this,'NumberedList',FCKLang.NumberedListProp,true);case 'Anchor':return new FCKContextMenuGroup(true,this,'Anchor',FCKLang.AnchorProp,true);};return B;};FCKContextMenu.RefreshState=function(){var A=FCKSelection.GetSelectedElement();var B;if (A) B=A.tagName;if (this.Groups['Link']) this.Groups['Link'].SetVisible(FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED);if (this.Groups['TableCell']) this.Groups['TableCell'].SetVisible(B!='TABLE'&&FCKSelection.HasAncestorNode('TABLE'));if (this.Groups['Table']) this.Groups['Table'].SetVisible(B=='TABLE');if (this.Groups['Image']) this.Groups['Image'].SetVisible(B=='IMG'&&!A.getAttribute('_fckflash')&&!A.getAttribute('_fckanchor'));if (this.Groups['Flash']) this.Groups['Flash'].SetVisible(B=='IMG'&&A.getAttribute('_fckflash'));if (this.Groups['Anchor']) this.Groups['Anchor'].SetVisible(B=='IMG'&&A.getAttribute('_fckanchor'));if (this.Groups['BulletedList']) this.Groups['BulletedList'].SetVisible(FCKSelection.HasAncestorNode('UL'));if (this.Groups['NumberedList']) this.Groups['NumberedList'].SetVisible(FCKSelection.HasAncestorNode('OL'));if (this.Groups['Select']) this.Groups['Select'].SetVisible(B=='SELECT');if (this.Groups['Textarea']) this.Groups['Textarea'].SetVisible(B=='TEXTAREA');if (this.Groups['Form']) this.Groups['Form'].SetVisible(FCKSelection.HasAncestorNode('FORM'));if (this.Groups['Checkbox']) this.Groups['Checkbox'].SetVisible(B=='INPUT'&&A.type=='checkbox');if (this.Groups['Radio']) this.Groups['Radio'].SetVisible(B=='INPUT'&&A.type=='radio');if (this.Groups['TextField']) this.Groups['TextField'].SetVisible(B=='INPUT'&&(A.type=='text'||A.type=='password'));if (this.Groups['HiddenField']) this.Groups['HiddenField'].SetVisible(B=='INPUT'&&A.type=='hidden');if (this.Groups['ImageButton']) this.Groups['ImageButton'].SetVisible(B=='INPUT'&&A.type=='image');if (this.Groups['Button']) this.Groups['Button'].SetVisible(B=='INPUT'&&(A.type=='button'||A.type=='submit'||A.type=='reset'));for (var o in this.Groups){this.Groups[o].RefreshState();};}; |
FCKTools.AppendStyleSheet(window.parent.document,FCKConfig.SkinPath+'fck_contextmenu.css');FCKContextMenu.Show=function(x,y){if (!this._Document){this._Document=window.parent.document;};if (!this._IsLoaded){this.Reload();this._Div.style.zIndex=10000;this._Div.oncontextmenu=function() { return false;};};this.RefreshState();var A=FCKTools.GetElementPosition(FCK.EditorWindow.frameElement);var B=FCKTools.GetElementPosition(window.frameElement);x+=A.X+B.X;y+=A.Y+B.Y;var C=x+this._Div.offsetWidth-this._Div.ownerDocument.defaultView.innerWidth;var D=y+this._Div.offsetHeight-this._Div.ownerDocument.defaultView.innerHeight;if (C>0) x-=this._Div.offsetWidth;if (D>0) y-=this._Div.offsetHeight;this._Div.style.left=x+'px';this._Div.style.top=y+'px';var E=FCK.EditorWindow;while (E){E.document.addEventListener('click',FCKContextMenu._OnDocumentClick,false);if (E!=E.parent) E=E.parent;else if (E.opener==null) E=E.opener;else break;};this._Div.style.visibility='';};FCKContextMenu._OnDocumentClick=function(A){var e=A.target;while (e){if (e==FCKContextMenu._Div) return;e=e.parentNode;};FCKContextMenu.Hide();};FCKContextMenu.Hide=function(){this._Div.style.visibility='hidden';this._Div.style.left=this._Div.style.top='1px';} |
if (!FCKConfig.PluginsPath.endsWith('/')) FCKConfig.PluginsPath+='/';var FCKPlugin=function(A,B,C){this.Name=A;this.BasePath=C?C:FCKConfig.PluginsPath;this.Path=this.BasePath+A+'/';if (!B||B.length==0) this.AvailableLangs=new Array();else this.AvailableLangs=B.split(',');};FCKPlugin.prototype.Load=function(){if (this.AvailableLangs.length>0){var A;if (this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) A=FCKLanguageManager.ActiveLanguage.Code;else A=this.AvailableLangs[0];FCKScriptLoader.AddScript(this.Path+'lang/'+A+'.js');};FCKScriptLoader.AddScript(this.Path+'fckplugin.js');} |
var FCKPlugins=FCK.Plugins=new Object();FCKPlugins.ItemsCount=0;FCKPlugins.Loaded=false;FCKPlugins.Items=new Object();for (var i=0;i<FCKConfig.Plugins.Items.length;i++){var oItem=FCKConfig.Plugins.Items[i];FCKPlugins.Items[oItem[0]]=new FCKPlugin(oItem[0],oItem[1],oItem[2]);FCKPlugins.ItemsCount++;};FCKPlugins.Load=function(){for (var s in this.Items) this.Items[s].Load();this.Loaded=true;FCKPlugins.Load=null;} |
if (FCKLang&&window.document.dir.toLowerCase()!=FCKLang.Dir.toLowerCase()) window.document.dir=FCKLang.Dir;if (FCKConfig.ForcePasteAsPlainText) FCK.Events.AttachEvent("OnPaste",FCK.Paste);if (FCKPlugins.ItemsCount>0){FCKScriptLoader.OnEmpty=CompleteLoading;FCKPlugins.Load();}else CompleteLoading();function CompleteLoading(){FCKToolbarSet.Name=FCKURLParams['Toolbar']||'Default';FCKToolbarSet.Load(FCKToolbarSet.Name);FCKToolbarSet.Restart();FCK.AttachToOnSelectionChange(FCKToolbarSet.RefreshItemsState);FCK.SetStatus(FCK_STATUS_COMPLETE);if (typeof(window.parent.FCKeditor_OnComplete)=='function') window.parent.FCKeditor_OnComplete(FCK);} |
if (FCKLang&&window.document.dir.toLowerCase()!=FCKLang.Dir.toLowerCase()) window.document.dir=FCKLang.Dir;if (FCKConfig.ForcePasteAsPlainText) FCK.Events.AttachEvent("OnPaste",FCK.Paste);if (FCKBrowserInfo.IsGecko&&!FCKConfig.UseBROnCarriageReturn){FCK.Events.AttachEvent("OnEnter",FCK.Enter);FCK.Events.AttachEvent("OnBackSpace",FCK.BackSpace);};if (FCKPlugins.ItemsCount>0){FCKScriptLoader.OnEmpty=CompleteLoading;FCKPlugins.Load();}else CompleteLoading();function CompleteLoading(){FCKToolbarSet.Name=FCKURLParams['Toolbar']||'Default';FCKToolbarSet.Load(FCKToolbarSet.Name);FCKToolbarSet.Restart();FCK.AttachToOnSelectionChange(FCKToolbarSet.RefreshItemsState);FCK.SetStatus(FCK_STATUS_COMPLETE);if (typeof(window.parent.FCKeditor_OnComplete)=='function') window.parent.FCKeditor_OnComplete(FCK);} |
/trunk/api/fckeditor/editor/js/fckeditorcode_ie_1.js |
---|
8,18 → 8,20 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* This file has been compacted for best loading performance. |
*/ |
var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message,color){if (!FCKConfig.Debug) return;if (message!=null&&isNaN(message)) message=message.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed) this.DebugWindow=window.open('fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if (this.DebugWindow.Output) this.DebugWindow.Output(message,color);};}else FCKDebug.Output=function() {}; |
var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){if (FCKConfig.FormatOutput) FCK.LinkedField.value=FCKCodeFormatter.Format(value);else FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit",functionPointer);else oForm.addEventListener('submit',functionPointer,true);if (!oForm.updateFCKeditor) oForm.updateFCKeditor=new Array();oForm.updateFCKeditor[oForm.updateFCKeditor.length]=functionPointer;if (!oForm.originalSubmit&&(typeof(oForm.submit)=='function'||(!oForm.submit.tagName&&!oForm.submit.length))){oForm.originalSubmit=oForm.submit;oForm.submit=FCKTools_SubmitReplacer;};};function FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var i=0;i<this.updateFCKeditor.length;i++) this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.AddSelectOption=function(targetDocument,selectElement,optionText,optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length-1;i>=0;i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement,value,defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0;i<selectElement.options.length;i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue!=null) FCKTools.SelectNoCase(selectElement,defaultValue);};FCKTools.HTMLEncode=function(text){if (!text) return '';text=text.replace(/&/g,"&");text=text.replace(/"/g,""");text=text.replace(/</g,"<");text=text.replace(/>/g,">");text=text.replace(/'/g,"'");return text;};FCKTools.GetResultingArray=function(arraySource,separator){switch (typeof(arraySource)){case "string":return arraySource.split(separator);case "function":return separator();default:if (isArray(arraySource)) return arraySource;else return new Array();};};FCKTools.GetElementPosition=function(el){var c={ X:0,Y:0 };while (el){c.X+=el.offsetLeft;c.Y+=el.offsetTop;el=el.offsetParent;};return c;};FCKTools.GetElementAscensor=function(element,ascensorTagName){var e=element.parentNode;while (e){if (e.nodeName==ascensorTagName) return e;e=e.parentNode;};};FCKTools.Pause=function(miliseconds){var oStart=new Date();while (true){var oNow=new Date();if (miliseconds<oNow-oStart) return;};};FCKTools.ConvertStyleSizeToHtml=function(size){return size.endsWith('%')?size:parseInt(size);};FCKTools.ConvertHtmlSizeToStyle=function(size){return size.endsWith('%')?size:(size+'px');} |
FCKTools.AppendStyleSheet=function(documentElement,cssFileUrl){return documentElement.createStyleSheet(cssFileUrl);};FCKTools.ClearElementAttributes=function(element){element.clearAttributes();};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();for (var i=0;i<parentElement.all.length;i++){var sId=parentElement.all[i].id;if (sId&&sId.length>0) aIds[aIds.length]=sId;};return aIds;};FCKTools.RemoveOuterTags=function(e){e.insertAdjacentHTML('beforeBegin',e.innerHTML);e.parentNode.removeChild(e);};FCKTools.CreateXmlObject=function(object){var aObjs;switch (object){case 'XmlHttp':aObjs=['MSXML2.XmlHttp','Microsoft.XmlHttp'];break;case 'DOMDocument':aObjs=['MSXML2.DOMDocument','Microsoft.XmlDom'];break;};for (var i=0;i<2;i++){try { return new ActiveXObject(aObjs[i]);}catch (e) {};};} |
var FCKRegexLib=new Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|INPUT|SELECT|TEXTAREA|HR|OBJECT)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"' ]+)/i;FCKRegexLib.HasBaseTag=/<base /i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/^[A-Za-z_:][\w.-:]*$/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></; |
FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang;if (navigator.userLanguage) sUserLang=navigator.userLanguage.toLowerCase();else if (navigator.language) sUserLang=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if (sUserLang.length>=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length>=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument,tag,propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0;i<aInputs.length;i++){var sKey=aInputs[i].getAttribute('fckLang');if (sKey){var s=FCKLang[sKey];if (s) eval('aInputs[i].'+propertyToSet+' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument,'INPUT','value');this.TranslateElements(targetDocument,'SPAN','innerHTML');this.TranslateElements(targetDocument,'LABEL','innerHTML');this.TranslateElements(targetDocument,'OPTION','innerHTML');};if (FCKLanguageManager.AvailableLanguages[FCKConfig.DefaultLanguage]) FCKLanguageManager.DefaultLanguage=FCKConfig.DefaultLanguage;else FCKLanguageManager.DefaultLanguage='en';FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[FCKLanguageManager.ActiveLanguage.Code];FCK.Language=FCKLanguageManager;LoadLanguageFile(); |
var FCKEvents;if (!(FCKEvents=NS.FCKEvents)){FCKEvents=NS.FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName,functionPointer){if (!this.RegisteredEvents[eventName]) this.RegisteredEvents[eventName]=new Array();this.RegisteredEvents[eventName][this.RegisteredEvents[eventName].length]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName,params){var bReturnValue=true;var oCalls=this.RegisteredEvents[eventName];if (oCalls){for (var i=0;i<oCalls.length;i++) bReturnValue=(oCalls[i](this.Owner,params)&&bReturnValue);};return bReturnValue;};} |
if (FCKConfig.ProcessHTMLEntities){FCKXHtmlEntities=new Object();FCKXHtmlEntities.Entities={' ':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','×':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â ':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â ':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â ':'cong','â':'asymp','â ':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â ':'sdot','â':'loz','â ':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â ':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','¤':'euro'};FCKXHtmlEntities.Chars='';for (var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if (FCKConfig.IncludeLatinEntities){var oEntities={'À':'Agrave','Á':'Aacute','Â':'Acirc','Ã':'Atilde','Ä':'Auml','Å':'Aring','Æ':'AElig','Ç':'Ccedil','È':'Egrave','É':'Eacute','Ê':'Ecirc','Ë':'Euml','Ì':'Igrave','Í':'Iacute','Î':'Icirc','Ï':'Iuml','Ð':'ETH','Ñ':'Ntilde','Ò':'Ograve','Ó':'Oacute','Ô':'Ocirc','Õ':'Otilde','Ö':'Ouml','Ø':'Oslash','Ù':'Ugrave','Ú':'Uacute','Û':'Ucirc','Ü':'Uuml','Ý':'Yacute','Þ':'THORN','ß':'szlig','à':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','å':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','í':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å ':'Scaron','Å¡':'scaron','¾':'Yuml'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};if (FCKConfig.IncludeGreekEntities){var oEntities={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î ':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï ':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};FCKXHtmlEntities.EntitiesRegex=new RegExp('','');FCKXHtmlEntities.EntitiesRegex.compile('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');FCKXHtmlEntities.GeckoEntitiesMarkerRegex=/#\?-\:/g;} |
var FCKXHtml=new Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(node,includeNode,format){FCKXHtml.SpecialBlocks=new Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if (includeNode) this._AppendNode(this.MainNode,node);else this._AppendChildNodes(this.MainNode,node,false);var sXHTML=this._GetMainXmlString();sXHTML=sXHTML.substr(7,sXHTML.length-15).trim();if (FCKBrowserInfo.IsGecko) sXHTML=sXHTML.replace(/<br\/>$/,'');sXHTML=sXHTML.replace(FCKRegexLib.SpaceNoClose,' />');if (FCKConfig.ForceSimpleAmpersand) sXHTML=sXHTML.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (format) sXHTML=FCKCodeFormatter.Format(sXHTML);for (var i=0;i<FCKXHtml.SpecialBlocks.length;i++){var oRegex=new RegExp('___FCKsi___'+i);sXHTML=sXHTML.replace(oRegex,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return sXHTML};FCKXHtml._AppendAttribute=function(xmlNode,attributeName,attributeValue){try{var oXmlAtt=this.XML.createAttribute(attributeName);oXmlAtt.value=attributeValue?attributeValue:'';xmlNode.attributes.setNamedItem(oXmlAtt);}catch (e){};};FCKXHtml._AppendChildNodes=function(xmlNode,htmlNode,isBlockElement){var iCount=0;if (htmlNode.hasChildNodes()){var oChildren=htmlNode.childNodes;for (var i=0;i<oChildren.length;i++){if (this._AppendNode(xmlNode,oChildren[i])) iCount++;};};if (iCount==0){if (isBlockElement&&FCKConfig.FillEmptyBlocks){this._AppendEntity(xmlNode,'nbsp');return;};if (!FCKRegexLib.EmptyElements.test(htmlNode.nodeName)) xmlNode.appendChild(this.XML.createTextNode(''));};};FCKXHtml._AppendNode=function(xmlNode,htmlNode){switch (htmlNode.nodeType){case 1:if (htmlNode.getAttribute('_fckfakelement')) return FCKXHtml._AppendNode(xmlNode,FCK.GetRealElement(htmlNode));if (FCKBrowserInfo.IsGecko&&htmlNode.hasAttribute('_moz_editor_bogus_node')) return false;if (htmlNode.getAttribute('_fckdelete')) return false;var sNodeName=htmlNode.nodeName;if (!FCKRegexLib.ElementName.test(sNodeName)) return false;sNodeName=sNodeName.toLowerCase();if (FCKBrowserInfo.IsGecko&&sNodeName=='br'&&htmlNode.hasAttribute('type')&&htmlNode.getAttribute('type',2)=='_moz') return false;if (htmlNode._fckxhtmljob==FCKXHtml.CurrentJobNum) return false;else htmlNode._fckxhtmljob=FCKXHtml.CurrentJobNum;var oNode=this.XML.createElement(sNodeName);FCKXHtml._AppendAttributes(xmlNode,htmlNode,oNode,sNodeName);var oTagProcessor=FCKXHtml.TagProcessors[sNodeName];if (oTagProcessor){oNode=oTagProcessor(oNode,htmlNode);if (!oNode) break;}else this._AppendChildNodes(oNode,htmlNode,FCKRegexLib.BlockElements.test(sNodeName));xmlNode.appendChild(oNode);break;case 3:this._AppendTextNode(xmlNode,htmlNode.nodeValue.replaceNewLineChars(' '));break;case 8:xmlNode.appendChild(this.XML.createComment(htmlNode.nodeValue));break;default:xmlNode.appendChild(this.XML.createComment("Element not supported - Type: "+htmlNode.nodeType+" Name: "+htmlNode.nodeName));break;};return true;};FCKXHtml._AppendSpecialItem=function(item){return '___FCKsi___'+FCKXHtml.SpecialBlocks.addItem(item);};if (FCKConfig.ProcessHTMLEntities){FCKXHtml._AppendTextNode=function(targetNode,textValue){var asPieces=textValue.match(FCKXHtmlEntities.EntitiesRegex);if (asPieces){for (var i=0;i<asPieces.length;i++){if (asPieces[i].length==1){var sEntity=FCKXHtmlEntities.Entities[asPieces[i]];if (sEntity!=null){this._AppendEntity(targetNode,sEntity);continue;};};targetNode.appendChild(this.XML.createTextNode(asPieces[i]));};};};}else{FCKXHtml._AppendTextNode=function(targetNode,textValue){targetNode.appendChild(this.XML.createTextNode(textValue));};};FCKXHtml.TagProcessors=new Object();FCKXHtml.TagProcessors['img']=function(node){if (!node.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(node,'alt','');return node;};FCKXHtml.TagProcessors['script']=function(node,htmlNode){if (!node.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(node,'type','text/javascript');node.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(htmlNode.text)));return node;};FCKXHtml.TagProcessors['style']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;if (!node.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(node,'type','text/css');node.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(htmlNode.innerHTML)));return node;};FCKXHtml.TagProcessors['title']=function(node,htmlNode){node.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return node;};FCKXHtml.TagProcessors['base']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;return node;};FCKXHtml.TagProcessors['link']=function(node,htmlNode){if (htmlNode.getAttribute('_fcktemp')) return null;return node;};FCKXHtml.TagProcessors['table']=function(node,htmlNode){var oClassAtt=node.attributes.getNamedItem('class');if (oClassAtt&&FCKRegexLib.TableBorderClass.test(oClassAtt.nodeValue)){var sClass=oClassAtt.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (sClass.length==0) node.attributes.removeNamedItem('class');else FCKXHtml._AppendAttribute(node,'class',sClass);};FCKXHtml._AppendChildNodes(node,htmlNode,false);return node;} |
FCKXHtml._GetMainXmlString=function(){return this.MainNode.xml;};FCKXHtml._AppendEntity=function(xmlNode,entity){xmlNode.appendChild(this.XML.createEntityReference(entity));};FCKXHtml._AppendAttributes=function(xmlNode,htmlNode,node,nodeName){var aAttributes=htmlNode.attributes;for (var n=0;n<aAttributes.length;n++){var oAttribute=aAttributes[n];if (oAttribute.specified){var sAttName=oAttribute.nodeName.toLowerCase();var sAttValue;if (sAttName=='_fckxhtmljob') continue;else if (sAttName=='style') sAttValue=htmlNode.style.cssText;else if (sAttName=='class'||sAttName.indexOf('on')==0) sAttValue=oAttribute.nodeValue;else if (nodeName=='body'&&sAttName=='contenteditable') continue;else if (oAttribute.nodeValue===true) sAttValue=sAttName;else if (!(sAttValue=htmlNode.getAttribute(sAttName,2))) sAttValue=oAttribute.nodeValue;if (FCKConfig.ForceSimpleAmpersand&&sAttValue.replace) sAttValue=sAttValue.replace(/&/g,'___FCKAmp___');this._AppendAttribute(node,sAttName,sAttValue);};};};FCKXHtml.TagProcessors['meta']=function(node,htmlNode){var oHttpEquiv=node.attributes.getNamedItem('http-equiv');if (oHttpEquiv==null||oHttpEquiv.value.length==0){var sHttpEquiv=htmlNode.outerHTML.match(FCKRegexLib.MetaHttpEquiv);if (sHttpEquiv){sHttpEquiv=sHttpEquiv[1];FCKXHtml._AppendAttribute(node,'http-equiv',sHttpEquiv);};};return node;};FCKXHtml.TagProcessors['font']=function(node,htmlNode){if (node.attributes.length==0) node=FCKXHtml.XML.createDocumentFragment();FCKXHtml._AppendChildNodes(node,htmlNode);return node;};FCKXHtml.TagProcessors['input']=function(node,htmlNode){if (htmlNode.name) FCKXHtml._AppendAttribute(node,'name',htmlNode.name);if (htmlNode.value&&!node.attributes.getNamedItem('value')) FCKXHtml._AppendAttribute(node,'value',htmlNode.value);return node;};FCKXHtml.TagProcessors['option']=function(node,htmlNode){if (htmlNode.selected&&!node.attributes.getNamedItem('selected')) FCKXHtml._AppendAttribute(node,'selected','selected');FCKXHtml._AppendChildNodes(node,htmlNode);return node;};FCKXHtml.TagProcessors['abbr']=function(node,htmlNode){var oNextNode=htmlNode.nextSibling;while (true){if (oNextNode&&oNextNode.nodeName!='/ABBR'){FCKXHtml._AppendNode(node,oNextNode);oNextNode=oNextNode.nextSibling;}else break;};return node;};FCKXHtml.TagProcessors['area']=function(node,htmlNode){if (!node.attributes.getNamedItem('coords')){var sCoords=htmlNode.getAttribute('coords',2);if (sCoords&&sCoords!='0,0,0') FCKXHtml._AppendAttribute(node,'coords',sCoords);};if (!node.attributes.getNamedItem('shape')){var sCoords=htmlNode.getAttribute('shape',2);if (sCoords&&sCoords.length>0) FCKXHtml._AppendAttribute(node,'shape',sCoords);};return node;};FCKXHtml.TagProcessors['label']=function(node,htmlNode){if (htmlNode.htmlFor.length>0) FCKXHtml._AppendAttribute(node,'for',htmlNode.htmlFor);FCKXHtml._AppendChildNodes(node,htmlNode);return node;};FCKXHtml.TagProcessors['form']=function(node,htmlNode){if (htmlNode.acceptCharset.length>0&&htmlNode.acceptCharset!='UNKNOWN') FCKXHtml._AppendAttribute(node,'accept-charset',htmlNode.acceptCharset);if (htmlNode.name) FCKXHtml._AppendAttribute(node,'name',htmlNode.name);FCKXHtml._AppendChildNodes(node,htmlNode);return node;};FCKXHtml.TagProcessors['textarea']=FCKXHtml.TagProcessors['select']=function(node,htmlNode){if (htmlNode.name) FCKXHtml._AppendAttribute(node,'name',htmlNode.name);FCKXHtml._AppendChildNodes(node,htmlNode);return node;} |
var FCKCodeFormatter;if (!(FCKCodeFormatter=NS.FCKCodeFormatter)){FCKCodeFormatter=NS.FCKCodeFormatter=new Object();FCKCodeFormatter.Regex=new Object();FCKCodeFormatter.Regex.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.NewLineTags=/\<(BR|HR)[^\>]\>/gi;FCKCodeFormatter.Regex.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;FCKCodeFormatter.Regex.LineSplitter=/\s*\n+\s*/g;FCKCodeFormatter.Regex.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \/\>]/i;FCKCodeFormatter.Regex.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \>]/i;FCKCodeFormatter.Regex.FormatIndentatorRemove=new RegExp(FCKConfig.FormatIndentator);FCKCodeFormatter.Format=function(html){var sFormatted=html.replace(this.Regex.BlocksOpener,'\n$&');;sFormatted=sFormatted.replace(this.Regex.BlocksCloser,'$&\n');sFormatted=sFormatted.replace(this.Regex.NewLineTags,'$&\n');sFormatted=sFormatted.replace(this.Regex.MainTags,'\n$&\n');var sIndentation='';var asLines=sFormatted.split(this.Regex.LineSplitter);sFormatted='';for (var i=0;i<asLines.length;i++){var sLine=asLines[i];if (sLine.length==0) continue;if (this.Regex.DecreaseIndent.test(sLine)) sIndentation=sIndentation.replace(this.Regex.FormatIndentatorRemove,'');sFormatted+=sIndentation+sLine+'\n';if (this.Regex.IncreaseIndent.test(sLine)) sIndentation+=FCKConfig.FormatIndentator;};return sFormatted.trim();};} |
var FCKUndo=new Object();FCKUndo.SavedData=new Array();FCKUndo.CurrentIndex=-1;FCKUndo.TypesCount=FCKUndo.MaxTypes=25;FCKUndo.Typing=false;FCKUndo.SaveUndoStep=function(){FCKUndo.SavedData=FCKUndo.SavedData.slice(0,FCKUndo.CurrentIndex+1);var sHtml=FCK.EditorDocument.body.innerHTML;if (FCKUndo.CurrentIndex>=0&&sHtml==FCKUndo.SavedData[FCKUndo.CurrentIndex][0]) return;if (FCKUndo.CurrentIndex+1>=FCKConfig.MaxUndoLevels) FCKUndo.SavedData.shift();else FCKUndo.CurrentIndex++;var sBookmark;if (FCK.EditorDocument.selection.type=='Text') sBookmark=FCK.EditorDocument.selection.createRange().getBookmark();FCKUndo.SavedData[FCKUndo.CurrentIndex]=[sHtml,sBookmark];FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.Undo=function(){if (FCKUndo.CurrentIndex>=0){if (FCKUndo.CurrentIndex==(FCKUndo.SavedData.length-1)){FCKUndo.SaveUndoStep();};FCKUndo._ApplyUndoLevel(--FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");};};FCKUndo.Redo=function(){if (FCKUndo.CurrentIndex<(FCKUndo.SavedData.length-1)){FCKUndo._ApplyUndoLevel(++FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");};};FCKUndo._ApplyUndoLevel=function(level){var oData=FCKUndo.SavedData[level];FCK.EditorDocument.body.innerHTML=oData[0];if (oData[1]){var oRange=FCK.EditorDocument.selection.createRange();oRange.moveToBookmark(oData[1]);oRange.select();};FCKUndo.TypesCount=0;FCKUndo.Typing=false;} |
FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.StartEditor=function(){this.EditorWindow=window.frames['eEditorArea'];this.EditorDocument=this.EditorWindow.document;if (FCKBrowserInfo.IsGecko) this.MakeEditable();this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);FCKUndo.SaveUndoStep();this.SetStatus(FCK_STATUS_ACTIVE);};function Window_OnFocus(){FCK.Focus();};FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){window.onfocus=window.document.body.onfocus=Window_OnFocus;if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange',newStatus);};FCK.GetHTML=function(format){var sHTML;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsIE) sHTML=this.EditorDocument.body.innerHTML.replace(FCKRegexLib.ToReplace,'$1');else sHTML=this.EditorDocument.body.innerHTML;}else sHTML=document.getElementById('eSourceField').value;if (format) return FCKCodeFormatter.Format(sHTML);else return sHTML;};FCK.GetXHTML=function(format){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();if (FCKConfig.FullPage) var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,format);else{if (FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>') var sXHTML='';else var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body,false,format);};if (bSource) this.SwitchEditMode();if (FCKBrowserInfo.IsIE) sXHTML=sXHTML.replace(FCKRegexLib.ToReplace,'$1');if (FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0) sXHTML=FCK.DocTypeDeclaration+'\n'+sXHTML;if (FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0) sXHTML=FCK.XmlDeclaration+'\n'+sXHTML;return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML(FCKConfig.FormatOutput));else FCKTools.SetLinkedFieldValue(FCK.GetHTML(FCKConfig.FormatOutput));};FCK.ShowContextMenu=function(x,y){if (this.Status!=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x,y);this.Events.FireEvent("OnContextMenu");};FCK.RegisteredDoubleClickHandlers=new Object();FCK.OnDoubleClick=function(element){var oHandler=FCK.RegisteredDoubleClickHandlers[element.tagName];if (oHandler) oHandler(element);};FCK.RegisterDoubleClickHandler=function(handlerFunction,tag){FCK.RegisteredDoubleClickHandlers[tag.toUpperCase()]=handlerFunction;};FCK.OnAfterSetHTML=function(){var oProcessor,i=0;while(oProcessor=FCKDocumentProcessors[i++]) oProcessor.ProcessDocument(FCK.EditorDocument);this.Events.FireEvent('OnAfterSetHTML');};var FCKDocumentProcessors=new Array();var FCKDocumentProcessors_CreateFakeImage=function(fakeClass,realElement){var oImg=FCK.EditorDocument.createElement('IMG');oImg.className=fakeClass;oImg.src=FCKConfig.FullBasePath+'images/spacer.gif';oImg.setAttribute('_fckfakelement','true',0);oImg.setAttribute('_fckrealelement',FCKTempBin.AddElement(realElement),0);return oImg;};var FCKAnchorsProcessor=new Object();FCKAnchorsProcessor.ProcessDocument=function(document){var aLinks=document.getElementsByTagName('A');var oLink;var i=aLinks.length-1;while (i>=0&&(oLink=aLinks[i--])){if (oLink.name.length>0&&(!oLink.getAttribute('href')||oLink.getAttribute('href').length==0)){var oImg=FCKDocumentProcessors_CreateFakeImage('FCK__Anchor',oLink.cloneNode(true));oImg.setAttribute('_fckanchor','true',0);oLink.parentNode.insertBefore(oImg,oLink);oLink.parentNode.removeChild(oLink);};};};FCKDocumentProcessors.addItem(FCKAnchorsProcessor);var FCKFlashProcessor=new Object();FCKFlashProcessor.ProcessDocument=function(document){var aEmbeds=document.getElementsByTagName('EMBED');var oEmbed;var i=aEmbeds.length-1;while (i>=0&&(oEmbed=aEmbeds[i--])){if (oEmbed.src.endsWith('.swf',true)){var oImg=FCKDocumentProcessors_CreateFakeImage('FCK__Flash',oEmbed.cloneNode(true));oImg.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(oImg,oEmbed);oEmbed.parentNode.insertBefore(oImg,oEmbed);oEmbed.parentNode.removeChild(oEmbed);};};};FCKFlashProcessor.RefreshView=function(placholderImage,originalEmbed){if (originalEmbed.width>0) placholderImage.style.width=FCKTools.ConvertHtmlSizeToStyle(originalEmbed.width);if (originalEmbed.height>0) placholderImage.style.height=FCKTools.ConvertHtmlSizeToStyle(originalEmbed.height);};FCKDocumentProcessors.addItem(FCKFlashProcessor);FCK.GetRealElement=function(fakeElement){var e=FCKTempBin.Elements[fakeElement.getAttribute('_fckrealelement')];if (fakeElement.getAttribute('_fckflash')){if (fakeElement.style.width.length>0) e.width=FCKTools.ConvertStyleSizeToHtml(fakeElement.style.width);if (fakeElement.style.height.length>0) e.height=FCKTools.ConvertStyleSizeToHtml(fakeElement.style.height);};return e;} |
FCK.Description="FCKeditor for Internet Explorer 5.5+";FCK._BehaviorsStyle='<style type="text/css" _fcktemp="true"> \ INPUT { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/hiddenfield.htc) ; } \ INPUT { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; } \ TEXTAREA { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; } \ SELECT { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';if (FCKConfig.ShowBorders) FCK._BehaviorsStyle+='TABLE { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/showtableborders.htc) ; }';if (FCKConfig.DisableImageHandles) FCK._BehaviorsStyle+='IMG { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';if (FCKConfig.DisableTableHandles) FCK._BehaviorsStyle+='TABLE { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';FCK._BehaviorsStyle+='.FCK__Anchor { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';FCK._BehaviorsStyle+='</style>';function Doc_OnMouseDown(){FCK.Focus();FCK.EditorWindow.event.cancelBubble=true;FCK.EditorWindow.event.returnValue=false;};function Doc_OnPaste(){if (FCK.Status==FCK_STATUS_COMPLETE) return FCK.Events.FireEvent("OnPaste");else return false;};function Doc_OnContextMenu(){var e=FCK.EditorWindow.event;FCK.ShowContextMenu(e.screenX,e.screenY);return false;};function Doc_OnKeyDown(){var e=FCK.EditorWindow.event;if (e.keyCode==13&&FCKConfig.UseBROnCarriageReturn){if ((e.ctrlKey||e.altKey||e.shiftKey)) return true;else{if (FCK.EditorDocument.queryCommandState('InsertOrderedList')||FCK.EditorDocument.queryCommandState('InsertUnorderedList')) return true;FCK.InsertHtml("<br> ");var oRange=FCK.EditorDocument.selection.createRange();oRange.moveStart('character',-1);oRange.select();FCK.EditorDocument.selection.clear();return false;};}else if (e.keyCode==9&&FCKConfig.TabSpaces>0&&!(e.ctrlKey||e.altKey||e.shiftKey)){FCK.InsertHtml(window.FCKTabHTML);return false;};return true;};function Doc_OnKeyDownUndo(){if (!FCKUndo.Typing){FCKUndo.SaveUndoStep();FCKUndo.Typing=true;FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.TypesCount++;if (FCKUndo.TypesCount>FCKUndo.MaxTypes){FCKUndo.TypesCount=0;FCKUndo.SaveUndoStep();};};function Doc_OnDblClick(){FCK.OnDoubleClick(FCK.EditorWindow.event.srcElement);FCK.EditorWindow.event.cancelBubble=true;};function Doc_OnSelectionChange(){FCK.Events.FireEvent("OnSelectionChange");};FCK.InitializeBehaviors=function(dontReturn){this.EditorDocument.attachEvent('onmousedown',Doc_OnMouseDown);this.EditorDocument.attachEvent('onmouseup',Doc_OnMouseDown);this.EditorDocument.body.attachEvent('onpaste',Doc_OnPaste);this.EditorDocument.attachEvent('oncontextmenu',Doc_OnContextMenu);if (FCKConfig.UseBROnCarriageReturn||FCKConfig.TabSpaces>0){if (FCKConfig.TabSpaces>0){window.FCKTabHTML='';for (i=0;i<FCKConfig.TabSpaces;i++) window.FCKTabHTML+=" ";};this.EditorDocument.attachEvent("onkeydown",Doc_OnKeyDown);};this.EditorDocument.attachEvent("onkeydown",Doc_OnKeyDownUndo);this.EditorDocument.attachEvent("ondblclick",Doc_OnDblClick);this.EditorDocument.attachEvent("onselectionchange",Doc_OnSelectionChange);};FCK.Focus=function(){try{if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) FCK.EditorDocument.body.focus();else document.getElementById('eSourceField').focus();}catch(e) {};};FCK.SetHTML=function(html,forceWYSIWYG){if (forceWYSIWYG||FCK.EditMode==FCK_EDITMODE_WYSIWYG){var sHtml;if (FCKConfig.FullPage){var sHtml=FCK._BehaviorsStyle+'<link href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />';if (FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(html)) sHtml+=FCK.TempBaseTag;sHtml=html.replace(FCKRegexLib.HeadCloser,sHtml+'</head>');}else{sHtml=FCKConfig.DocType+'<html dir="'+FCKConfig.ContentLangDirection+'"';if (FCKConfig.IEForceVScroll) sHtml+=' style="overflow-y: scroll"';sHtml+='><head><title></title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+'<link href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />';sHtml+=FCK._BehaviorsStyle;sHtml+=FCK.TempBaseTag;sHtml+='</head><body>'+html+'</body></html>';};this.EditorDocument.open('','_self','',true);this.EditorDocument.write(sHtml);this.EditorDocument.close();this.InitializeBehaviors();this.EditorDocument.body.contentEditable=true;FCK.OnAfterSetHTML();}else document.getElementById('eSourceField').value=html;};FCK.InsertHtml=function(html){FCK.Focus();FCKUndo.SaveUndoStep();var oSel=FCK.EditorDocument.selection;if (oSel.type.toLowerCase()!="none") oSel.clear();oSel.createRange().pasteHTML(html);} |
var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(A,B){if (!FCKConfig.Debug) return;if (A!=null&&isNaN(A)) A=A.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed) this.DebugWindow=window.open('fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if (this.DebugWindow.Output) this.DebugWindow.Output(A,B);};}else FCKDebug.Output=function() {}; |
var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.AttachToLinkedFieldFormSubmit=function(A){var B=FCK.LinkedField.form;if (!B) return;if (FCKBrowserInfo.IsIE) B.attachEvent("onsubmit",A);else B.addEventListener('submit',A,true);if (!B.updateFCKeditor) B.updateFCKeditor=new Array();B.updateFCKeditor[B.updateFCKeditor.length]=A;if (!B.originalSubmit&&(typeof(B.submit)=='function'||(!B.submit.tagName&&!B.submit.length))){B.originalSubmit=B.submit;B.submit=FCKTools_SubmitReplacer;};};function FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var i=0;i<this.updateFCKeditor.length;i++) this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.AddSelectOption=function(A,B,C,D){var E=A.createElement("OPTION");E.text=C;E.value=D;B.options.add(E);return E;};FCKTools.RemoveAllSelectOptions=function(A){for (var i=A.options.length-1;i>=0;i--){A.options.remove(i);};};FCKTools.SelectNoCase=function(A,B,C){var D=B.toString().toLowerCase();for (var i=0;i<A.options.length;i++){if (D==A.options[i].value.toLowerCase()){A.selectedIndex=i;return;};};if (C!=null) FCKTools.SelectNoCase(A,C);};FCKTools.HTMLEncode=function(A){if (!A) return '';A=A.replace(/&/g,"&");A=A.replace(/"/g,""");A=A.replace(/</g,"<");A=A.replace(/>/g,">");A=A.replace(/'/g,"'");return A;};FCKTools.GetResultingArray=function(A,B){switch (typeof(A)){case "string":return A.split(B);case "function":return B();default:if (isArray(A)) return A;else return new Array();};};FCKTools.GetElementPosition=function(A){var c={ X:0,Y:0 };while (A){c.X+=A.offsetLeft;c.Y+=A.offsetTop;A=A.offsetParent;};return c;};FCKTools.GetElementAscensor=function(A,B){var e=A;var C=","+B.toUpperCase()+",";while (e){if (C.indexOf(","+e.nodeName.toUpperCase()+",")!=-1) return e;e=e.parentNode;};return null;};FCKTools.Pause=function(A){var B=new Date();while (true){var C=new Date();if (A<C-B) return;};};FCKTools.ConvertStyleSizeToHtml=function(A){return A.endsWith('%')?A:parseInt(A);};FCKTools.ConvertHtmlSizeToStyle=function(A){return A.endsWith('%')?A:(A+'px');};FCKTools.SetElementAttributes=function(A,B){for (var i=0;i<B.length;i++){if (B[i].specified) A.setAttribute(B[i].nodeName,B[i].nodeValue,0);};};FCKTools.GetParentBlockNode=function(A){if (A.nodeName.toUpperCase()=="BODY") return null;else if (A.nodeType==1&&FCKRegexLib.BlockElements.test(A.tagName)) return A;else return FCKTools.GetParentBlockNode(A.parentNode);};FCKTools.NodeIsEmpty=function(A){var B=A.childNodes[0];while (B){if ((B.nodeType!=1&&B.nodeType!=3)||(B.nodeType==1&&B.nodeName.toUpperCase()!="BR")||(B.nodeType==3&&B.nodeValue&&B.nodeValue.trim()!='')) return false;B=B.nextSibling;};return true;};FCKTools.GetDocumentFragment=function(A,B,C,D,E,F){if (typeof D=="undefined") D=true;if (typeof E=="undefined") E=true;if (typeof F=="undefined") F=true;var G=FCK.EditorDocument.createDocumentFragment();var H=B;while (H&&H!=C){if (H!=B||D) G.appendChild(F?H.cloneNode(true):H);H=H.nextSibling;};if (H&&(B!=C&&E)) G.appendChild(F?H.cloneNode(true):H);return G;}; |
FCKTools.AppendStyleSheet=function(A,B){return A.createStyleSheet(B);};FCKTools.ClearElementAttributes=function(A){A.clearAttributes();};FCKTools.GetAllChildrenIds=function(A){var B=new Array();for (var i=0;i<A.all.length;i++){var C=A.all[i].id;if (C&&C.length>0) B[B.length]=C;};return B;};FCKTools.RemoveOuterTags=function(e){e.insertAdjacentHTML('beforeBegin',e.innerHTML);e.parentNode.removeChild(e);};FCKTools.CreateXmlObject=function(A){var B;switch (A){case 'XmlHttp':B=['MSXML2.XmlHttp','Microsoft.XmlHttp'];break;case 'DOMDocument':B=['MSXML2.DOMDocument','Microsoft.XmlDom'];break;};for (var i=0;i<2;i++){try { return new ActiveXObject(B[i]);}catch (e){};};if (FCKLang.NoActiveX){alert(FCKLang.NoActiveX);FCKLang.NoActiveX=null;};} |
var FCKRegexLib=new Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|INPUT|SELECT|TEXTAREA|HR|OBJECT)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TABLE|CAPTION)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"' ]+)/i;FCKRegexLib.HasBaseTag=/<base /i;FCKRegexLib.HeadOpener=/<head\s?[^>]*>/i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/^[A-Za-z_:][\w.-:]*$/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></;FCKRegexLib.TableCellElements=/^(?:TD|TH)$/i;FCKRegexLib.SpecialBlockElements=/^(?:BODY|TH|TD|CAPTION)$/i;FCKRegexLib.TableBlockElements=/^(?:BODY|DIV|LI|TD|TH)$/i;FCKRegexLib.ListElements=/^(?:OL|UL)$/i;FCKRegexLib.EmptyElement=/<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|SPAN|A)[^\>]*>\s*<\/\1>/gi;FCKRegexLib.StrongOpener=/<STRONG([ \>])/gi;FCKRegexLib.StrongCloser=/<\/STRONG>/gi;FCKRegexLib.EmOpener=/<EM([ \>])/gi;FCKRegexLib.EmCloser=/<\/EM>/gi; |
FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var A;if (navigator.userLanguage) A=navigator.userLanguage.toLowerCase();else if (navigator.language) A=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if (A.length>=5){A=A.substr(0,5);if (this.AvailableLanguages[A]) return A;};if (A.length>=2){A=A.substr(0,2);if (this.AvailableLanguages[A]) return A;};};return this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(A,B,C){var e=A.getElementsByTagName(B);for (var i=0;i<e.length;i++){var D=e[i].getAttribute('fckLang');if (D){var s=FCKLang[D];if (s) eval('e[i].'+C+' = s');};};};FCKLanguageManager.TranslatePage=function(A){this.TranslateElements(A,'INPUT','value');this.TranslateElements(A,'SPAN','innerHTML');this.TranslateElements(A,'LABEL','innerHTML');this.TranslateElements(A,'OPTION','innerHTML');};if (FCKLanguageManager.AvailableLanguages[FCKConfig.DefaultLanguage]) FCKLanguageManager.DefaultLanguage=FCKConfig.DefaultLanguage;else FCKLanguageManager.DefaultLanguage='en';FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[FCKLanguageManager.ActiveLanguage.Code];FCK.Language=FCKLanguageManager;LoadLanguageFile(); |
var FCKEvents;if (!(FCKEvents=NS.FCKEvents)){FCKEvents=NS.FCKEvents=function(A){this.Owner=A;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(A,B){if (!this.RegisteredEvents[A]) this.RegisteredEvents[A]=new Array();this.RegisteredEvents[A][this.RegisteredEvents[A].length]=B;};FCKEvents.prototype.FireEvent=function(A,B){var C=true;var D=this.RegisteredEvents[A];if (D){for (var i=0;i<D.length;i++) C=(D[i](this.Owner,B)&&C);};return C;};} |
if (FCKConfig.ProcessHTMLEntities){var FCKXHtmlEntities=new Object();FCKXHtmlEntities.Entities={' ':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','×':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â ':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â ':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â ':'cong','â':'asymp','â ':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â ':'sdot','â':'loz','â ':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â ':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','¤':'euro'};FCKXHtmlEntities.Chars='';for (var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if (FCKConfig.IncludeLatinEntities){var oEntities={'À':'Agrave','Á':'Aacute','Â':'Acirc','Ã':'Atilde','Ä':'Auml','Å':'Aring','Æ':'AElig','Ç':'Ccedil','È':'Egrave','É':'Eacute','Ê':'Ecirc','Ë':'Euml','Ì':'Igrave','Í':'Iacute','Î':'Icirc','Ï':'Iuml','Ð':'ETH','Ñ':'Ntilde','Ò':'Ograve','Ó':'Oacute','Ô':'Ocirc','Õ':'Otilde','Ö':'Ouml','Ø':'Oslash','Ù':'Ugrave','Ú':'Uacute','Û':'Ucirc','Ü':'Uuml','Ý':'Yacute','Þ':'THORN','ß':'szlig','à':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','å':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','í':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å ':'Scaron','Å¡':'scaron','¾':'Yuml'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};if (FCKConfig.IncludeGreekEntities){var oEntities={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î ':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï ':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in oEntities){FCKXHtmlEntities.Entities[e]=oEntities[e];FCKXHtmlEntities.Chars+=e;};oEntities=null;};FCKXHtmlEntities.EntitiesRegex=new RegExp('','');FCKXHtmlEntities.EntitiesRegex.compile('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');FCKXHtmlEntities.GeckoEntitiesMarkerRegex=/#\?-\:/g;} |
var FCKXHtml=new Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(A,B,C){FCKXHtml.SpecialBlocks=new Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if (B) this._AppendNode(this.MainNode,A);else this._AppendChildNodes(this.MainNode,A,false);var D=this._GetMainXmlString();D=D.substr(7,D.length-15).trim();if (FCKBrowserInfo.IsGecko) D=D.replace(/<br\/>$/,'');D=D.replace(FCKRegexLib.SpaceNoClose,' />');if (FCKConfig.ForceSimpleAmpersand) D=D.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (C) D=FCKCodeFormatter.Format(D);for (var i=0;i<FCKXHtml.SpecialBlocks.length;i++){var E=new RegExp('___FCKsi___'+i);D=D.replace(E,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return D};FCKXHtml._AppendAttribute=function(A,B,C){try{var D=this.XML.createAttribute(B);D.value=C?C:'';A.attributes.setNamedItem(D);}catch (e){};};FCKXHtml._AppendChildNodes=function(A,B,C){var D=0;if (B.hasChildNodes()){var E=B.childNodes;for (var i=0;i<E.length;i++){if (this._AppendNode(A,E[i])) D++;};};if (D==0){if (C&&FCKConfig.FillEmptyBlocks){this._AppendEntity(A,'nbsp');return;};if (!FCKRegexLib.EmptyElements.test(B.nodeName)) A.appendChild(this.XML.createTextNode(''));};};FCKXHtml._AppendNode=function(A,B){switch (B.nodeType){case 1:if (B.getAttribute('_fckfakelement')) return FCKXHtml._AppendNode(A,FCK.GetRealElement(B));if (FCKBrowserInfo.IsGecko&&B.hasAttribute('_moz_editor_bogus_node')) return false;if (B.getAttribute('_fckdelete')) return false;var C=B.nodeName;if (!FCKRegexLib.ElementName.test(C)) return false;C=C.toLowerCase();if (FCKBrowserInfo.IsGecko&&C=='br'&&B.hasAttribute('type')&&B.getAttribute('type',2)=='_moz') return false;if (B._fckxhtmljob&&B._fckxhtmljob==FCKXHtml.CurrentJobNum) return false;else B._fckxhtmljob=FCKXHtml.CurrentJobNum;var D=this._CreateNode(C);FCKXHtml._AppendAttributes(A,B,D,C);var E=FCKXHtml.TagProcessors[C];if (E){D=E(D,B);if (!D) break;}else this._AppendChildNodes(D,B,FCKRegexLib.BlockElements.test(C));A.appendChild(D);break;case 3:this._AppendTextNode(A,B.nodeValue.replaceNewLineChars(' '));break;case 8:try { A.appendChild(this.XML.createComment(B.nodeValue));}catch (e) { /* Do nothing... probably this is a wrong format comment. */};break;default:A.appendChild(this.XML.createComment("Element not supported - Type: "+B.nodeType+" Name: "+B.nodeName));break;};return true;};if (FCKConfig.ForceStrongEm){FCKXHtml._CreateNode=function(A){switch (A){case 'b':A='strong';break;case 'i':A='em';break;};return this.XML.createElement(A);};}else{FCKXHtml._CreateNode=function(A){return this.XML.createElement(A);};};FCKXHtml._AppendSpecialItem=function(A){return '___FCKsi___'+FCKXHtml.SpecialBlocks.addItem(A);};if (FCKConfig.ProcessHTMLEntities){FCKXHtml._AppendTextNode=function(A,B){var C=B.match(FCKXHtmlEntities.EntitiesRegex);if (C){for (var i=0;i<C.length;i++){if (C[i].length==1){var D=FCKXHtmlEntities.Entities[C[i]];if (D!=null){this._AppendEntity(A,D);continue;};};A.appendChild(this.XML.createTextNode(C[i]));};};};}else{FCKXHtml._AppendTextNode=function(A,B){A.appendChild(this.XML.createTextNode(B));};};FCKXHtml.TagProcessors=new Object();FCKXHtml.TagProcessors['img']=function(A){if (!A.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(A,'alt','');return A;};FCKXHtml.TagProcessors['script']=function(A,B){if (!A.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(A,'type','text/javascript');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.text)));return A;};FCKXHtml.TagProcessors['style']=function(A,B){if (B.getAttribute('_fcktemp')) return null;if (!A.attributes.getNamedItem('type')) FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML)));return A;};FCKXHtml.TagProcessors['title']=function(A,B){A.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return A;};FCKXHtml.TagProcessors['base']=function(A,B){if (B.getAttribute('_fcktemp')) return null;return A;};FCKXHtml.TagProcessors['link']=function(A,B){if (B.getAttribute('_fcktemp')) return null;return A;};FCKXHtml.TagProcessors['table']=function(A,B){var C=A.attributes.getNamedItem('class');if (C&&FCKRegexLib.TableBorderClass.test(C.nodeValue)){var D=C.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (D.length==0) A.attributes.removeNamedItem('class');else FCKXHtml._AppendAttribute(A,'class',D);};FCKXHtml._AppendChildNodes(A,B,false);return A;} |
FCKXHtml._GetMainXmlString=function(){return this.MainNode.xml;};FCKXHtml._AppendEntity=function(A,B){A.appendChild(this.XML.createEntityReference(B));};FCKXHtml._AppendAttributes=function(A,B,C,D){var E=B.attributes;for (var n=0;n<E.length;n++){var F=E[n];if (F.specified){var G=F.nodeName.toLowerCase();var H;if (G=='_fckxhtmljob') continue;else if (G=='style') H=B.style.cssText;else if (G=='class'||G.indexOf('on')==0) H=F.nodeValue;else if (D=='body'&&G=='contenteditable') continue;else if (F.nodeValue===true) H=G;else if (!(H=B.getAttribute(G,2))) H=F.nodeValue;if (FCKConfig.ForceSimpleAmpersand&&H.replace) H=H.replace(/&/g,'___FCKAmp___');this._AppendAttribute(C,G,H);};};};FCKXHtml.TagProcessors['meta']=function(A,B){var C=A.attributes.getNamedItem('http-equiv');if (C==null||C.value.length==0){var D=B.outerHTML.match(FCKRegexLib.MetaHttpEquiv);if (D){D=D[1];FCKXHtml._AppendAttribute(A,'http-equiv',D);};};return A;};FCKXHtml.TagProcessors['font']=function(A,B){if (A.attributes.length==0) A=FCKXHtml.XML.createDocumentFragment();FCKXHtml._AppendChildNodes(A,B);return A;};FCKXHtml.TagProcessors['input']=function(A,B){if (B.name) FCKXHtml._AppendAttribute(A,'name',B.name);if (B.value&&!A.attributes.getNamedItem('value')) FCKXHtml._AppendAttribute(A,'value',B.value);return A;};FCKXHtml.TagProcessors['option']=function(A,B){if (B.selected&&!A.attributes.getNamedItem('selected')) FCKXHtml._AppendAttribute(A,'selected','selected');FCKXHtml._AppendChildNodes(A,B);return A;};FCKXHtml.TagProcessors['abbr']=function(A,B){var C=B.nextSibling;while (true){if (C&&C.nodeName!='/ABBR'){FCKXHtml._AppendNode(A,C);C=C.nextSibling;}else break;};return A;};FCKXHtml.TagProcessors['area']=function(A,B){if (!A.attributes.getNamedItem('coords')){var C=B.getAttribute('coords',2);if (C&&C!='0,0,0') FCKXHtml._AppendAttribute(A,'coords',C);};if (!A.attributes.getNamedItem('shape')){var C=B.getAttribute('shape',2);if (C&&C.length>0) FCKXHtml._AppendAttribute(A,'shape',C);};return A;};FCKXHtml.TagProcessors['label']=function(A,B){if (B.htmlFor.length>0) FCKXHtml._AppendAttribute(A,'for',B.htmlFor);FCKXHtml._AppendChildNodes(A,B);return A;};FCKXHtml.TagProcessors['form']=function(A,B){if (B.acceptCharset.length>0&&B.acceptCharset!='UNKNOWN') FCKXHtml._AppendAttribute(A,'accept-charset',B.acceptCharset);if (B.name) FCKXHtml._AppendAttribute(A,'name',B.name);FCKXHtml._AppendChildNodes(A,B);return A;};FCKXHtml.TagProcessors['textarea']=FCKXHtml.TagProcessors['select']=function(A,B){if (B.name) FCKXHtml._AppendAttribute(A,'name',B.name);FCKXHtml._AppendChildNodes(A,B);return A;} |
var FCKCodeFormatter;if (!(FCKCodeFormatter=NS.FCKCodeFormatter)){FCKCodeFormatter=NS.FCKCodeFormatter=new Object();FCKCodeFormatter.Regex=new Object();FCKCodeFormatter.Regex.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|AREA|OPTION)[^\>]*\>/gi;FCKCodeFormatter.Regex.NewLineTags=/\<(BR|HR)[^\>]\>/gi;FCKCodeFormatter.Regex.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;FCKCodeFormatter.Regex.LineSplitter=/\s*\n+\s*/g;FCKCodeFormatter.Regex.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \/\>]/i;FCKCodeFormatter.Regex.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[ \>]/i;FCKCodeFormatter.Regex.FormatIndentatorRemove=new RegExp(FCKConfig.FormatIndentator);FCKCodeFormatter.Format=function(A){var B=A.replace(this.Regex.BlocksOpener,'\n$&');;B=B.replace(this.Regex.BlocksCloser,'$&\n');B=B.replace(this.Regex.NewLineTags,'$&\n');B=B.replace(this.Regex.MainTags,'\n$&\n');var C='';var D=B.split(this.Regex.LineSplitter);B='';for (var i=0;i<D.length;i++){var E=D[i];if (E.length==0) continue;if (this.Regex.DecreaseIndent.test(E)) C=C.replace(this.Regex.FormatIndentatorRemove,'');B+=C+E+'\n';if (this.Regex.IncreaseIndent.test(E)) C+=FCKConfig.FormatIndentator;};return B.trim();};} |
var FCKUndo=new Object();FCKUndo.SavedData=new Array();FCKUndo.CurrentIndex=-1;FCKUndo.TypesCount=FCKUndo.MaxTypes=25;FCKUndo.Typing=false;FCKUndo.SaveUndoStep=function(){FCKUndo.SavedData=FCKUndo.SavedData.slice(0,FCKUndo.CurrentIndex+1);var A=FCK.EditorDocument.body.innerHTML;if (FCKUndo.CurrentIndex>=0&&A==FCKUndo.SavedData[FCKUndo.CurrentIndex][0]) return;if (FCKUndo.CurrentIndex+1>=FCKConfig.MaxUndoLevels) FCKUndo.SavedData.shift();else FCKUndo.CurrentIndex++;var B;if (FCK.EditorDocument.selection.type=='Text') B=FCK.EditorDocument.selection.createRange().getBookmark();FCKUndo.SavedData[FCKUndo.CurrentIndex]=[A,B];FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.CheckUndoState=function(){return (FCKUndo.Typing||FCKUndo.CurrentIndex>0);};FCKUndo.CheckRedoState=function(){return (!FCKUndo.Typing&&FCKUndo.CurrentIndex<(FCKUndo.SavedData.length-1));};FCKUndo.Undo=function(){if (FCKUndo.CheckUndoState()){if (FCKUndo.CurrentIndex==(FCKUndo.SavedData.length-1)){FCKUndo.SaveUndoStep();};FCKUndo._ApplyUndoLevel(--FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");};};FCKUndo.Redo=function(){if (FCKUndo.CheckRedoState()){FCKUndo._ApplyUndoLevel(++FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");};};FCKUndo._ApplyUndoLevel=function(A){var B=FCKUndo.SavedData[A];if (!B) return;FCK.EditorDocument.body.innerHTML=B[0];if (B[1]){var C=FCK.EditorDocument.selection.createRange();C.moveToBookmark(B[1]);C.select();};FCKUndo.TypesCount=0;FCKUndo.Typing=false;} |
FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.StartEditor=function(){this.EditorWindow=window.frames['eEditorArea'];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);FCKUndo.SaveUndoStep();this.SetStatus(FCK_STATUS_ACTIVE);};function Window_OnFocus(){FCK.Focus();};FCK.SetStatus=function(A){this.Status=A;if (A==FCK_STATUS_ACTIVE){window.onfocus=window.document.body.onfocus=Window_OnFocus;if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange',A);};FCK.GetHTML=function(A){var B;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsIE) B=this.EditorDocument.body.innerHTML.replace(FCKRegexLib.ToReplace,'$1');else B=this.EditorDocument.body.innerHTML;}else B=document.getElementById('eSourceField').value;if (A) return FCKCodeFormatter.Format(B);else return B;};FCK.GetXHTML=function(A){var B=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (B) this.SwitchEditMode();var C;if (FCKConfig.FullPage) C=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,A);else{if (FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>') C='';else C=FCKXHtml.GetXHTML(this.EditorDocument.body,false,A);};if (B) this.SwitchEditMode();if (FCKBrowserInfo.IsIE) C=C.replace(FCKRegexLib.ToReplace,'$1');if (FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0) C=FCK.DocTypeDeclaration+'\n'+C;if (FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0) C=FCK.XmlDeclaration+'\n'+C;return FCKConfig.ProtectedSource.Revert(C);};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCK.LinkedField.value=FCK.GetXHTML(FCKConfig.FormatOutput);else FCK.LinkedField.value=FCK.GetHTML(FCKConfig.FormatOutput);FCK.Events.FireEvent('OnAfterLinkedFieldUpdate');};FCK.ShowContextMenu=function(x,y){if (this.Status!=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x,y);this.Events.FireEvent("OnContextMenu");};FCK.RegisteredDoubleClickHandlers=new Object();FCK.OnDoubleClick=function(A){var B=FCK.RegisteredDoubleClickHandlers[A.tagName];if (B) B(A);};FCK.RegisterDoubleClickHandler=function(A,B){FCK.RegisteredDoubleClickHandlers[B.toUpperCase()]=A;};FCK.OnAfterSetHTML=function(){var A,i=0;while((A=FCKDocumentProcessors[i++])) A.ProcessDocument(FCK.EditorDocument);this.Events.FireEvent('OnAfterSetHTML');};var FCKDocumentProcessors=new Array();var FCKDocumentProcessors_CreateFakeImage=function(A,B){var C=FCK.EditorDocument.createElement('IMG');C.className=A;C.src=FCKConfig.FullBasePath+'images/spacer.gif';C.setAttribute('_fckfakelement','true',0);C.setAttribute('_fckrealelement',FCKTempBin.AddElement(B),0);return C;};var FCKAnchorsProcessor=new Object();FCKAnchorsProcessor.ProcessDocument=function(A){var B=A.getElementsByTagName('A');var C;var i=B.length-1;while (i>=0&&(C=B[i--])){if (C.name.length>0&&(!C.getAttribute('href')||C.getAttribute('href').length==0)){var D=FCKDocumentProcessors_CreateFakeImage('FCK__Anchor',C.cloneNode(true));D.setAttribute('_fckanchor','true',0);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);};};};FCKDocumentProcessors.addItem(FCKAnchorsProcessor);var FCKFlashProcessor=new Object();FCKFlashProcessor.ProcessDocument=function(A){var B=A.getElementsByTagName('EMBED');var C;var i=B.length-1;while (i>=0&&(C=B[i--])){if (C.src.endsWith('.swf',true)){var D=FCKDocumentProcessors_CreateFakeImage('FCK__Flash',C.cloneNode(true));D.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(D,C);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);};};};FCKFlashProcessor.RefreshView=function(A,B){if (B.width>0) A.style.width=FCKTools.ConvertHtmlSizeToStyle(B.width);if (B.height>0) A.style.height=FCKTools.ConvertHtmlSizeToStyle(B.height);};FCKDocumentProcessors.addItem(FCKFlashProcessor);FCK.GetRealElement=function(A){var e=FCKTempBin.Elements[A.getAttribute('_fckrealelement')];if (A.getAttribute('_fckflash')){if (A.style.width.length>0) e.width=FCKTools.ConvertStyleSizeToHtml(A.style.width);if (A.style.height.length>0) e.height=FCKTools.ConvertStyleSizeToHtml(A.style.height);};return e;};var FCKTablesProcessor=new Object();FCKTablesProcessor.ProcessDocument=function(A){FCKTablesProcessor.CheckTablesNesting(A);};FCKTablesProcessor.CheckTablesNesting=function(A){var B=A.getElementsByTagName("TABLE");var C;for (var i=0;i<B.length;i++){FCKTablesProcessor.CheckTableNesting(B[i]);};};FCKTablesProcessor.CheckTableNesting=function(A){var B=FCKTools.GetParentBlockNode(A.parentNode);if (B&&!FCKRegexLib.TableBlockElements.test(B.nodeName)){var C=FCK.EditorDocument.createElement(B.tagName);var D=FCKTools.GetDocumentFragment(B,B.firstChild,A,true,false,true);C.appendChild(D);FCKTools.SetElementAttributes(C,B.attributes);var E=FCK.EditorDocument.createElement(B.tagName);var F=FCKTools.GetDocumentFragment(B,A,B.lastChild,false,true,true);E.appendChild(F);FCKTools.SetElementAttributes(E,B.attributes);var G=FCK.EditorDocument.createDocumentFragment();if (!FCKTools.NodeIsEmpty(C)) G.appendChild(C);G.appendChild(A);if (!FCKTools.NodeIsEmpty(E)) G.appendChild(E);B.parentNode.replaceChild(G,B);};};FCKDocumentProcessors.addItem(FCKTablesProcessor); |
FCK.Description="FCKeditor for Internet Explorer 5.5+";FCK._BehaviorsStyle='<style type="text/css" _fcktemp="true">\ INPUT { behavior:url(' + FCKConfig.FullBasePath + 'css/behaviors/hiddenfield.htc);} \ INPUT { behavior:url(' + FCKConfig.FullBasePath + 'css/behaviors/disablehandles.htc);} \ TEXTAREA { behavior:url(' + FCKConfig.FullBasePath + 'css/behaviors/disablehandles.htc);} \ SELECT { behavior:url(' + FCKConfig.FullBasePath + 'css/behaviors/disablehandles.htc);}';if (FCKConfig.ShowBorders) FCK._BehaviorsStyle+='TABLE { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/showtableborders.htc) ; }';if (FCKConfig.DisableImageHandles) FCK._BehaviorsStyle+='IMG { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';if (FCKConfig.DisableTableHandles) FCK._BehaviorsStyle+='TABLE { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';FCK._BehaviorsStyle+='.FCK__Anchor { behavior: url('+FCKConfig.FullBasePath+'css/behaviors/disablehandles.htc) ; }';FCK._BehaviorsStyle+='</style>';function Doc_OnMouseUp(){if (FCK.EditorWindow.event.srcElement.tagName=='HTML'){FCK.Focus();FCK.EditorWindow.event.cancelBubble=true;FCK.EditorWindow.event.returnValue=false;};};function Doc_OnPaste(){if (FCK.Status==FCK_STATUS_COMPLETE) return FCK.Events.FireEvent("OnPaste");else return false;};function Doc_OnContextMenu(){var e=FCK.EditorWindow.event;FCK.ShowContextMenu(e.screenX,e.screenY);return false;};function Doc_OnKeyDown(){var e=FCK.EditorWindow.event;switch (e.keyCode){case 13:if (FCKConfig.UseBROnCarriageReturn&&!(e.ctrlKey||e.altKey||e.shiftKey)){Doc_OnKeyDownUndo();if (FCK.EditorDocument.queryCommandState('InsertOrderedList')||FCK.EditorDocument.queryCommandState('InsertUnorderedList')) return true;FCK.InsertHtml('<br> ');var oRange=FCK.EditorDocument.selection.createRange();oRange.moveStart('character',-1);oRange.select();FCK.EditorDocument.selection.clear();return false;};break;case 9:if (FCKConfig.TabSpaces>0&&!(e.ctrlKey||e.altKey||e.shiftKey)){Doc_OnKeyDownUndo();FCK.InsertHtml(window.FCKTabHTML);return false;};break;case 90:if (e.ctrlKey&&!(e.altKey||e.shiftKey)){FCKUndo.Undo();return false;};break;case 89:if (e.ctrlKey&&!(e.altKey||e.shiftKey)){FCKUndo.Redo();return false;};break;};if (!(e.keyCode>=16&&e.keyCode<=18)) Doc_OnKeyDownUndo();return true;};function Doc_OnKeyDownUndo(){if (!FCKUndo.Typing){FCKUndo.SaveUndoStep();FCKUndo.Typing=true;FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.TypesCount++;if (FCKUndo.TypesCount>FCKUndo.MaxTypes){FCKUndo.TypesCount=0;FCKUndo.SaveUndoStep();};};function Doc_OnDblClick(){FCK.OnDoubleClick(FCK.EditorWindow.event.srcElement);FCK.EditorWindow.event.cancelBubble=true;};function Doc_OnSelectionChange(){FCK.Events.FireEvent("OnSelectionChange");};FCK.InitializeBehaviors=function(A){this.EditorDocument.attachEvent('onmouseup',Doc_OnMouseUp);this.EditorDocument.body.attachEvent('onpaste',Doc_OnPaste);this.EditorDocument.attachEvent('oncontextmenu',Doc_OnContextMenu);if (FCKConfig.TabSpaces>0){window.FCKTabHTML='';for (i=0;i<FCKConfig.TabSpaces;i++) window.FCKTabHTML+=" ";};this.EditorDocument.attachEvent("onkeydown",Doc_OnKeyDown);this.EditorDocument.attachEvent("ondblclick",Doc_OnDblClick);this.EditorDocument.attachEvent("onselectionchange",Doc_OnSelectionChange);};FCK.Focus=function(){try{if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) FCK.EditorDocument.body.focus();else document.getElementById('eSourceField').focus();}catch(e) {};};FCK.SetHTML=function(A,B){if (B||FCK.EditMode==FCK_EDITMODE_WYSIWYG){A=FCKConfig.ProtectedSource.Protect(A);var C;if (FCKConfig.FullPage){var C=FCK._BehaviorsStyle+'<link href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />';if (FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(A)) C+=FCK.TempBaseTag;C=A.replace(FCKRegexLib.HeadOpener,'$&'+C);}else{C=FCKConfig.DocType+'<html dir="'+FCKConfig.ContentLangDirection+'"';if (FCKConfig.IEForceVScroll) C+=' style="overflow-y: scroll"';C+='><head><title></title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+'<link href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet" type="text/css" _fcktemp="true" />';C+=FCK._BehaviorsStyle;C+=FCK.TempBaseTag;C+='</head><body>'+A+'</body></html>';};this.EditorDocument.open('','_self','',true);this.EditorDocument.write(C);this.EditorDocument.close();this.InitializeBehaviors();this.EditorDocument.body.contentEditable=true;FCK.OnAfterSetHTML();}else document.getElementById('eSourceField').value=A;};FCK.InsertHtml=function(A){FCK.Focus();FCKUndo.SaveUndoStep();var B=FCK.EditorDocument.selection;if (B.type.toLowerCase()!="none") B.clear();B.createRange().pasteHTML(A);} |
/trunk/api/fckeditor/editor/js/fckeditorcode_ie_2.js |
---|
8,47 → 8,49 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* This file has been compacted for best loading performance. |
*/ |
FCK.RedirectNamedCommands=new Object();FCK.ExecuteNamedCommand=function(commandName,commandParameter){FCKUndo.SaveUndoStep();if (FCK.RedirectNamedCommands[commandName]!=null) FCK.ExecuteRedirectedNamedCommand(commandName,commandParameter);else{FCK.Focus();FCK.EditorDocument.execCommand(commandName,false,commandParameter);FCK.Events.FireEvent('OnSelectionChange');};};FCK.GetNamedCommandState=function(commandName){try{if (!FCK.EditorDocument.queryCommandEnabled(commandName)) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(commandName)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(commandName){var sValue='';var eState=FCK.GetNamedCommandState(commandName);if (eState==FCK_TRISTATE_DISABLED) return null;try{sValue=this.EditorDocument.queryCommandValue(commandName);}catch(e) {};return sValue?sValue:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var iWidth=screen.width*0.8;var iHeight=screen.height*0.7;var iLeft=(screen.width-iWidth) / 2;var oWindow=window.open('', null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + iWidth + ',height=' + iHeight + ',left=' + iLeft);var sHTML;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length > 0) sHTML=FCK.GetXHTML().replace( FCKRegexLib.HeadCloser, FCK.TempBaseTag + '</head>');else sHTML=FCK.GetXHTML();}else{sHTML=FCKConfig.DocType + '<html dir="' + FCKConfig.ContentLangDirection + '">' + '<head><title>' + FCKLang.Preview + '</title>' + '<link href="' + FCKConfig.EditorAreaCSS + '" rel="stylesheet" type="text/css" />' + FCK.TempBaseTag + '</head><body>' + FCK.GetXHTML() + '</body></html>';};oWindow.document.write(sHTML);oWindow.document.close();};FCK.SwitchEditMode=function(){var bWYSIWYG=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display = bWYSIWYG ? 'none' : '';document.getElementById('eSource').style.display = bWYSIWYG ? '' : 'none';if (bWYSIWYG){if (FCKBrowserInfo.IsIE) FCKUndo.SaveUndoStep();document.getElementById('eSourceField').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML( FCKConfig.FormatSource ) : FCK.GetHTML( FCKConfig.FormatSource ));}else FCK.SetHTML(FCK.GetHTML(), true);FCK.EditMode=bWYSIWYG ? FCK_EDITMODE_SOURCE : FCK_EDITMODE_WYSIWYG;FCKToolbarSet.RefreshModeState();FCK.Focus();};FCK.CreateElement=function(tag){var e=FCK.EditorDocument.createElement(tag);return FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('__FCKTempLabel', 1);this.InsertElement(e);var aEls=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var i=0 ; i < aEls.length ; i++){if (aEls[i].getAttribute( '__FCKTempLabel' )){aEls[i].removeAttribute('__FCKTempLabel');return aEls[i];};};}; |
FCK.Paste=function(){if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else if (FCKConfig.AutoDetectPasteFromWord){var sHTML=FCK.GetClipboardHTML();var re=/<\w[^>]* class="?MsoNormal"?/gi;if (re.test(sHTML)){if (confirm(FCKLang["PasteWordConfirm"])){FCK.PasteFromWord();return false;};};}else return true;};FCK.PasteAsPlainText=function(){var sText=FCKTools.HTMLEncode(clipboardData.getData("Text"));sText=sText.replace(/\n/g,'<BR>');this.InsertHtml(sText);};FCK.InsertElement=function(element){FCK.InsertHtml(element.outerHTML);};FCK.GetClipboardHTML=function(){var oDiv=document.getElementById('___FCKHiddenDiv');if (!oDiv){var oDiv=document.createElement('DIV');oDiv.id='___FCKHiddenDiv';oDiv.style.visibility='hidden';oDiv.style.overflow='hidden';oDiv.style.position='absolute';oDiv.style.width=1;oDiv.style.height=1;document.body.appendChild(oDiv);};oDiv.innerHTML='';var oTextRange=document.body.createTextRange();oTextRange.moveToElementText(oDiv);oTextRange.execCommand('Paste');var sData=oDiv.innerHTML;oDiv.innerHTML='';return sData;};FCK.AttachToOnSelectionChange=function(functionPointer){this.Events.AttachEvent('OnSelectionChange',functionPointer);};FCK.CreateLink=function(url){FCK.ExecuteNamedCommand('Unlink');if (url.length>0){var sTempUrl='javascript:void(0);/*'+(new Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',sTempUrl);var oLinks=this.EditorDocument.links;for (i=0;i<oLinks.length;i++){if (oLinks[i].href==sTempUrl){oLinks[i].href=url;return oLinks[i];};};};}; |
FCK.RedirectNamedCommands=new Object();FCK.ExecuteNamedCommand=function(A,B){FCKUndo.SaveUndoStep();if (FCK.RedirectNamedCommands[A]!=null) FCK.ExecuteRedirectedNamedCommand(A,B);else{FCK.Focus();FCK.EditorDocument.execCommand(A,false,B);FCK.Events.FireEvent('OnSelectionChange');};FCKUndo.SaveUndoStep();};FCK.GetNamedCommandState=function(A){try{if (!FCK.EditorDocument.queryCommandEnabled(A)) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(A)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(A){var B='';var C=FCK.GetNamedCommandState(A);if (C==FCK_TRISTATE_DISABLED) return null;try{B=this.EditorDocument.queryCommandValue(A);}catch(e) {};return B?B:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var A=FCKConfig.ScreenWidth*0.8;var B=FCKConfig.ScreenHeight*0.7;var C=(FCKConfig.ScreenWidth-A)/2;var D=window.open('',null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+A+',height='+B+',left='+C);var E;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length>0) E=FCK.GetXHTML().replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);else E=FCK.GetXHTML();}else{E=FCKConfig.DocType+'<html dir="'+FCKConfig.ContentLangDirection+'">'+'<head><title>'+FCKLang.Preview+'</title>'+'<link href="'+FCKConfig.EditorAreaCSS+'" rel="stylesheet" type="text/css" />'+FCK.TempBaseTag+'</head><body>'+FCK.GetXHTML()+'</body></html>';};D.document.write(E);D.document.close();};FCK.SwitchEditMode=function(){var A=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display=A?'none':'';document.getElementById('eSource').style.display=A?'':'none';if (A){if (FCKBrowserInfo.IsIE) FCKUndo.SaveUndoStep();document.getElementById('eSourceField').value=(FCKConfig.EnableXHTML&&FCKConfig.EnableSourceXHTML?FCK.GetXHTML(FCKConfig.FormatSource):FCK.GetHTML(FCKConfig.FormatSource));}else FCK.SetHTML(FCK.GetHTML(),true);FCK.EditMode=A?FCK_EDITMODE_SOURCE:FCK_EDITMODE_WYSIWYG;FCKToolbarSet.RefreshModeState();FCK.Focus();};FCK.CreateElement=function(A){var e=FCK.EditorDocument.createElement(A);return FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('__FCKTempLabel',1);this.InsertElement(e);var A=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var i=0;i<A.length;i++){if (A[i].getAttribute('__FCKTempLabel')){A[i].removeAttribute('__FCKTempLabel');return A[i];};};return null;}; |
FCK.Paste=function(){if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else if (FCKConfig.AutoDetectPasteFromWord){var A=FCK.GetClipboardHTML();var B=/<\w[^>]* class="?MsoNormal"?/gi;if (B.test(A)){if (confirm(FCKLang["PasteWordConfirm"])){FCK.PasteFromWord();return false;};};}else return true;};FCK.PasteAsPlainText=function(){var A=FCKTools.HTMLEncode(clipboardData.getData("Text"));A=A.replace(/\n/g,'<BR>');this.InsertHtml(A);};FCK.InsertElement=function(A){FCK.InsertHtml(A.outerHTML);};FCK.GetClipboardHTML=function(){var A=document.getElementById('___FCKHiddenDiv');if (!A){var A=document.createElement('DIV');A.id='___FCKHiddenDiv';A.style.visibility='hidden';A.style.overflow='hidden';A.style.position='absolute';A.style.width=1;A.style.height=1;document.body.appendChild(A);};A.innerHTML='';var C=document.body.createTextRange();C.moveToElementText(A);C.execCommand('Paste');var D=A.innerHTML;A.innerHTML='';return D;};FCK.AttachToOnSelectionChange=function(A){this.Events.AttachEvent('OnSelectionChange',A);};FCK.CreateLink=function(A){FCK.ExecuteNamedCommand('Unlink');if (A.length>0){var B='javascript:void(0);/*'+(new Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',B);var C=this.EditorDocument.links;for (i=0;i<C.length;i++){if (C[i].href==B){C[i].href=A;return C[i];};};};}; |
var FCKSelection=new Object();FCK.Selection=FCKSelection; |
FCKSelection.GetType=function(){return FCK.EditorDocument.selection.type;};FCKSelection.GetSelectedElement=function(){if (this.GetType()=='Control'){var oRange=FCK.EditorDocument.selection.createRange();if (oRange&&oRange.item) return FCK.EditorDocument.selection.createRange().item(0);};};FCKSelection.GetParentElement=function(){if (this.GetType()=='Control') return FCKSelection.GetSelectedElement().parentElement;else return FCK.EditorDocument.selection.createRange().parentElement();};FCKSelection.SelectNode=function(node){FCK.Focus();FCK.EditorDocument.selection.empty();var oRange=FCK.EditorDocument.selection.createRange();oRange.moveToElementText(node);oRange.select();};FCKSelection.Collapse=function(toStart){FCK.Focus();var oRange=FCK.EditorDocument.selection.createRange();oRange.collapse(toStart==null||toStart===true);oRange.select();};FCKSelection.HasAncestorNode=function(nodeTagName){var oContainer;if (FCK.EditorDocument.selection.type=="Control"){oContainer=this.GetSelectedElement();}else{var oRange=FCK.EditorDocument.selection.createRange();oContainer=oRange.parentElement();};while (oContainer){if (oContainer.tagName==nodeTagName) return true;oContainer=oContainer.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(nodeTagName){var oNode;if (FCK.EditorDocument.selection.type=="Control"){var oRange=FCK.EditorDocument.selection.createRange();for (i=0;i<oRange.length;i++){if (oRange(i).parentNode){oNode=oRange(i).parentNode;break;};};}else{var oRange=FCK.EditorDocument.selection.createRange();oNode=oRange.parentElement();};while (oNode&&oNode.nodeName!=nodeTagName) oNode=oNode.parentNode;return oNode;};FCKSelection.Delete=function(){var oSel=FCK.EditorDocument.selection;if (oSel.type.toLowerCase()!="none"){oSel.clear();};return oSel;} |
var FCKPanel=function(parentWindow){this.Window=parentWindow?parentWindow:window;};function FCKPanel_OnContextMenu() { return false;};FCKPanel.prototype.Create=function(){this._Popup=this.Window.createPopup();this.Document=this._Popup.document;aCleanupDocs[aCleanupDocs.length]=this.Document;this.Document.oncontextmenu=FCKPanel_OnContextMenu;if (this.StyleSheet) FCKTools.AppendStyleSheet(this.Document,this.StyleSheet);this.PanelDiv=this.Document.body.appendChild(this.Document.createElement('DIV'));this.PanelDiv.className='FCK_Panel';this.Created=true;};FCKPanel.prototype.Show=function(panelX,panelY,relElement,width,height,autoSize){if (!this.Created) this._Create();this._Popup.show(panelX,panelY,0,0,relElement);if (width==null||(autoSize&&width>this.PanelDiv.offsetWidth)) var iWidth=this.PanelDiv.offsetWidth;else var iWidth=width;if (height==null||(autoSize&&height>this.PanelDiv.offsetHeight)) var iHeight=this.PanelDiv.offsetHeight;else var iHeight=height;this.PanelDiv.style.height=iHeight;this._Popup.show(panelX,panelY,iWidth,iHeight,relElement);};FCKPanel.prototype.Hide=function(){if (this._Popup) this._Popup.hide();} |
var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var oRow=FCKSelection.MoveToAncestorNode("TR");if (!oRow) return;var oNewRow=oRow.cloneNode(true);oRow.parentNode.insertBefore(oNewRow,oRow);FCKTableHandler.ClearRow(oRow);};FCKTableHandler.DeleteRows=function(row){if (!row) row=FCKSelection.MoveToAncestorNode("TR");if (!row) return;var oTable=FCKTools.GetElementAscensor(row,'TABLE');if (oTable.rows.length==1){FCKTableHandler.DeleteTable(oTable);return;};row.parentNode.removeChild(row);};FCKTableHandler.DeleteTable=function(table){if (!table) table=FCKSelection.MoveToAncestorNode("TABLE");if (!table) return;table.parentNode.removeChild(table);};FCKTableHandler.InsertColumn=function(){var oCell=FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oTable=FCKTools.GetElementAscensor(oCell,'TABLE');var iIndex=oCell.cellIndex+1;for (var i=0;i<oTable.rows.length;i++){var oRow=oTable.rows[i];if (oRow.cells.length<iIndex) continue;oCell=FCK.EditorDocument.createElement('TD');if (FCKBrowserInfo.IsGecko) oCell.innerHTML='<br _moz_editor_bogus_node="TRUE">';var oBaseCell=oRow.cells[iIndex];if (oBaseCell){oRow.insertBefore(oCell,oBaseCell);}else{oRow.appendChild(oCell);};};};FCKTableHandler.DeleteColumns=function(){var oCell=FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oTable=FCKTools.GetElementAscensor(oCell,'TABLE');var iIndex=oCell.cellIndex;for (var i=oTable.rows.length-1;i>=0;i--){var oRow=oTable.rows[i];if (iIndex==0&&oRow.cells.length==1){FCKTableHandler.DeleteRows(oRow);continue;};if (oRow.cells[iIndex]) oRow.removeChild(oRow.cells[iIndex]);};};FCKTableHandler.InsertCell=function(cell){var oCell=cell?cell:FCKSelection.MoveToAncestorNode("TD");if (!oCell) return;var oNewCell=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko) oNewCell.innerHTML='<br _moz_editor_bogus_node="TRUE">';if (oCell.cellIndex==oCell.parentNode.cells.lenght-1){oCell.parentNode.appendChild(oNewCell);}else{oCell.parentNode.insertBefore(oNewCell,oCell.nextSibling);};return oNewCell;};FCKTableHandler.DeleteCell=function(cell){if (cell.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(cell,'TR'));return;};cell.parentNode.removeChild(cell);};FCKTableHandler.DeleteCells=function(){var aCells=FCKTableHandler.GetSelectedCells();for (var i=aCells.length-1;i>=0;i--){FCKTableHandler.DeleteCell(aCells[i]);};};FCKTableHandler.MergeCells=function(){var aCells=FCKTableHandler.GetSelectedCells();if (aCells.length<2) return;if (aCells[0].parentNode!=aCells[aCells.length-1].parentNode) return;var iColSpan=isNaN(aCells[0].colSpan)?1:aCells[0].colSpan;var sHtml='';for (var i=aCells.length-1;i>0;i--){iColSpan+=isNaN(aCells[i].colSpan)?1:aCells[i].colSpan;sHtml=aCells[i].innerHTML+sHtml;FCKTableHandler.DeleteCell(aCells[i]);};aCells[0].colSpan=iColSpan;aCells[0].innerHTML+=sHtml;};FCKTableHandler.SplitCell=function(){var aCells=FCKTableHandler.GetSelectedCells();if (aCells.length!=1) return;var aMap=this._CreateTableMap(aCells[0].parentNode.parentNode);var iCellIndex=FCKTableHandler._GetCellIndexSpan(aMap,aCells[0].parentNode.rowIndex,aCells[0]);var aCollCells=this._GetCollumnCells(aMap,iCellIndex);for (var i=0;i<aCollCells.length;i++){if (aCollCells[i]==aCells[0]){var oNewCell=this.InsertCell(aCells[0]);if (!isNaN(aCells[0].rowSpan)&&aCells[0].rowSpan>1) oNewCell.rowSpan=aCells[0].rowSpan;}else{if (isNaN(aCollCells[i].colSpan)) aCollCells[i].colSpan=2;else aCollCells[i].colSpan+=1;};};};FCKTableHandler._GetCellIndexSpan=function(tableMap,rowIndex,cell){if (tableMap.length<rowIndex+1) return;var oRow=tableMap[rowIndex];for (var c=0;c<oRow.length;c++){if (oRow[c]==cell) return c;};};FCKTableHandler._GetCollumnCells=function(tableMap,collumnIndex){var aCollCells=new Array();for (var r=0;r<tableMap.length;r++){var oCell=tableMap[r][collumnIndex];if (oCell&&(aCollCells.length==0||aCollCells[aCollCells.length-1]!=oCell)) aCollCells[aCollCells.length]=oCell;};return aCollCells;};FCKTableHandler._CreateTableMap=function(table){var aRows=table.rows;var r=-1;var aMap=new Array();for (var i=0;i<aRows.length;i++){r++;if (!aMap[r]) aMap[r]=new Array();var c=-1;for (var j=0;j<aRows[i].cells.length;j++){var oCell=aRows[i].cells[j];c++;while (aMap[r][c]) c++;var iColSpan=isNaN(oCell.colSpan)?1:oCell.colSpan;var iRowSpan=isNaN(oCell.rowSpan)?1:oCell.rowSpan;for (var rs=0;rs<iRowSpan;rs++){if (!aMap[r+rs]) aMap[r+rs]=new Array();for (var cs=0;cs<iColSpan;cs++){aMap[r+rs][c+cs]=aRows[i].cells[j];};};c+=iColSpan-1;};};return aMap;};FCKTableHandler.ClearRow=function(tr){var aCells=tr.cells;for (var i=0;i<aCells.length;i++){if (FCKBrowserInfo.IsGecko) aCells[i].innerHTML='<br _moz_editor_bogus_node="TRUE">';else aCells[i].innerHTML='';};} |
FCKTableHandler.GetSelectedCells=function(){var aCells=new Array();var oRange=FCK.EditorDocument.selection.createRange();var oParent=oRange.parentElement();if (oParent&&oParent.tagName=="TD") aCells[0]=oParent;else{var oParent=FCKSelection.MoveToAncestorNode("TABLE");if (oParent){for (var i=0;i<oParent.cells.length;i++){var oCellRange=FCK.EditorDocument.selection.createRange();oCellRange.moveToElementText(oParent.cells[i]);if (oRange.inRange(oCellRange)||(oRange.compareEndPoints('StartToStart',oCellRange)>=0&&oRange.compareEndPoints('StartToEnd',oCellRange)<=0)||(oRange.compareEndPoints('EndToStart',oCellRange)>=0&&oRange.compareEndPoints('EndToEnd',oCellRange)<=0)){aCells[aCells.length]=oParent.cells[i];};};};};return aCells;}; |
var FCKXml;if (!(FCKXml=NS.FCKXml)){FCKXml=NS.FCKXml=function(){};FCKXml.prototype.LoadUrl=function(urlToCall){var oXmlHttp=FCKTools.CreateXmlObject('XmlHttp');oXmlHttp.open("GET",urlToCall,false);oXmlHttp.send(null);if (oXmlHttp.status==200) this.DOMDocument=oXmlHttp.responseXML;else if (oXmlHttp.status==0&&oXmlHttp.readyState==4){this.DOMDocument=FCKTools.CreateXmlObject('DOMDocument');this.DOMDocument.async=false;this.DOMDocument.resolveExternals=false;this.DOMDocument.loadXML(oXmlHttp.responseText);}else alert('Error loading "'+urlToCall+'"');};FCKXml.prototype.SelectNodes=function(xpath,contextNode){if (contextNode) return contextNode.selectNodes(xpath);else return this.DOMDocument.selectNodes(xpath);};FCKXml.prototype.SelectSingleNode=function(xpath,contextNode){if (contextNode) return contextNode.selectSingleNode(xpath);else return this.DOMDocument.selectSingleNode(xpath);};} |
var FCKStyleDef=function(name,element){this.Name=name;this.Element=element.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new Object();};FCKStyleDef.prototype.AddAttribute=function(name,value){this.Attributes[name]=value;};FCKStyleDef.prototype.GetOpenerTag=function(){var s='<'+this.Element;for (var a in this.Attributes) s+=' '+a+'="'+this.Attributes[a]+'"';return s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return '</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if (FCKSelection.GetType()=='Control') this._RemoveMe(FCKSelection.GetSelectedElement());else this._RemoveMe(FCKSelection.GetParentElement());} |
FCKStyleDef.prototype.ApplyToSelection=function(){var oSelection=FCK.EditorDocument.selection;if (oSelection.type=='Text'){var oRange=oSelection.createRange();var e=document.createElement(this.Element);e.innerHTML=oRange.htmlText;this._AddAttributes(e);this._RemoveDuplicates(e);oRange.pasteHTML(e.outerHTML);}else if (oSelection.type=='Control'){var oControl=FCKSelection.GetSelectedElement();if (oControl.tagName==this.Element) this._AddAttributes(oControl);};};FCKStyleDef.prototype._AddAttributes=function(targetElement){for (var a in this.Attributes){if (a.toLowerCase()=='style') targetElement.style.cssText=this.Attributes[a];else targetElement.setAttribute(a,this.Attributes[a],0);};};FCKStyleDef.prototype._RemoveDuplicates=function(parent){for (var i=0;i<parent.children.length;i++){var oChild=parent.children[i];this._RemoveDuplicates(oChild);if (this.IsEqual(oChild)){oChild.insertAdjacentHTML('beforeBegin',oChild.innerHTML);oChild.parentElement.removeChild(oChild);};};};FCKStyleDef.prototype.IsEqual=function(e){if (e.tagName!=this.Element) return false;for (var a in this.Attributes){switch (a.toLowerCase()){case 'style':if (e.style.cssText.toLowerCase()!=this.Attributes[a].toLowerCase()) return false;break;case 'class':if (e.getAttribute('className',0)!=this.Attributes[a]) return false;break;default:if (e.getAttribute(a,0)!=this.Attributes[a]) return false;};};return true;};FCKStyleDef.prototype._RemoveMe=function(elementToCheck){if (!elementToCheck) return;var oParent=elementToCheck.parentElement;if (this.IsEqual(elementToCheck)){if (this.IsObjectElement){for (var a in this.Attributes){switch (a.toLowerCase()){case 'class':elementToCheck.removeAttribute('className',0);break;default:elementToCheck.removeAttribute(a,0);};};return;}else FCKTools.RemoveOuterTags(elementToCheck);};this._RemoveMe(oParent);} |
var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(stylesXmlUrl){var oXml=new FCKXml();oXml.LoadUrl(stylesXmlUrl);var aStyleNodes=oXml.SelectNodes('Styles/Style');for (var i=0;i<aStyleNodes.length;i++){var sElement=aStyleNodes[i].attributes.getNamedItem('element').value.toUpperCase();var oStyleDef=new FCKStyleDef(aStyleNodes[i].attributes.getNamedItem('name').value,sElement);if (oStyleDef.IsObjectElement) this.HasObjectElements=true;var aAttNodes=oXml.SelectNodes('Attribute',aStyleNodes[i]);for (var j=0;j<aAttNodes.length;j++){var sAttName=aAttNodes[j].attributes.getNamedItem('name').value;var sAttValue=aAttNodes[j].attributes.getNamedItem('value').value;if (sAttName.toLowerCase()=='style'){var oTempE=document.createElement('SPAN');oTempE.style.cssText=sAttValue;sAttValue=oTempE.style.cssText;};oStyleDef.AddAttribute(sAttName,sAttValue);};this.Styles[oStyleDef.Name]=oStyleDef;var aGroup=this.StyleGroups[sElement];if (aGroup==null){this.StyleGroups[sElement]=new Array();aGroup=this.StyleGroups[sElement];};aGroup[aGroup.length]=oStyleDef;};this.Loaded=true;} |
var FCKNamedCommand=function(commandName){this.Name=commandName;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);}; |
var FCKDialogCommand=function(name,title,url,width,height,getStateFunction,getStateParam){this.Name=name;this.Title=title;this.Url=url;this.Width=width;this.Height=height;this.GetStateFunction=getStateFunction;this.GetStateParam=getStateParam;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else return FCK_TRISTATE_OFF;};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(fontName){if (fontName==null||fontName==""){}else FCK.ExecuteNamedCommand('FontName',fontName);};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(fontSize){if (typeof(fontSize)=='string') fontSize=parseInt(fontSize);if (fontSize==null||fontSize==''){FCK.ExecuteNamedCommand('FontSize',3);}else FCK.ExecuteNamedCommand('FontSize',fontSize);};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(formatName){if (formatName==null||formatName=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else FCK.ExecuteNamedCommand('FormatBlock','<'+formatName+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var oForm=FCK.LinkedField.form;if (typeof(oForm.onsubmit)=='function'){var bRet=oForm.onsubmit();if (bRet!=null&&bRet===false) return;};oForm.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsGecko){var iWidth=screen.width*0.65;var iHeight=screen.height*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',iWidth,iHeight,null,null,true);}else FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Undo();else FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.Typing||FCKUndo.CurrentIndex>0?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Undo');};var FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Redo();else FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (!FCKUndo.Typing&&FCKUndo.CurrentIndex<(FCKUndo.SavedData.length-1)?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Redo');} |
var FCKSpellCheckCommand=function(){this.Name='SpellCheck';this.IsEnabled=(FCKConfig.SpellChecker=='ieSpell'||FCKConfig.SpellChecker=='SpellerPages');};FCKSpellCheckCommand.prototype.Execute=function(){switch (FCKConfig.SpellChecker){case 'ieSpell':this._RunIeSpell();break;case 'SpellerPages':FCKDialog.OpenDialog('FCKDialog_SpellCheck','Spell Check','dialog/fck_spellerpages.html',440,480);break;};};FCKSpellCheckCommand.prototype._RunIeSpell=function(){try{var oIeSpell=new ActiveXObject("ieSpell.ieSpellExtension");oIeSpell.CheckAllLinkedDocuments(FCK.EditorDocument);}catch(e){if(e.number==-2146827859){if (confirm(FCKLang.IeSpellDownload)) window.open(FCKConfig.IeSpellDownloadUrl,'IeSpellDownload');}else alert('Error Loading ieSpell: '+e.message+' ('+e.number+')');};};FCKSpellCheckCommand.prototype.GetState=function(){return this.IsEnabled?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;} |
var FCKTextColorCommand=function(type){this.Name=type=='ForeColor'?'TextColor':'BGColor';this.Type=type;this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._CreatePanelBody(this._Panel.Document,this._Panel.PanelDiv);};FCKTextColorCommand.prototype.Execute=function(panelX,panelY,relElement){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(panelX,panelY,relElement);};FCKTextColorCommand.prototype.SetColor=function(color){if (FCK._ActiveColorPanelType=='ForeColor') FCK.ExecuteNamedCommand('ForeColor',color);else if (FCKBrowserInfo.IsGecko) FCK.ExecuteNamedCommand('hilitecolor',color);else FCK.ExecuteNamedCommand('BackColor',color);delete FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() { this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() { this.className='ColorDeselected';};function FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(targetDocument,targetDiv){function CreateSelectionDiv(){var oDiv=targetDocument.createElement("DIV");oDiv.className='ColorDeselected';oDiv.onmouseover=FCKTextColorCommand_OnMouseOver;oDiv.onmouseout=FCKTextColorCommand_OnMouseOut;return oDiv;};var oTable=targetDiv.appendChild(targetDocument.createElement("TABLE"));oTable.style.tableLayout='fixed';oTable.cellPadding=0;oTable.cellSpacing=0;oTable.border=0;oTable.width=150;var oCell=oTable.insertRow(-1).insertCell(-1);oCell.colSpan=8;var oDiv=oCell.appendChild(CreateSelectionDiv());oDiv.innerHTML='<table cellspacing="0" cellpadding="0" width="100%" border="0">\ <tr>\ <td><div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #000000"></div></div></td>\ <td nowrap width="100%" align="center" unselectable="on">'+FCKLang.ColorAutomatic+'</td>\ </tr>\ </table>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_AutoOnClick;var aColors=FCKConfig.FontColors.toString().split(',');var iCounter=0;while (iCounter<aColors.length){var oRow=oTable.insertRow(-1);for (var i=0;i<8&&iCounter<aColors.length;i++,iCounter++){var oDiv=oRow.insertCell(-1).appendChild(CreateSelectionDiv());oDiv.Color=aColors[iCounter];oDiv.innerHTML='<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #'+aColors[iCounter]+'"></div></div>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_OnClick;};};var oCell=oTable.insertRow(-1).insertCell(-1);oCell.colSpan=8;var oDiv=oCell.appendChild(CreateSelectionDiv());oDiv.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';oDiv.Command=this;oDiv.onclick=FCKTextColorCommand_MoreOnClick;} |
FCKSelection.GetType=function(){return FCK.EditorDocument.selection.type;};FCKSelection.GetSelectedElement=function(){if (this.GetType()=='Control'){var A=FCK.EditorDocument.selection.createRange();if (A&&A.item) return FCK.EditorDocument.selection.createRange().item(0);};};FCKSelection.GetParentElement=function(){switch (this.GetType()){case 'Control':return FCKSelection.GetSelectedElement().parentElement;case 'None':return;default:return FCK.EditorDocument.selection.createRange().parentElement();};};FCKSelection.SelectNode=function(A){FCK.Focus();FCK.EditorDocument.selection.empty();var B=FCK.EditorDocument.selection.createRange();B.moveToElementText(A);B.select();};FCKSelection.Collapse=function(A){FCK.Focus();var B=FCK.EditorDocument.selection.createRange();B.collapse(A==null||A===true);B.select();};FCKSelection.HasAncestorNode=function(A){var B;if (FCK.EditorDocument.selection.type=="Control"){B=this.GetSelectedElement();}else{var C=FCK.EditorDocument.selection.createRange();B=C.parentElement();};while (B){if (B.tagName==A) return true;B=B.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(A){var B;if (FCK.EditorDocument.selection.type=="Control"){var C=FCK.EditorDocument.selection.createRange();for (i=0;i<C.length;i++){if (C(i).parentNode){B=C(i).parentNode;break;};};}else{var C=FCK.EditorDocument.selection.createRange();B=C.parentElement();};while (B&&B.nodeName!=A) B=B.parentNode;return B;};FCKSelection.Delete=function(){var A=FCK.EditorDocument.selection;if (A.type.toLowerCase()!="none"){A.clear();};return A;};FCKSelection.SetCursorPosition=function (A,B){if (typeof B=="undefined") B=0;FCK.Selection.SelectNode(A);FCK.Selection.Collapse(true);A.scrollIntoView(false);}; |
var FCKPanel=function(A){this.Window=A?A:window;};function FCKPanel_OnContextMenu() { return false;};FCKPanel.prototype.Create=function(){this._Popup=this.Window.createPopup();this.Document=this._Popup.document;aCleanupDocs[aCleanupDocs.length]=this.Document;this.Document.oncontextmenu=FCKPanel_OnContextMenu;if (this.StyleSheet) FCKTools.AppendStyleSheet(this.Document,this.StyleSheet);this.PanelDiv=this.Document.body.appendChild(this.Document.createElement('DIV'));this.PanelDiv.className='FCK_Panel';this.Created=true;};FCKPanel.prototype.Show=function(A,B,C,D,E,F){if (!this.Created) this._Create();this._Popup.show(A,B,0,0,C);if (D==null||(F&&D>this.PanelDiv.offsetWidth)) var G=this.PanelDiv.offsetWidth;else var G=D;if (E==null||(F&&E>this.PanelDiv.offsetHeight)) var I=this.PanelDiv.offsetHeight;else var I=E;this.PanelDiv.style.height=I;this._Popup.show(A,B,G,I,C);};FCKPanel.prototype.Hide=function(){if (this._Popup) this._Popup.hide();} |
var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var B=A.cloneNode(true);A.parentNode.insertBefore(B,A);FCKTableHandler.ClearRow(A);};FCKTableHandler.DeleteRows=function(A){if (!A) A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');if (B.rows.length==1){FCKTableHandler.DeleteTable(B);return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteTable=function(A){if (!A) A=FCKSelection.MoveToAncestorNode("TABLE");if (!A) return;A.parentNode.removeChild(A);};FCKTableHandler.InsertColumn=function(){var A=FCKSelection.MoveToAncestorNode("TD");if (!A) A=FCKSelection.MoveToAncestorNode("TH");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex+1;for (var i=0;i<B.rows.length;i++){var D=B.rows[i];if (D.cells.length<C) continue;A=D.cells[C-1].cloneNode(false);if (FCKBrowserInfo.IsGecko) A.innerHTML=FCKBrowserInfo.IsGecko?GECKO_BOGUS:'';var E=D.cells[C];if (E) D.insertBefore(A,E);else D.appendChild(A);};};FCKTableHandler.DeleteColumns=function(){var A=FCKSelection.MoveToAncestorNode("TD");if (!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex;for (var i=B.rows.length-1;i>=0;i--){var D=B.rows[i];if (C==0&&D.cells.length==1){FCKTableHandler.DeleteRows(D);continue;};if (D.cells[C]) D.removeChild(D.cells[C]);};};FCKTableHandler.InsertCell=function(A){var B=A?A:FCKSelection.MoveToAncestorNode("TD");if (!B) return;var C=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko) C.innerHTML=GECKO_BOGUS;if (B.cellIndex==B.parentNode.cells.lenght-1){B.parentNode.appendChild(C);}else{B.parentNode.insertBefore(C,B.nextSibling);};return C;};FCKTableHandler.DeleteCell=function(A){if (A.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(A,'TR'));return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteCells=function(){var A=FCKTableHandler.GetSelectedCells();for (var i=A.length-1;i>=0;i--){FCKTableHandler.DeleteCell(A[i]);};};FCKTableHandler.MergeCells=function(){var A=FCKTableHandler.GetSelectedCells();if (A.length<2) return;if (A[0].parentNode!=A[A.length-1].parentNode) return;var B=isNaN(A[0].colSpan)?1:A[0].colSpan;var C='';for (var i=A.length-1;i>0;i--){B+=isNaN(A[i].colSpan)?1:A[i].colSpan;C=A[i].innerHTML+C;FCKTableHandler.DeleteCell(A[i]);};A[0].colSpan=B;A[0].innerHTML+=C;};FCKTableHandler.SplitCell=function(){var A=FCKTableHandler.GetSelectedCells();if (A.length!=1) return;var B=this._CreateTableMap(A[0].parentNode.parentNode);var C=FCKTableHandler._GetCellIndexSpan(B,A[0].parentNode.rowIndex,A[0]);var D=this._GetCollumnCells(B,C);for (var i=0;i<D.length;i++){if (D[i]==A[0]){var E=this.InsertCell(A[0]);if (!isNaN(A[0].rowSpan)&&A[0].rowSpan>1) E.rowSpan=A[0].rowSpan;}else{if (isNaN(D[i].colSpan)) D[i].colSpan=2;else D[i].colSpan+=1;};};};FCKTableHandler._GetCellIndexSpan=function(A,B,C){if (A.length<B+1) return null;var D=A[B];for (var c=0;c<D.length;c++){if (D[c]==C) return c;};return null;};FCKTableHandler._GetCollumnCells=function(A,B){var C=new Array();for (var r=0;r<A.length;r++){var D=A[r][B];if (D&&(C.length==0||C[C.length-1]!=D)) C[C.length]=D;};return C;};FCKTableHandler._CreateTableMap=function(A){var B=A.rows;var r=-1;var C=new Array();for (var i=0;i<B.length;i++){r++;if (!C[r]) C[r]=new Array();var c=-1;for (var j=0;j<B[i].cells.length;j++){var D=B[i].cells[j];c++;while (C[r][c]) c++;var E=isNaN(D.colSpan)?1:D.colSpan;var F=isNaN(D.rowSpan)?1:D.rowSpan;for (var G=0;G<F;G++){if (!C[r+G]) C[r+G]=new Array();for (var H=0;H<E;H++){C[r+G][c+H]=B[i].cells[j];};};c+=E-1;};};return C;};FCKTableHandler.ClearRow=function(A){var B=A.cells;for (var i=0;i<B.length;i++){if (FCKBrowserInfo.IsGecko) B[i].innerHTML=GECKO_BOGUS;else B[i].innerHTML='';};} |
FCKTableHandler.GetSelectedCells=function(){var A=new Array();var B=FCK.EditorDocument.selection.createRange();var C=B.parentElement();if (C&&C.tagName=="TD") A[0]=C;else{var C=FCKSelection.MoveToAncestorNode("TABLE");if (C){for (var i=0;i<C.cells.length;i++){var E=FCK.EditorDocument.selection.createRange();E.moveToElementText(C.cells[i]);if (B.inRange(E)||(B.compareEndPoints('StartToStart',E)>=0&&B.compareEndPoints('StartToEnd',E)<=0)||(B.compareEndPoints('EndToStart',E)>=0&&B.compareEndPoints('EndToEnd',E)<=0)){A[A.length]=C.cells[i];};};};};return A;}; |
var FCKXml;if (!(FCKXml=NS.FCKXml)){FCKXml=NS.FCKXml=function(){this.Error=false;};FCKXml.prototype.LoadUrl=function(A){this.Error=false;var B=FCKTools.CreateXmlObject('XmlHttp');if (!B){this.Error=true;return;};B.open("GET",A,false);B.send(null);if (B.status==200||B.status==304) this.DOMDocument=B.responseXML;else if (B.status==0&&B.readyState==4){this.DOMDocument=FCKTools.CreateXmlObject('DOMDocument');this.DOMDocument.async=false;this.DOMDocument.resolveExternals=false;this.DOMDocument.loadXML(B.responseText);}else{this.Error=true;alert('Error loading "'+A+'"');};};FCKXml.prototype.SelectNodes=function(A,B){if (this.Error) return new Array();if (B) return B.selectNodes(A);else return this.DOMDocument.selectNodes(A);};FCKXml.prototype.SelectSingleNode=function(A,B){if (this.Error) return;if (B) return B.selectSingleNode(A);else return this.DOMDocument.selectSingleNode(A);};} |
var FCKStyleDef=function(A,B){this.Name=A;this.Element=B.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new Object();};FCKStyleDef.prototype.AddAttribute=function(A,B){this.Attributes[A]=B;};FCKStyleDef.prototype.GetOpenerTag=function(){var s='<'+this.Element;for (var a in this.Attributes) s+=' '+a+'="'+this.Attributes[a]+'"';return s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return '</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if (FCKSelection.GetType()=='Control') this._RemoveMe(FCKSelection.GetSelectedElement());else this._RemoveMe(FCKSelection.GetParentElement());} |
FCKStyleDef.prototype.ApplyToSelection=function(){var A=FCK.EditorDocument.selection;if (A.type=='Text'){var B=A.createRange();var e=document.createElement(this.Element);e.innerHTML=B.htmlText;this._AddAttributes(e);this._RemoveDuplicates(e);B.pasteHTML(e.outerHTML);}else if (A.type=='Control'){var C=FCKSelection.GetSelectedElement();if (C.tagName==this.Element) this._AddAttributes(C);};};FCKStyleDef.prototype._AddAttributes=function(A){for (var a in this.Attributes){if (a.toLowerCase()=='style') A.style.cssText=this.Attributes[a];else A.setAttribute(a,this.Attributes[a],0);};};FCKStyleDef.prototype._RemoveDuplicates=function(A){for (var i=0;i<A.children.length;i++){var B=A.children[i];this._RemoveDuplicates(B);if (this.IsEqual(B)){B.insertAdjacentHTML('beforeBegin',B.innerHTML);B.parentElement.removeChild(B);};};};FCKStyleDef.prototype.IsEqual=function(e){if (e.tagName!=this.Element) return false;for (var a in this.Attributes){switch (a.toLowerCase()){case 'style':if (e.style.cssText.toLowerCase()!=this.Attributes[a].toLowerCase()) return false;break;case 'class':if (e.getAttribute('className',0)!=this.Attributes[a]) return false;break;default:if (e.getAttribute(a,0)!=this.Attributes[a]) return false;};};return true;};FCKStyleDef.prototype._RemoveMe=function(A){if (!A) return;var B=A.parentElement;if (this.IsEqual(A)){if (this.IsObjectElement){for (var a in this.Attributes){switch (a.toLowerCase()){case 'class':A.removeAttribute('className',0);break;default:A.removeAttribute(a,0);};};return;}else FCKTools.RemoveOuterTags(A);};this._RemoveMe(B);} |
var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(A){var B=new FCKXml();B.LoadUrl(A);var C=B.SelectNodes('Styles/Style');for (var i=0;i<C.length;i++){var D=C[i].attributes.getNamedItem('element').value.toUpperCase();var E=new FCKStyleDef(C[i].attributes.getNamedItem('name').value,D);if (E.IsObjectElement) this.HasObjectElements=true;var F=B.SelectNodes('Attribute',C[i]);for (var j=0;j<F.length;j++){var G=F[j].attributes.getNamedItem('name').value;var H=F[j].attributes.getNamedItem('value').value;if (G.toLowerCase()=='style'){var I=document.createElement('SPAN');I.style.cssText=H;H=I.style.cssText;};E.AddAttribute(G,H);};this.Styles[E.Name]=E;var J=this.StyleGroups[D];if (J==null){this.StyleGroups[D]=new Array();J=this.StyleGroups[D];};J[J.length]=E;};this.Loaded=true;} |
var FCKNamedCommand=function(A){this.Name=A;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);}; |
var FCKDialogCommand=function(A,B,C,D,E,F,G){this.Name=A;this.Title=B;this.Url=C;this.Width=D;this.Height=E;this.GetStateFunction=F;this.GetStateParam=G;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else return FCK_TRISTATE_OFF;};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(A){if (A==null||A==""){}else FCK.ExecuteNamedCommand('FontName',A);};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(A){if (typeof(A)=='string') A=parseInt(A);if (A==null||A==''){FCK.ExecuteNamedCommand('FontSize',3);}else FCK.ExecuteNamedCommand('FontSize',A);};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(A){if (A==null||A=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else FCK.ExecuteNamedCommand('FormatBlock','<'+A+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var A=FCK.LinkedField.form;if (typeof(A.onsubmit)=='function'){var B=A.onsubmit();if (B!=null&&B===false) return;};A.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');FCKUndo.Typing=true;};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsGecko){var A=FCKConfig.ScreenWidth*0.65;var B=FCKConfig.ScreenHeight*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',A,B,null,null,true);}else FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Undo();else FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.CheckUndoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Undo');};var FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if (FCKBrowserInfo.IsIE) FCKUndo.Redo();else FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if (FCKBrowserInfo.IsIE) return (FCKUndo.CheckRedoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return FCK.GetNamedCommandState('Redo');} |
var FCKSpellCheckCommand=function(){this.Name='SpellCheck';this.IsEnabled=(FCKConfig.SpellChecker=='ieSpell'||FCKConfig.SpellChecker=='SpellerPages');};FCKSpellCheckCommand.prototype.Execute=function(){switch (FCKConfig.SpellChecker){case 'ieSpell':this._RunIeSpell();break;case 'SpellerPages':FCKDialog.OpenDialog('FCKDialog_SpellCheck','Spell Check','dialog/fck_spellerpages.html',440,480);break;};};FCKSpellCheckCommand.prototype._RunIeSpell=function(){try{var A=new ActiveXObject("ieSpell.ieSpellExtension");A.CheckAllLinkedDocuments(FCK.EditorDocument);}catch(e){if(e.number==-2146827859){if (confirm(FCKLang.IeSpellDownload)) window.open(FCKConfig.IeSpellDownloadUrl,'IeSpellDownload');}else alert('Error Loading ieSpell: '+e.message+' ('+e.number+')');};};FCKSpellCheckCommand.prototype.GetState=function(){return this.IsEnabled?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;} |
var FCKTextColorCommand=function(A){this.Name=A=='ForeColor'?'TextColor':'BGColor';this.Type=A;this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._CreatePanelBody(this._Panel.Document,this._Panel.PanelDiv);};FCKTextColorCommand.prototype.Execute=function(A,B,C){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(A,B,C);};FCKTextColorCommand.prototype.SetColor=function(A){if (FCK._ActiveColorPanelType=='ForeColor') FCK.ExecuteNamedCommand('ForeColor',A);else if (FCKBrowserInfo.IsGecko) FCK.ExecuteNamedCommand('hilitecolor',A);else FCK.ExecuteNamedCommand('BackColor',A);delete FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() { this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() { this.className='ColorDeselected';};function FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(A,B){function CreateSelectionDiv(){var C=A.createElement("DIV");C.className='ColorDeselected';C.onmouseover=FCKTextColorCommand_OnMouseOver;C.onmouseout=FCKTextColorCommand_OnMouseOut;return C;};var D=B.appendChild(A.createElement("TABLE"));D.style.tableLayout='fixed';D.cellPadding=0;D.cellSpacing=0;D.border=0;D.width=150;var E=D.insertRow(-1).insertCell(-1);E.colSpan=8;var C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table cellspacing="0" cellpadding="0" width="100%" border="0">\<tr>\<td><div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #000000"></div></div></td>\<td nowrap width="100%" align="center" unselectable="on">' + FCKLang.ColorAutomatic + '</td>\</tr>\</table>';C.Command=this;C.onclick=FCKTextColorCommand_AutoOnClick;var G=FCKConfig.FontColors.toString().split(',');var H=0;while (H<G.length){var I=D.insertRow(-1);for (var i=0;i<8&&H<G.length;i++,H++){C=I.insertCell(-1).appendChild(CreateSelectionDiv());C.Color=G[H];C.innerHTML='<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #'+G[H]+'"></div></div>';C.Command=this;C.onclick=FCKTextColorCommand_OnClick;};};E=D.insertRow(-1).insertCell(-1);E.colSpan=8;C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';C.Command=this;C.onclick=FCKTextColorCommand_MoreOnClick;} |
var FCKPastePlainTextCommand=function(){this.Name='PasteText';};FCKPastePlainTextCommand.prototype.Execute=function(){FCK.PasteAsPlainText();};FCKPastePlainTextCommand.prototype.GetState=function(){return FCK.GetNamedCommandState('Paste');}; |
var FCKPasteWordCommand=function(){this.Name='PasteWord';};FCKPasteWordCommand.prototype.Execute=function(){FCK.PasteFromWord();};FCKPasteWordCommand.prototype.GetState=function(){if (FCKConfig.ForcePasteAsPlainText) return FCK_TRISTATE_DISABLED;else return FCK.GetNamedCommandState('Paste');}; |
var FCKTableCommand=function(command){this.Name=command;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch (this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case 'TableDeleteRows':FCKTableHandler.DeleteRows();break;case 'TableInsertColumn':FCKTableHandler.InsertColumn();break;case 'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case 'TableInsertCell':FCKTableHandler.InsertCell();break;case 'TableDeleteCells':FCKTableHandler.DeleteCells();break;case 'TableMergeCells':FCKTableHandler.MergeCells();break;case 'TableSplitCell':FCKTableHandler.SplitCell();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));};};FCKTableCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;} |
var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(styleName,styleComboItem){if (styleComboItem.Selected) styleComboItem.Style.RemoveFromSelection();else styleComboItem.Style.ApplyToSelection();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){var oSelection=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var e=FCKSelection.GetSelectedElement();if (e) return this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;else FCK_TRISTATE_OFF;}else return FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var aActiveStyles=new Array();if (FCKSelection.GetType()=='Control') this._CheckStyle(FCKSelection.GetSelectedElement(),aActiveStyles,false);else this._CheckStyle(FCKSelection.GetParentElement(),aActiveStyles,true);return aActiveStyles;};FCKStyleCommand.prototype._CheckStyle=function(element,targetArray,checkParent){if (!element) return;if (element.nodeType==1){var aStyleGroup=this.StylesLoader.StyleGroups[element.tagName];if (aStyleGroup){for (var i=0;i<aStyleGroup.length;i++){if (aStyleGroup[i].IsEqual(element)) targetArray[targetArray.length]=aStyleGroup[i];};};};if (checkParent) this._CheckStyle(element.parentNode,targetArray,checkParent);} |
var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new Object();FCKCommands.RegisterCommand=function(commandName,command){this.LoadedCommands[commandName]=command;};FCKCommands.GetCommand=function(commandName){var oCommand=FCKCommands.LoadedCommands[commandName];if (oCommand) return oCommand;switch (commandName){case 'DocProps':oCommand=new FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case 'Templates':oCommand=new FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case 'Link':oCommand=new FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case 'Anchor':oCommand=new FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case 'BulletedList':oCommand=new FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case 'NumberedList':oCommand=new FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case 'About':oCommand=new FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case 'Find':oCommand=new FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case 'Replace':oCommand=new FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case 'Image':oCommand=new FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case 'Flash':oCommand=new FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case 'SpecialChar':oCommand=new FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,300);break;case 'Smiley':oCommand=new FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case 'Table':oCommand=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',400,250);break;case 'TableProp':oCommand=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case 'TableCellProp':oCommand=new FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case 'UniversalKey':oCommand=new FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case 'Style':oCommand=new FCKStyleCommand();break;case 'FontName':oCommand=new FCKFontNameCommand();break;case 'FontSize':oCommand=new FCKFontSizeCommand();break;case 'FontFormat':oCommand=new FCKFormatBlockCommand();break;case 'Source':oCommand=new FCKSourceCommand();break;case 'Preview':oCommand=new FCKPreviewCommand();break;case 'Save':oCommand=new FCKSaveCommand();break;case 'NewPage':oCommand=new FCKNewPageCommand();break;case 'TextColor':oCommand=new FCKTextColorCommand('ForeColor');break;case 'BGColor':oCommand=new FCKTextColorCommand('BackColor');break;case 'PasteText':oCommand=new FCKPastePlainTextCommand();break;case 'PasteWord':oCommand=new FCKPasteWordCommand();break;case 'TableInsertRow':oCommand=new FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':oCommand=new FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':oCommand=new FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':oCommand=new FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':oCommand=new FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':oCommand=new FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':oCommand=new FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':oCommand=new FCKTableCommand('TableSplitCell');break;case 'Form':oCommand=new FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case 'Checkbox':oCommand=new FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case 'Radio':oCommand=new FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case 'TextField':oCommand=new FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case 'Textarea':oCommand=new FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case 'HiddenField':oCommand=new FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case 'Button':oCommand=new FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case 'Select':oCommand=new FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case 'ImageButton':oCommand=new FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case 'SpellCheck':oCommand=new FCKSpellCheckCommand();break;case 'Undo':oCommand=new FCKUndoCommand();break;case 'Redo':oCommand=new FCKRedoCommand();break;case 'Undefined':oCommand=new FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(commandName)) oCommand=new FCKNamedCommand(commandName);else{alert(FCKLang.UnknownCommand.replace(/%1/g,commandName));return;};};FCKCommands.LoadedCommands[commandName]=oCommand;return oCommand;};FCKCommands.GetFullPageState=function(){return FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}; |
var FCKToolbarButton=function(commandName,label,tooltip,style,sourceView,contextSensitive){this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.Tooltip=tooltip?tooltip:(label?label:commandName);this.Style=style?style:FCK_TOOLBARITEM_ONLYICON;this.SourceView=sourceView?true:false;this.ContextSensitive=contextSensitive?true:false;this.IconPath=FCKConfig.SkinPath+'toolbar/'+commandName.toLowerCase()+'.gif';this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var sHtml='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) sHtml+='<td class="TB_Icon" unselectable="on"><img src="'+this.IconPath+'" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) sHtml+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';sHtml+='</tr>'+'</table>';this.DOMDiv.innerHTML=sHtml;var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var eState=this.Command.GetState();if (eState==this.State) return;this.State=eState;switch (this.State){case FCK_TRISTATE_ON:this.DOMDiv.className='TB_Button_On';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOnOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOnOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;case FCK_TRISTATE_OFF:this.DOMDiv.className='TB_Button_Off';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOffOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOffOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;default:this.Disable();break;};};function FCKToolbarButton_OnMouseOnOver(){this.className='TB_Button_On TB_Button_On_Over';};function FCKToolbarButton_OnMouseOnOut(){this.className='TB_Button_On';};function FCKToolbarButton_OnMouseOffOver(){this.className='TB_Button_On TB_Button_Off_Over';};function FCKToolbarButton_OnMouseOffOut(){this.className='TB_Button_Off';};function FCKToolbarButton_OnClick(e){this.FCKToolbarButton.Click(e);return false;};FCKToolbarButton.prototype.Click=function(){this.Command.Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this.DOMDiv.className='TB_Button_Disabled';this.DOMDiv.onmouseover=null;this.DOMDiv.onmouseout=null;this.DOMDiv.onclick=null;} |
var FCKSpecialCombo=function(caption){this.FieldWidth=80;this.PanelWidth=130;this.PanelMaxHeight=150;this.Label=' ';this.Caption=caption;this.Enabled=true;this.Items=new Object();this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._Panel.PanelDiv.className+=' SC_Panel';this._Panel.PanelDiv.innerHTML='<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>';this._ItemsHolderEl=this._Panel.PanelDiv.getElementsByTagName('TD')[0];};function FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function FCKSpecialCombo_ItemOnClick(){this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if (typeof(this.FCKSpecialCombo.OnSelect)=='function') this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(id,html,label){var oDiv=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));oDiv.className=oDiv.originalClass='SC_Item';oDiv.innerHTML=html;oDiv.FCKItemID=id;oDiv.FCKItemLabel=label?label:id;oDiv.FCKSpecialCombo=this;oDiv.Selected=false;oDiv.onmouseover=FCKSpecialCombo_ItemOnMouseOver;oDiv.onmouseout=FCKSpecialCombo_ItemOnMouseOut;oDiv.onclick=FCKSpecialCombo_ItemOnClick;this.Items[id.toString().toLowerCase()]=oDiv;return oDiv;};FCKSpecialCombo.prototype.SelectItem=function(itemId){itemId=itemId?itemId.toString().toLowerCase():'';var oDiv=this.Items[itemId];if (oDiv){oDiv.className=oDiv.originalClass='SC_ItemSelected';oDiv.Selected=true;};};FCKSpecialCombo.prototype.DeselectAll=function(){for (var i in this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};};FCKSpecialCombo.prototype.SetLabelById=function(id){id=id?id.toString().toLowerCase():'';var oDiv=this.Items[id];this.SetLabel(oDiv?oDiv.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(text){this.Label=text.length==0?' ':text;if (this._LabelEl) this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(isEnabled){this.Enabled=isEnabled;this._OuterTable.className=isEnabled?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(targetElement){this._OuterTable=targetElement.appendChild(document.createElement('TABLE'));this._OuterTable.cellPadding=0;this._OuterTable.cellSpacing=0;this._OuterTable.insertRow(-1);if (this.Caption&&this.Caption.length>0){var oCaptionCell=this._OuterTable.rows[0].insertCell(-1);oCaptionCell.unselectable='on';oCaptionCell.innerHTML=this.Caption;oCaptionCell.className='SC_FieldCaption';};var oField=this._OuterTable.rows[0].insertCell(-1).appendChild(document.createElement('DIV'));oField.className='SC_Field';oField.style.width=this.FieldWidth+'px';oField.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldLabel" unselectable="on"><label unselectable="on"> </label></td><td class="SC_FieldButton" unselectable="on"> </td></tr></tbody></table>';this._LabelEl=oField.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;oField.SpecialCombo=this;oField.onmouseover=FCKSpecialCombo_OnMouseOver;oField.onmouseout=FCKSpecialCombo_OnMouseOut;oField.onclick=FCKSpecialCombo_OnClick;};function FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled) this.className='SC_Field SC_FieldOver';};function FCKSpecialCombo_OnMouseOut(){this.className='SC_Field';};function FCKSpecialCombo_OnClick(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.SpecialCombo.Enabled){if (typeof(this.SpecialCombo.OnBeforeClick)=='function') this.SpecialCombo.OnBeforeClick(this.SpecialCombo);if (this.SpecialCombo._ItemsHolderEl.offsetHeight>this.SpecialCombo.PanelMaxHeight) this.SpecialCombo._Panel.PanelDiv.style.height=this.SpecialCombo.PanelMaxHeight+'px';else this.SpecialCombo._Panel.PanelDiv.style.height=this.SpecialCombo._ItemsHolderEl.offsetHeight+'px';this.SpecialCombo._Panel.PanelDiv.style.width=this.SpecialCombo.PanelWidth+'px';if (FCKBrowserInfo.IsGecko) this.SpecialCombo._Panel.PanelDiv.style.overflow='-moz-scrollbars-vertical';this.SpecialCombo._Panel.Show(0,this.offsetHeight,this,null,this.SpecialCombo.PanelMaxHeight,true);};return false;}; |
var FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function FCKToolbarSpecialCombo_OnSelect(itemId,item){this.Command.Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.CreateInstance=function(parentToolbar){this._Combo=new FCKSpecialCombo(this.GetLabel());this._Combo.FieldWidth=100;this._Combo.PanelWidth=150;this._Combo.PanelMaxHeight=150;this.CreateItems(this._Combo);this._Combo.Create(parentToolbar.DOMRow.insertCell(-1));this._Combo.Command=this.Command;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var eState;var sValue=this.Command.GetState();if (sValue!=FCK_TRISTATE_DISABLED){eState=FCK_TRISTATE_ON;if (this.RefreshActiveItems) this.RefreshActiveItems(this._Combo,sValue);else FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,sValue);}else eState=FCK_TRISTATE_DISABLED;if (eState==this.State) return;if (eState==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=eState;this._Combo.SetEnabled(eState!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);} |
var FCKToolbarFontsCombo=function(){this.Command=FCKCommands.GetCommand('FontName');};FCKToolbarFontsCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(targetSpecialCombo){var aFonts=FCKConfig.FontNames.split(';');for (var i=0;i<aFonts.length;i++) this._Combo.AddItem(aFonts[i],'<span style="font-family: \''+aFonts[i]+'\'; font-size: 12px;">'+aFonts[i]+'</span>');} |
var FCKToolbarFontSizeCombo=function(){this.Command=FCKCommands.GetCommand('FontSize');};FCKToolbarFontSizeCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(targetSpecialCombo){targetSpecialCombo.FieldWidth=70;var aSizes=FCKConfig.FontSizes.split(';');for (var i=0;i<aSizes.length;i++){var aSizeParts=aSizes[i].split('/');this._Combo.AddItem(aSizeParts[0],'<font size="'+aSizeParts[0]+'">'+aSizeParts[1]+'</font>',aSizeParts[1]);};} |
var FCKToolbarFontFormatCombo=function(){this.Command=FCKCommands.GetCommand('FontFormat');};FCKToolbarFontFormatCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(targetSpecialCombo){var aNames=FCKLang['FontFormats'].split(';');var oNames={p:aNames[0],pre:aNames[1],address:aNames[2],h1:aNames[3],h2:aNames[4],h3:aNames[5],h4:aNames[6],h5:aNames[7],h6:aNames[8],div:aNames[9]};var aTags=FCKConfig.FontFormats.split(';');for (var i=0;i<aTags.length;i++){if (aTags[i]=='div'&&FCKBrowserInfo.IsGecko) continue;this._Combo.AddItem(aTags[i],'<'+aTags[i]+'>'+oNames[aTags[i]]+'</'+aTags[i]+'>',oNames[aTags[i]]);};} |
var FCKToolbarStyleCombo=function(){this.Command=FCKCommands.GetCommand('Style');};FCKToolbarStyleCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(targetSpecialCombo){FCKTools.AppendStyleSheet(targetSpecialCombo._Panel.Document,FCKConfig.EditorAreaCSS);if (!FCKBrowserInfo.IsGecko) targetSpecialCombo.OnBeforeClick=this.RefreshVisibleItems;for (var s in this.Command.Styles){var oStyle=this.Command.Styles[s];if (oStyle.IsObjectElement) var oItem=targetSpecialCombo.AddItem(s,s);else var oItem=targetSpecialCombo.AddItem(s,oStyle.GetOpenerTag()+s+oStyle.GetCloserTag());oItem.Style=oStyle;};};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(targetSpecialCombo){targetSpecialCombo.DeselectAll();var aStyles=this.Command.GetActiveStyles();if (aStyles.length>0){for (var i=0;i<aStyles.length;i++) targetSpecialCombo.SelectItem(aStyles[i].Name);targetSpecialCombo.SetLabelById(aStyles[0].Name);}else targetSpecialCombo.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(targetSpecialCombo){if (FCKSelection.GetType()=='Control') var sTagName=FCKSelection.GetSelectedElement().tagName;for (var i in targetSpecialCombo.Items){var oItem=targetSpecialCombo.Items[i];if ((sTagName&&oItem.Style.Element==sTagName)||(!sTagName&&!oItem.Style.IsObjectElement)) oItem.style.display='';else oItem.style.display='none';};} |
var FCKToolbarPanelButton=function(commandName,label,tooltip,style){this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.Tooltip=tooltip?tooltip:(label?label:commandName);this.Style=style?style:FCK_TOOLBARITEM_ONLYICON;this.State=FCK_UNKNOWN;};FCKToolbarPanelButton.prototype.Click=function(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.State!=FCK_TRISTATE_DISABLED){this.Command.Execute(0,this.DOMDiv.offsetHeight,this.DOMDiv);};return false;};FCKToolbarPanelButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var sHtml='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) sHtml+='<td class="TB_Icon" unselectable="on"><img src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) sHtml+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';sHtml+='<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';this.DOMDiv.innerHTML=sHtml;var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable; |
var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new Object();FCKToolbarItems.RegisterItem=function(itemName,item){this.LoadedItems[itemName]=item;};FCKToolbarItems.GetItem=function(itemName){var oItem=FCKToolbarItems.LoadedItems[itemName];if (oItem) return oItem;switch (itemName){case 'Source':oItem=new FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true);break;case 'DocProps':oItem=new FCKToolbarButton('DocProps',FCKLang.DocProps);break;case 'Templates':oItem=new FCKToolbarButton('Templates',FCKLang.Templates);break;case 'Save':oItem=new FCKToolbarButton('Save',FCKLang.Save,null,null,true);break;case 'NewPage':oItem=new FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true);break;case 'Preview':oItem=new FCKToolbarButton('Preview',FCKLang.Preview,null,null,true);break;case 'About':oItem=new FCKToolbarButton('About',FCKLang.About,null,null,true);break;case 'Cut':oItem=new FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true);break;case 'Copy':oItem=new FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true);break;case 'Paste':oItem=new FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true);break;case 'PasteText':oItem=new FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true);break;case 'PasteWord':oItem=new FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true);break;case 'Print':oItem=new FCKToolbarButton('Print',FCKLang.Print,null,null,false,true);break;case 'SpellCheck':oItem=new FCKToolbarButton('SpellCheck',FCKLang.SpellCheck);break;case 'Undo':oItem=new FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true);break;case 'Redo':oItem=new FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true);break;case 'SelectAll':oItem=new FCKToolbarButton('SelectAll',FCKLang.SelectAll);break;case 'RemoveFormat':oItem=new FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true);break;case 'Bold':oItem=new FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true);break;case 'Italic':oItem=new FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true);break;case 'Underline':oItem=new FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true);break;case 'StrikeThrough':oItem=new FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true);break;case 'Subscript':oItem=new FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true);break;case 'Superscript':oItem=new FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true);break;case 'OrderedList':oItem=new FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true);break;case 'UnorderedList':oItem=new FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true);break;case 'Outdent':oItem=new FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true);break;case 'Indent':oItem=new FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true);break;case 'Link':oItem=new FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true);break;case 'Unlink':oItem=new FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true);break;case 'Anchor':oItem=new FCKToolbarButton('Anchor',FCKLang.Anchor);break;case 'Image':oItem=new FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage);break;case 'Flash':oItem=new FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash);break;case 'Table':oItem=new FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable);break;case 'SpecialChar':oItem=new FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar);break;case 'Smiley':oItem=new FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley);break;case 'UniversalKey':oItem=new FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard);break;case 'Rule':oItem=new FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true);break;case 'JustifyLeft':oItem=new FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true);break;case 'JustifyCenter':oItem=new FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true);break;case 'JustifyRight':oItem=new FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true);break;case 'JustifyFull':oItem=new FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true);break;case 'Style':oItem=new FCKToolbarStyleCombo();break;case 'FontName':oItem=new FCKToolbarFontsCombo();break;case 'FontSize':oItem=new FCKToolbarFontSizeCombo();break;case 'FontFormat':oItem=new FCKToolbarFontFormatCombo();break;case 'TextColor':oItem=new FCKToolbarPanelButton('TextColor',FCKLang.TextColor);break;case 'BGColor':oItem=new FCKToolbarPanelButton('BGColor',FCKLang.BGColor);break;case 'Find':oItem=new FCKToolbarButton('Find',FCKLang.Find);break;case 'Replace':oItem=new FCKToolbarButton('Replace',FCKLang.Replace);break;case 'Form':oItem=new FCKToolbarButton('Form',FCKLang.Form);break;case 'Checkbox':oItem=new FCKToolbarButton('Checkbox',FCKLang.Checkbox);break;case 'Radio':oItem=new FCKToolbarButton('Radio',FCKLang.RadioButton);break;case 'TextField':oItem=new FCKToolbarButton('TextField',FCKLang.TextField);break;case 'Textarea':oItem=new FCKToolbarButton('Textarea',FCKLang.Textarea);break;case 'HiddenField':oItem=new FCKToolbarButton('HiddenField',FCKLang.HiddenField);break;case 'Button':oItem=new FCKToolbarButton('Button',FCKLang.Button);break;case 'Select':oItem=new FCKToolbarButton('Select',FCKLang.SelectionField);break;case 'ImageButton':oItem=new FCKToolbarButton('ImageButton',FCKLang.ImageButton);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,itemName));return;};FCKToolbarItems.LoadedItems[itemName]=oItem;return oItem;} |
var FCKToolbar=function(){this.Items=new Array();this.DOMTable=document.createElement('table');this.DOMTable.className='TB_Toolbar';with (this.DOMTable){style.styleFloat=style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';cellPadding=0;cellSpacing=0;border=0;};this.DOMRow=this.DOMTable.insertRow(-1);var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_Start';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(this.DOMTable);};FCKToolbar.prototype.AddItem=function(toolbarItem){this.Items[this.Items.length]=toolbarItem;toolbarItem.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.unselectable='on';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_End';oCell.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';}; |
var FCKToolbarBreak=function(){var oBreakDiv=document.createElement('div');oBreakDiv.className='TB_Break';oBreakDiv.style.clear=FCKLang.Dir=='rtl'?'left':'right';FCKToolbarSet.DOMElement.appendChild(oBreakDiv);} |
var FCKToolbarSet=FCK.ToolbarSet=new Object();document.getElementById('ExpandHandle').title=FCKLang.ToolbarExpand;document.getElementById('CollapseHandle').title=FCKLang.ToolbarCollapse;FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.ItemsWysiwygOnly=new Array();FCKToolbarSet.ItemsContextSensitive=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display='none';document.getElementById('Expanded').style.display='';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display='';document.getElementById('Expanded').style.display='none';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display=FCKConfig.ToolbarCanCollapse?'':'none';};FCKToolbarSet.Load=function(toolbarSetName){this.DOMElement=document.getElementById('eToolbar');var ToolbarSet=FCKConfig.ToolbarSets[toolbarSetName];if (!ToolbarSet){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,toolbarSetName));return;};this.Toolbars=new Array();for (var x=0;x<ToolbarSet.length;x++){var oToolbarItems=ToolbarSet[x];var oToolbar;if (typeof(oToolbarItems)=='string'){if (oToolbarItems=='/') oToolbar=new FCKToolbarBreak();}else{var oToolbar=new FCKToolbar();for (var j=0;j<oToolbarItems.length;j++){var sItem=oToolbarItems[j];if (sItem=='-') oToolbar.AddSeparator();else{var oItem=FCKToolbarItems.GetItem(sItem);if (oItem){oToolbar.AddItem(oItem);if (!oItem.SourceView) this.ItemsWysiwygOnly[this.ItemsWysiwygOnly.length]=oItem;if (oItem.ContextSensitive) this.ItemsContextSensitive[this.ItemsContextSensitive.length]=oItem;};};};oToolbar.AddTerminator();};this.Toolbars[this.Toolbars.length]=oToolbar;};};FCKToolbarSet.RefreshModeState=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Enable();FCKToolbarSet.RefreshItemsState();}else{FCKToolbarSet.RefreshItemsState();for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Disable();};};FCKToolbarSet.RefreshItemsState=function(){for (var i=0;i<FCKToolbarSet.ItemsContextSensitive.length;i++) FCKToolbarSet.ItemsContextSensitive[i].RefreshState();}; |
var FCKDialog=new Object();FCKDialog.OpenDialog=function(dialogName,dialogTitle,dialogPage,width,height,customValue,parentWindow,resizable){var oDialogInfo=new Object();oDialogInfo.Title=dialogTitle;oDialogInfo.Page=dialogPage;oDialogInfo.Editor=window;oDialogInfo.CustomValue=customValue;var sUrl=FCKConfig.BasePath+'fckdialog.html';this.Show(oDialogInfo,dialogName,sUrl,width,height,parentWindow,resizable);}; |
FCKDialog.Show=function(dialogInfo,dialogName,pageUrl,dialogWidth,dialogHeight,parentWindow){if (!parentWindow) parentWindow=window;parentWindow.showModalDialog(pageUrl,dialogInfo,"dialogWidth:"+dialogWidth+"px;dialogHeight:"+dialogHeight+"px;help:no;scroll:no;status:no");}; |
var FCKContextMenuItem=function(contextMenu,commandName,label,hasIcon){this.ContextMenu=contextMenu;this.Command=FCKCommands.GetCommand(commandName);this.Label=label?label:commandName;this.HasIcon=hasIcon?true:false;};function FCKContextMenuItem_OnMouseOver(){if (this.className!='CM_Disabled') this.className='CM_Over';};function FCKContextMenuItem_OnMouseOut(){if (this.className!='CM_Disabled') this.className='CM_Option';};function FCKContextMenuItem_OnClick(){if (this.className!='CM_Disabled'){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();};return false;};FCKContextMenuItem.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=FCKContextMenuItem_OnMouseOver;this._Row.onmouseout=FCKContextMenuItem_OnMouseOut;this._Row.onclick=FCKContextMenuItem_OnClick;var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';if (this.HasIcon) oCell.innerHTML='<img alt="" src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="20" unselectable="on">';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.unselectable='on';oCell.noWrap=true;oCell.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible?'':'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON:case FCK_TRISTATE_OFF:this._Row.className='CM_Option';break;default:this._Row.className='CM_Disabled';break;};}; |
var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Separator';var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible?'':'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){}; |
var FCKContextMenuGroup=function(addSeparator,contextMenu,firstItemCommand,firstItemLabel,hasIcon){this.IsVisible=true;this.Items=new Array();if (addSeparator) this.Add(new FCKContextMenuSeparator());if (contextMenu&&firstItemCommand&&firstItemLabel) this.Add(new FCKContextMenuItem(contextMenu,firstItemCommand,firstItemLabel,hasIcon));this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(contextMenuItem){this.Items[this.Items.length]=contextMenuItem;};FCKContextMenuGroup.prototype.CreateTableRows=function(table){for (var i=0;i<this.Items.length;i++){this.Items[i].CreateTableRow(table);};};FCKContextMenuGroup.prototype.SetVisible=function(isVisible){for (var i=0;i<this.Items.length;i++){this.Items[i].SetVisible(isVisible);};this.IsVisible=isVisible;};FCKContextMenuGroup.prototype.RefreshState=function(){if (!this.IsVisible) return;for (var i=0;i<this.Items.length;i++){this.Items[i].RefreshState();};} |
var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var oTable=this._Document.createElement('TABLE');oTable.cellSpacing=0;oTable.cellPadding=0;oTable.border=0;this._Div.appendChild(oTable);this.Groups=new Object();for (var i=0;i<FCKConfig.ContextMenu.length;i++){var sGroup=FCKConfig.ContextMenu[i];this.Groups[sGroup]=this._GetGroup(sGroup);this.Groups[sGroup].CreateTableRows(oTable);};this._IsLoaded=true;};FCKContextMenu._GetGroup=function(groupName){var oGroup;switch (groupName){case 'Generic':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuItem(this,'Cut',FCKLang.Cut,true));Add(new FCKContextMenuItem(this,'Copy',FCKLang.Copy,true));Add(new FCKContextMenuItem(this,'Paste',FCKLang.Paste,true));};break;case 'Link':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'Link',FCKLang.EditLink,true));Add(new FCKContextMenuItem(this,'Unlink',FCKLang.RemoveLink,true));};break;case 'TableCell':oGroup=new FCKContextMenuGroup();with (oGroup){Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertRow',FCKLang.InsertRow,true));Add(new FCKContextMenuItem(this,'TableDeleteRows',FCKLang.DeleteRows,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertColumn',FCKLang.InsertColumn,true));Add(new FCKContextMenuItem(this,'TableDeleteColumns',FCKLang.DeleteColumns,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableInsertCell',FCKLang.InsertCell,true));Add(new FCKContextMenuItem(this,'TableDeleteCells',FCKLang.DeleteCells,true));Add(new FCKContextMenuItem(this,'TableMergeCells',FCKLang.MergeCells,true));Add(new FCKContextMenuItem(this,'TableSplitCell',FCKLang.SplitCell,true));Add(new FCKContextMenuSeparator());Add(new FCKContextMenuItem(this,'TableCellProp',FCKLang.CellProperties,true));Add(new FCKContextMenuItem(this,'TableProp',FCKLang.TableProperties,true));};break;case 'Table':return new FCKContextMenuGroup(true,this,'Table',FCKLang.TableProperties,true);case 'Image':return new FCKContextMenuGroup(true,this,'Image',FCKLang.ImageProperties,true);case 'Flash':return new FCKContextMenuGroup(true,this,'Flash',FCKLang.FlashProperties,true);case 'Form':return new FCKContextMenuGroup(true,this,'Form',FCKLang.FormProp,true);case 'Checkbox':return new FCKContextMenuGroup(true,this,'Checkbox',FCKLang.CheckboxProp,true);case 'Radio':return new FCKContextMenuGroup(true,this,'Radio',FCKLang.RadioButtonProp,true);case 'TextField':return new FCKContextMenuGroup(true,this,'TextField',FCKLang.TextFieldProp,true);case 'HiddenField':return new FCKContextMenuGroup(true,this,'HiddenField',FCKLang.HiddenFieldProp,true);case 'ImageButton':return new FCKContextMenuGroup(true,this,'ImageButton',FCKLang.ImageButtonProp,true);case 'Button':return new FCKContextMenuGroup(true,this,'Button',FCKLang.ButtonProp,true);case 'Select':return new FCKContextMenuGroup(true,this,'Select',FCKLang.SelectionFieldProp,true);case 'Textarea':return new FCKContextMenuGroup(true,this,'Textarea',FCKLang.TextareaProp,true);case 'BulletedList':return new FCKContextMenuGroup(true,this,'BulletedList',FCKLang.BulletedListProp,true);case 'NumberedList':return new FCKContextMenuGroup(true,this,'NumberedList',FCKLang.NumberedListProp,true);case 'Anchor':return new FCKContextMenuGroup(true,this,'Anchor',FCKLang.AnchorProp,true);};return oGroup;};FCKContextMenu.RefreshState=function(){var oTag=FCKSelection.GetSelectedElement();var sTagName;if (oTag){sTagName=oTag.tagName;};if (this.Groups['Link']) this.Groups['Link'].SetVisible(/*!bIsAnchor &&*/ FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED);if (this.Groups['TableCell']) this.Groups['TableCell'].SetVisible(sTagName!='TABLE'&&FCKSelection.HasAncestorNode('TABLE'));if (this.Groups['Table']) this.Groups['Table'].SetVisible(sTagName=='TABLE');if (this.Groups['Image']) this.Groups['Image'].SetVisible(sTagName=='IMG'&&!oTag.getAttribute('_fckflash')&&!oTag.getAttribute('_fckanchor'));if (this.Groups['Flash']) this.Groups['Flash'].SetVisible(sTagName=='IMG'&&oTag.getAttribute('_fckflash'));if (this.Groups['Anchor']) this.Groups['Anchor'].SetVisible(sTagName=='IMG'&&oTag.getAttribute('_fckanchor'));if (this.Groups['BulletedList']) this.Groups['BulletedList'].SetVisible(FCKSelection.HasAncestorNode('UL'));if (this.Groups['NumberedList']) this.Groups['NumberedList'].SetVisible(FCKSelection.HasAncestorNode('OL'));if (this.Groups['Select']) this.Groups['Select'].SetVisible(sTagName=='SELECT');if (this.Groups['Textarea']) this.Groups['Textarea'].SetVisible(sTagName=='TEXTAREA');if (this.Groups['Form']) this.Groups['Form'].SetVisible(FCKSelection.HasAncestorNode('FORM'));if (this.Groups['Checkbox']) this.Groups['Checkbox'].SetVisible(sTagName=='INPUT'&&oTag.type=='checkbox');if (this.Groups['Radio']) this.Groups['Radio'].SetVisible(sTagName=='INPUT'&&oTag.type=='radio');if (this.Groups['TextField']) this.Groups['TextField'].SetVisible(sTagName=='INPUT'&&(oTag.type=='text'||oTag.type=='password'));if (this.Groups['HiddenField']) this.Groups['HiddenField'].SetVisible(sTagName=='INPUT'&&oTag.type=='hidden');if (this.Groups['ImageButton']) this.Groups['ImageButton'].SetVisible(sTagName=='INPUT'&&oTag.type=='image');if (this.Groups['Button']) this.Groups['Button'].SetVisible(sTagName=='INPUT'&&(oTag.type=='button'||oTag.type=='submit'||oTag.type=='reset'));for (var o in this.Groups){this.Groups[o].RefreshState();};}; |
var FCKTableCommand=function(A){this.Name=A;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch (this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case 'TableDeleteRows':FCKTableHandler.DeleteRows();break;case 'TableInsertColumn':FCKTableHandler.InsertColumn();break;case 'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case 'TableInsertCell':FCKTableHandler.InsertCell();break;case 'TableDeleteCells':FCKTableHandler.DeleteCells();break;case 'TableMergeCells':FCKTableHandler.MergeCells();break;case 'TableSplitCell':FCKTableHandler.SplitCell();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));};};FCKTableCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;} |
var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(A,B){if (B.Selected) B.Style.RemoveFromSelection();else B.Style.ApplyToSelection();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){var A=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var e=FCKSelection.GetSelectedElement();if (e) return this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};return FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var A=new Array();if (FCKSelection.GetType()=='Control') this._CheckStyle(FCKSelection.GetSelectedElement(),A,false);else this._CheckStyle(FCKSelection.GetParentElement(),A,true);return A;};FCKStyleCommand.prototype._CheckStyle=function(A,B,C){if (!A) return;if (A.nodeType==1){var D=this.StylesLoader.StyleGroups[A.tagName];if (D){for (var i=0;i<D.length;i++){if (D[i].IsEqual(A)) B[B.length]=D[i];};};};if (C) this._CheckStyle(A.parentNode,B,C);} |
var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new Object();FCKCommands.RegisterCommand=function(A,B){this.LoadedCommands[A]=B;};FCKCommands.GetCommand=function(A){var B=FCKCommands.LoadedCommands[A];if (B) return B;switch (A){case 'DocProps':B=new FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case 'Templates':B=new FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case 'Link':B=new FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case 'Anchor':B=new FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case 'BulletedList':B=new FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case 'NumberedList':B=new FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case 'About':B=new FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case 'Find':B=new FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case 'Replace':B=new FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case 'Image':B=new FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case 'Flash':B=new FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case 'SpecialChar':B=new FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,300);break;case 'Smiley':B=new FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case 'Table':B=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',400,250);break;case 'TableProp':B=new FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case 'TableCellProp':B=new FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case 'UniversalKey':B=new FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case 'Style':B=new FCKStyleCommand();break;case 'FontName':B=new FCKFontNameCommand();break;case 'FontSize':B=new FCKFontSizeCommand();break;case 'FontFormat':B=new FCKFormatBlockCommand();break;case 'Source':B=new FCKSourceCommand();break;case 'Preview':B=new FCKPreviewCommand();break;case 'Save':B=new FCKSaveCommand();break;case 'NewPage':B=new FCKNewPageCommand();break;case 'TextColor':B=new FCKTextColorCommand('ForeColor');break;case 'BGColor':B=new FCKTextColorCommand('BackColor');break;case 'PasteText':B=new FCKPastePlainTextCommand();break;case 'PasteWord':B=new FCKPasteWordCommand();break;case 'TableInsertRow':B=new FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':B=new FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':B=new FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':B=new FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':B=new FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':B=new FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':B=new FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':B=new FCKTableCommand('TableSplitCell');break;case 'Form':B=new FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case 'Checkbox':B=new FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case 'Radio':B=new FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case 'TextField':B=new FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case 'Textarea':B=new FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case 'HiddenField':B=new FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case 'Button':B=new FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case 'Select':B=new FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case 'ImageButton':B=new FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case 'SpellCheck':B=new FCKSpellCheckCommand();break;case 'Undo':B=new FCKUndoCommand();break;case 'Redo':B=new FCKRedoCommand();break;case 'Undefined':B=new FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(A)) B=new FCKNamedCommand(A);else{alert(FCKLang.UnknownCommand.replace(/%1/g,A));return null;};};FCKCommands.LoadedCommands[A]=B;return B;};FCKCommands.GetFullPageState=function(){return FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}; |
var FCKToolbarButton=function(A,B,C,D,E,F){this.Command=FCKCommands.GetCommand(A);this.Label=B?B:A;this.Tooltip=C?C:(B?B:A);this.Style=D?D:FCK_TOOLBARITEM_ONLYICON;this.SourceView=E?true:false;this.ContextSensitive=F?true:false;this.IconPath=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(A){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var B='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) B+='<td class="TB_Icon" unselectable="on"><img src="'+this.IconPath+'" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) B+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';B+='</tr>'+'</table>';this.DOMDiv.innerHTML=B;var C=A.DOMRow.insertCell(-1);C.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var A=this.Command.GetState();if (A==this.State) return;this.State=A;switch (this.State){case FCK_TRISTATE_ON:this.DOMDiv.className='TB_Button_On';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOnOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOnOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;case FCK_TRISTATE_OFF:this.DOMDiv.className='TB_Button_Off';this.DOMDiv.onmouseover=FCKToolbarButton_OnMouseOffOver;this.DOMDiv.onmouseout=FCKToolbarButton_OnMouseOffOut;this.DOMDiv.onclick=FCKToolbarButton_OnClick;break;default:this.Disable();break;};};function FCKToolbarButton_OnMouseOnOver(){this.className='TB_Button_On TB_Button_On_Over';};function FCKToolbarButton_OnMouseOnOut(){this.className='TB_Button_On';};function FCKToolbarButton_OnMouseOffOver(){this.className='TB_Button_On TB_Button_Off_Over';};function FCKToolbarButton_OnMouseOffOut(){this.className='TB_Button_Off';};function FCKToolbarButton_OnClick(e){this.FCKToolbarButton.Click(e);return false;};FCKToolbarButton.prototype.Click=function(){this.Command.Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this.DOMDiv.className='TB_Button_Disabled';this.DOMDiv.onmouseover=null;this.DOMDiv.onmouseout=null;this.DOMDiv.onclick=null;} |
var FCKSpecialCombo=function(A){this.FieldWidth=80;this.PanelWidth=130;this.PanelMaxHeight=150;this.Label=' ';this.Caption=A;this.Tooltip=A;this.Style=FCK_TOOLBARITEM_ICONTEXT;this.Enabled=true;this.Items=new Object();this._Panel=new FCKPanel();this._Panel.StyleSheet=FCKConfig.SkinPath+'fck_contextmenu.css';this._Panel.Create();this._Panel.PanelDiv.className+=' SC_Panel';this._Panel.PanelDiv.innerHTML='<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>';this._ItemsHolderEl=this._Panel.PanelDiv.getElementsByTagName('TD')[0];};function FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function FCKSpecialCombo_ItemOnClick(){this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if (typeof(this.FCKSpecialCombo.OnSelect)=='function') this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(A,B,C){var D=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));D.className=D.originalClass='SC_Item';D.innerHTML=B;D.FCKItemID=A;D.FCKItemLabel=C?C:A;D.FCKSpecialCombo=this;D.Selected=false;D.onmouseover=FCKSpecialCombo_ItemOnMouseOver;D.onmouseout=FCKSpecialCombo_ItemOnMouseOut;D.onclick=FCKSpecialCombo_ItemOnClick;this.Items[A.toString().toLowerCase()]=D;return D;};FCKSpecialCombo.prototype.SelectItem=function(A){A=A?A.toString().toLowerCase():'';var B=this.Items[A];if (B){B.className=B.originalClass='SC_ItemSelected';B.Selected=true;};};FCKSpecialCombo.prototype.DeselectAll=function(){for (var i in this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};};FCKSpecialCombo.prototype.SetLabelById=function(A){A=A?A.toString().toLowerCase():'';var B=this.Items[A];this.SetLabel(B?B.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(A){this.Label=A.length==0?' ':A;if (this._LabelEl) this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(A){this.Enabled=A;this._OuterTable.className=A?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(A){this._OuterTable=A.appendChild(document.createElement('TABLE'));this._OuterTable.cellPadding=0;this._OuterTable.cellSpacing=0;this._OuterTable.insertRow(-1);var B;var C;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON:B='TB_ButtonType_Icon';C=false;break;case FCK_TOOLBARITEM_ONLYTEXT:B='TB_ButtonType_Text';C=false;break;case FCK_TOOLBARITEM_ICONTEXT:C=true;break;};if (this.Caption&&this.Caption.length>0&&C){var D=this._OuterTable.rows[0].insertCell(-1);D.unselectable='on';D.innerHTML=this.Caption;D.className='SC_FieldCaption';};var E=this._OuterTable.rows[0].insertCell(-1).appendChild(document.createElement('DIV'));if (C){E.className='SC_Field';E.style.width=this.FieldWidth+'px';E.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldLabel" unselectable="on"><label unselectable="on"> </label></td><td class="SC_FieldButton" unselectable="on"> </td></tr></tbody></table>';this._LabelEl=E.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;}else{E.className='TB_Button_Off';E.innerHTML='<table cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;" unselectable="on"><tbody><tr><td class="SC_FieldButton" style="border-left: none;" unselectable="on"> </td></tr></tbody></table>';E.innerHTML='<table title="'+this.Tooltip+'" class="'+B+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>'+'<td class="TB_Text" unselectable="on">'+this.Caption+'</td>'+'<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';};E.SpecialCombo=this;E.onmouseover=FCKSpecialCombo_OnMouseOver;E.onmouseout=FCKSpecialCombo_OnMouseOut;E.onclick=FCKSpecialCombo_OnClick;};function FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled){switch (this.SpecialCombo.Style){case FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_On';break;case FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_On';break;case FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field SC_FieldOver';break;};};};function FCKSpecialCombo_OnMouseOut(){switch (this.SpecialCombo.Style){case FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_Off';break;case FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_Off';break;case FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field';break;};};function FCKSpecialCombo_OnClick(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.SpecialCombo.Enabled){var oPanel=this.SpecialCombo._Panel;if (typeof(this.SpecialCombo.OnBeforeClick)=='function') this.SpecialCombo.OnBeforeClick(this.SpecialCombo);if (this.SpecialCombo._ItemsHolderEl.offsetHeight>this.SpecialCombo.PanelMaxHeight) oPanel.PanelDiv.style.height=this.SpecialCombo.PanelMaxHeight+'px';else oPanel.PanelDiv.style.height=this.SpecialCombo._ItemsHolderEl.offsetHeight+'px';oPanel.PanelDiv.style.width=this.SpecialCombo.PanelWidth+'px';if (FCKBrowserInfo.IsGecko) oPanel.PanelDiv.style.overflow='-moz-scrollbars-vertical';oPanel.Show(0,this.offsetHeight,this,null,this.SpecialCombo.PanelMaxHeight,true);};return false;}; |
var FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function FCKToolbarSpecialCombo_OnSelect(itemId,item){this.Command.Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.CreateInstance=function(A){this._Combo=new FCKSpecialCombo(this.GetLabel());this._Combo.FieldWidth=this.FieldWidth!=null?this.FieldWidth:100;this._Combo.PanelWidth=this.PanelWidth!=null?this.PanelWidth:150;this._Combo.PanelMaxHeight=this.PanelMaxHeight!=null?this.PanelMaxHeight:150;this._Combo.Tooltip=this.Tooltip;this._Combo.Style=this.Style;this.CreateItems(this._Combo);this._Combo.Create(A.DOMRow.insertCell(-1));this._Combo.Command=this.Command;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var A;var B=this.Command.GetState();if (B!=FCK_TRISTATE_DISABLED){A=FCK_TRISTATE_ON;if (this.RefreshActiveItems) this.RefreshActiveItems(this._Combo,B);else FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,B);}else A=FCK_TRISTATE_DISABLED;if (A==this.State) return;if (A==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=A;this._Combo.SetEnabled(A!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);} |
var FCKToolbarFontsCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontName');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontsCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(A){var B=FCKConfig.FontNames.split(';');for (var i=0;i<B.length;i++) this._Combo.AddItem(B[i],'<span style="font-family: \''+B[i]+'\'; font-size: 12px;">'+B[i]+'</span>');} |
var FCKToolbarFontSizeCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontSize');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontSizeCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(A){A.FieldWidth=70;var B=FCKConfig.FontSizes.split(';');for (var i=0;i<B.length;i++){var C=B[i].split('/');this._Combo.AddItem(C[0],'<font size="'+C[0]+'">'+C[1]+'</font>',C[1]);};} |
var FCKToolbarFontFormatCombo=function(A,B){this.Command=FCKCommands.GetCommand('FontFormat');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;this.PanelWidth=190;};FCKToolbarFontFormatCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(A){var B=FCKLang['FontFormats'].split(';');var C={p:B[0],pre:B[1],address:B[2],h1:B[3],h2:B[4],h3:B[5],h4:B[6],h5:B[7],h6:B[8],div:B[9]};var D=FCKConfig.FontFormats.split(';');for (var i=0;i<D.length;i++){if (D[i]=='div'&&FCKBrowserInfo.IsGecko) continue;this._Combo.AddItem(D[i],'<'+D[i]+'>'+C[D[i]]+'</'+D[i]+'>',C[D[i]]);};} |
var FCKToolbarStyleCombo=function(A,B){this.Command=FCKCommands.GetCommand('Style');this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarStyleCombo.prototype=new FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(A){FCKTools.AppendStyleSheet(A._Panel.Document,FCKConfig.EditorAreaCSS);if (!FCKBrowserInfo.IsGecko) A.OnBeforeClick=this.RefreshVisibleItems;for (var s in this.Command.Styles){var B=this.Command.Styles[s];var C;if (B.IsObjectElement) C=A.AddItem(s,s);else C=A.AddItem(s,B.GetOpenerTag()+s+B.GetCloserTag());C.Style=B;};};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(A){A.DeselectAll();var B=this.Command.GetActiveStyles();if (B.length>0){for (var i=0;i<B.length;i++) A.SelectItem(B[i].Name);A.SetLabelById(B[0].Name);}else A.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(A){if (FCKSelection.GetType()=='Control') var B=FCKSelection.GetSelectedElement().tagName;for (var i in A.Items){var C=A.Items[i];if ((B&&C.Style.Element==B)||(!B&&!C.Style.IsObjectElement)) C.style.display='';else C.style.display='none';};} |
var FCKToolbarPanelButton=function(A,B,C,D){this.Command=FCKCommands.GetCommand(A);this.Label=B?B:A;this.Tooltip=C?C:(B?B:A);this.Style=D?D:FCK_TOOLBARITEM_ONLYICON;this.State=FCK_UNKNOWN;};FCKToolbarPanelButton.prototype.Click=function(e){if (e){e.stopPropagation();FCKPanelEventHandlers.OnDocumentClick(e);};if (this.State!=FCK_TRISTATE_DISABLED){this.Command.Execute(0,this.DOMDiv.offsetHeight,this.DOMDiv);};return false;};FCKToolbarPanelButton.prototype.CreateInstance=function(A){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;var B='<table title="'+this.Tooltip+'" cellspacing="0" cellpadding="0" border="0" unselectable="on">'+'<tr>';if (this.Style!=FCK_TOOLBARITEM_ONLYTEXT) B+='<td class="TB_Icon" unselectable="on"><img src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="21" unselectable="on"></td>';if (this.Style!=FCK_TOOLBARITEM_ONLYICON) B+='<td class="TB_Text" unselectable="on" nowrap>'+this.Label+'</td>';B+='<td class="TB_ButtonArrow" unselectable="on"><img src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5" height="3"></td>'+'</tr>'+'</table>';this.DOMDiv.innerHTML=B;var C=A.DOMRow.insertCell(-1);C.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable; |
var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new Object();FCKToolbarItems.RegisterItem=function(A,B){this.LoadedItems[A]=B;};FCKToolbarItems.GetItem=function(A){var B=FCKToolbarItems.LoadedItems[A];if (B) return B;switch (A){case 'Source':B=new FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true);break;case 'DocProps':B=new FCKToolbarButton('DocProps',FCKLang.DocProps);break;case 'Templates':B=new FCKToolbarButton('Templates',FCKLang.Templates);break;case 'Save':B=new FCKToolbarButton('Save',FCKLang.Save,null,null,true);break;case 'NewPage':B=new FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true);break;case 'Preview':B=new FCKToolbarButton('Preview',FCKLang.Preview,null,null,true);break;case 'About':B=new FCKToolbarButton('About',FCKLang.About,null,null,true);break;case 'Cut':B=new FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true);break;case 'Copy':B=new FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true);break;case 'Paste':B=new FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true);break;case 'PasteText':B=new FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true);break;case 'PasteWord':B=new FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true);break;case 'Print':B=new FCKToolbarButton('Print',FCKLang.Print,null,null,false,true);break;case 'SpellCheck':B=new FCKToolbarButton('SpellCheck',FCKLang.SpellCheck);break;case 'Undo':B=new FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true);break;case 'Redo':B=new FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true);break;case 'SelectAll':B=new FCKToolbarButton('SelectAll',FCKLang.SelectAll);break;case 'RemoveFormat':B=new FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true);break;case 'Bold':B=new FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true);break;case 'Italic':B=new FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true);break;case 'Underline':B=new FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true);break;case 'StrikeThrough':B=new FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true);break;case 'Subscript':B=new FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true);break;case 'Superscript':B=new FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true);break;case 'OrderedList':B=new FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true);break;case 'UnorderedList':B=new FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true);break;case 'Outdent':B=new FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true);break;case 'Indent':B=new FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true);break;case 'Link':B=new FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true);break;case 'Unlink':B=new FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true);break;case 'Anchor':B=new FCKToolbarButton('Anchor',FCKLang.Anchor);break;case 'Image':B=new FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage);break;case 'Flash':B=new FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash);break;case 'Table':B=new FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable);break;case 'SpecialChar':B=new FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar);break;case 'Smiley':B=new FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley);break;case 'UniversalKey':B=new FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard);break;case 'Rule':B=new FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true);break;case 'JustifyLeft':B=new FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true);break;case 'JustifyCenter':B=new FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true);break;case 'JustifyRight':B=new FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true);break;case 'JustifyFull':B=new FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true);break;case 'Style':B=new FCKToolbarStyleCombo();break;case 'FontName':B=new FCKToolbarFontsCombo();break;case 'FontSize':B=new FCKToolbarFontSizeCombo();break;case 'FontFormat':B=new FCKToolbarFontFormatCombo();break;case 'TextColor':B=new FCKToolbarPanelButton('TextColor',FCKLang.TextColor);break;case 'BGColor':B=new FCKToolbarPanelButton('BGColor',FCKLang.BGColor);break;case 'Find':B=new FCKToolbarButton('Find',FCKLang.Find);break;case 'Replace':B=new FCKToolbarButton('Replace',FCKLang.Replace);break;case 'Form':B=new FCKToolbarButton('Form',FCKLang.Form);break;case 'Checkbox':B=new FCKToolbarButton('Checkbox',FCKLang.Checkbox);break;case 'Radio':B=new FCKToolbarButton('Radio',FCKLang.RadioButton);break;case 'TextField':B=new FCKToolbarButton('TextField',FCKLang.TextField);break;case 'Textarea':B=new FCKToolbarButton('Textarea',FCKLang.Textarea);break;case 'HiddenField':B=new FCKToolbarButton('HiddenField',FCKLang.HiddenField);break;case 'Button':B=new FCKToolbarButton('Button',FCKLang.Button);break;case 'Select':B=new FCKToolbarButton('Select',FCKLang.SelectionField);break;case 'ImageButton':B=new FCKToolbarButton('ImageButton',FCKLang.ImageButton);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,A));return null;};FCKToolbarItems.LoadedItems[A]=B;return B;} |
var FCKToolbar=function(){this.Items=new Array();var e=this.DOMTable=document.createElement('table');e.className='TB_Toolbar';e.style.styleFloat=e.style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';e.cellPadding=0;e.cellSpacing=0;e.border=0;this.DOMRow=e.insertRow(-1);var A=this.DOMRow.insertCell(-1);A.className='TB_Start';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(e);};FCKToolbar.prototype.AddItem=function(A){this.Items[this.Items.length]=A;A.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var A=this.DOMRow.insertCell(-1);A.unselectable='on';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var A=this.DOMRow.insertCell(-1);A.className='TB_End';A.innerHTML='<img src="'+FCKConfig.SkinPath+'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';}; |
var FCKToolbarBreak=function(){var A=document.createElement('div');A.className='TB_Break';A.style.clear=FCKLang.Dir=='rtl'?'left':'right';FCKToolbarSet.DOMElement.appendChild(A);} |
var FCKToolbarSet=FCK.ToolbarSet=new Object();document.getElementById('ExpandHandle').title=FCKLang.ToolbarExpand;document.getElementById('CollapseHandle').title=FCKLang.ToolbarCollapse;FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.ItemsWysiwygOnly=new Array();FCKToolbarSet.ItemsContextSensitive=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display='none';document.getElementById('Expanded').style.display='';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display='';document.getElementById('Expanded').style.display='none';if (!FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()",1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display=FCKConfig.ToolbarCanCollapse?'':'none';};FCKToolbarSet.Load=function(A){this.DOMElement=document.getElementById('eToolbar');var B=FCKConfig.ToolbarSets[A];if (!B){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,A));return;};this.Toolbars=new Array();for (var x=0;x<B.length;x++){var C=B[x];var D;if (typeof(C)=='string'){if (C=='/') D=new FCKToolbarBreak();}else{D=new FCKToolbar();for (var j=0;j<C.length;j++){var E=C[j];if (E=='-') D.AddSeparator();else{var F=FCKToolbarItems.GetItem(E);if (F){D.AddItem(F);if (!F.SourceView) this.ItemsWysiwygOnly[this.ItemsWysiwygOnly.length]=F;if (F.ContextSensitive) this.ItemsContextSensitive[this.ItemsContextSensitive.length]=F;};};};D.AddTerminator();};this.Toolbars[this.Toolbars.length]=D;};};FCKToolbarSet.RefreshModeState=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Enable();FCKToolbarSet.RefreshItemsState();}else{FCKToolbarSet.RefreshItemsState();for (var i=0;i<FCKToolbarSet.ItemsWysiwygOnly.length;i++) FCKToolbarSet.ItemsWysiwygOnly[i].Disable();};};FCKToolbarSet.RefreshItemsState=function(){for (var i=0;i<FCKToolbarSet.ItemsContextSensitive.length;i++) FCKToolbarSet.ItemsContextSensitive[i].RefreshState();}; |
var FCKDialog=new Object();FCKDialog.OpenDialog=function(A,B,C,D,E,F,G,H){var I=new Object();I.Title=B;I.Page=C;I.Editor=window;I.CustomValue=F;var J=FCKConfig.BasePath+'fckdialog.html';this.Show(I,A,J,D,E,G,H);}; |
FCKDialog.Show=function(A,B,C,D,E,F){if (!F) F=window;F.showModalDialog(C,A,"dialogWidth:"+D+"px;dialogHeight:"+E+"px;help:no;scroll:no;status:no");}; |
var FCKContextMenuItem=function(A,B,C,D){this.ContextMenu=A;this.Command=FCKCommands.GetCommand(B);this.Label=C?C:B;this.HasIcon=D?true:false;};function FCKContextMenuItem_OnMouseOver(){if (this.className!='CM_Disabled') this.className='CM_Over';};function FCKContextMenuItem_OnMouseOut(){if (this.className!='CM_Disabled') this.className='CM_Option';};function FCKContextMenuItem_OnClick(){if (this.className!='CM_Disabled'){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();};return false;};FCKContextMenuItem.prototype.CreateTableRow=function(A){this._Row=A.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=FCKContextMenuItem_OnMouseOver;this._Row.onmouseout=FCKContextMenuItem_OnMouseOut;this._Row.onclick=FCKContextMenuItem_OnClick;var B=this._Row.insertCell(-1);B.className='CM_Icon';if (this.HasIcon) B.innerHTML='<img alt="" src="'+FCKConfig.SkinPath+'toolbar/'+this.Command.Name.toLowerCase()+'.gif" width="21" height="20" unselectable="on">';B=this._Row.insertCell(-1);B.className='CM_Label';B.unselectable='on';B.noWrap=true;B.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(A){this._Row.style.display=A?'':'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON:case FCK_TRISTATE_OFF:this._Row.className='CM_Option';break;default:this._Row.className='CM_Disabled';break;};}; |
var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(A){this._Row=A.insertRow(-1);this._Row.className='CM_Separator';var B=this._Row.insertCell(-1);B.className='CM_Icon';B=this._Row.insertCell(-1);B.className='CM_Label';B.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(A){this._Row.style.display=A?'':'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){}; |
var FCKContextMenuGroup=function(A,B,C,D,E){this.IsVisible=true;this.Items=new Array();if (A) this.Add(new FCKContextMenuSeparator());if (B&&C&&D) this.Add(new FCKContextMenuItem(B,C,D,E));this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(A){this.Items[this.Items.length]=A;};FCKContextMenuGroup.prototype.CreateTableRows=function(A){for (var i=0;i<this.Items.length;i++){this.Items[i].CreateTableRow(A);};};FCKContextMenuGroup.prototype.SetVisible=function(A){for (var i=0;i<this.Items.length;i++){this.Items[i].SetVisible(A);};this.IsVisible=A;};FCKContextMenuGroup.prototype.RefreshState=function(){if (!this.IsVisible) return;for (var i=0;i<this.Items.length;i++){this.Items[i].RefreshState();};} |
var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var A=this._Document.createElement('TABLE');A.cellSpacing=0;A.cellPadding=0;A.border=0;this._Div.appendChild(A);this.Groups=new Object();for (var i=0;i<FCKConfig.ContextMenu.length;i++){var B=FCKConfig.ContextMenu[i];this.Groups[B]=this._GetGroup(B);this.Groups[B].CreateTableRows(A);};this._IsLoaded=true;};FCKContextMenu._GetGroup=function(A){var B;switch (A){case 'Generic':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuItem(this,'Cut',FCKLang.Cut,true));B.Add(new FCKContextMenuItem(this,'Copy',FCKLang.Copy,true));B.Add(new FCKContextMenuItem(this,'Paste',FCKLang.Paste,true));break;case 'Link':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'Link',FCKLang.EditLink,true));B.Add(new FCKContextMenuItem(this,'Unlink',FCKLang.RemoveLink,true));break;case 'TableCell':B=new FCKContextMenuGroup();B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertRow',FCKLang.InsertRow,true));B.Add(new FCKContextMenuItem(this,'TableDeleteRows',FCKLang.DeleteRows,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertColumn',FCKLang.InsertColumn,true));B.Add(new FCKContextMenuItem(this,'TableDeleteColumns',FCKLang.DeleteColumns,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableInsertCell',FCKLang.InsertCell,true));B.Add(new FCKContextMenuItem(this,'TableDeleteCells',FCKLang.DeleteCells,true));B.Add(new FCKContextMenuItem(this,'TableMergeCells',FCKLang.MergeCells,true));B.Add(new FCKContextMenuItem(this,'TableSplitCell',FCKLang.SplitCell,true));B.Add(new FCKContextMenuSeparator());B.Add(new FCKContextMenuItem(this,'TableCellProp',FCKLang.CellProperties,true));B.Add(new FCKContextMenuItem(this,'TableProp',FCKLang.TableProperties,true));break;case 'Table':return new FCKContextMenuGroup(true,this,'Table',FCKLang.TableProperties,true);case 'Image':return new FCKContextMenuGroup(true,this,'Image',FCKLang.ImageProperties,true);case 'Flash':return new FCKContextMenuGroup(true,this,'Flash',FCKLang.FlashProperties,true);case 'Form':return new FCKContextMenuGroup(true,this,'Form',FCKLang.FormProp,true);case 'Checkbox':return new FCKContextMenuGroup(true,this,'Checkbox',FCKLang.CheckboxProp,true);case 'Radio':return new FCKContextMenuGroup(true,this,'Radio',FCKLang.RadioButtonProp,true);case 'TextField':return new FCKContextMenuGroup(true,this,'TextField',FCKLang.TextFieldProp,true);case 'HiddenField':return new FCKContextMenuGroup(true,this,'HiddenField',FCKLang.HiddenFieldProp,true);case 'ImageButton':return new FCKContextMenuGroup(true,this,'ImageButton',FCKLang.ImageButtonProp,true);case 'Button':return new FCKContextMenuGroup(true,this,'Button',FCKLang.ButtonProp,true);case 'Select':return new FCKContextMenuGroup(true,this,'Select',FCKLang.SelectionFieldProp,true);case 'Textarea':return new FCKContextMenuGroup(true,this,'Textarea',FCKLang.TextareaProp,true);case 'BulletedList':return new FCKContextMenuGroup(true,this,'BulletedList',FCKLang.BulletedListProp,true);case 'NumberedList':return new FCKContextMenuGroup(true,this,'NumberedList',FCKLang.NumberedListProp,true);case 'Anchor':return new FCKContextMenuGroup(true,this,'Anchor',FCKLang.AnchorProp,true);};return B;};FCKContextMenu.RefreshState=function(){var A=FCKSelection.GetSelectedElement();var B;if (A) B=A.tagName;if (this.Groups['Link']) this.Groups['Link'].SetVisible(FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED);if (this.Groups['TableCell']) this.Groups['TableCell'].SetVisible(B!='TABLE'&&FCKSelection.HasAncestorNode('TABLE'));if (this.Groups['Table']) this.Groups['Table'].SetVisible(B=='TABLE');if (this.Groups['Image']) this.Groups['Image'].SetVisible(B=='IMG'&&!A.getAttribute('_fckflash')&&!A.getAttribute('_fckanchor'));if (this.Groups['Flash']) this.Groups['Flash'].SetVisible(B=='IMG'&&A.getAttribute('_fckflash'));if (this.Groups['Anchor']) this.Groups['Anchor'].SetVisible(B=='IMG'&&A.getAttribute('_fckanchor'));if (this.Groups['BulletedList']) this.Groups['BulletedList'].SetVisible(FCKSelection.HasAncestorNode('UL'));if (this.Groups['NumberedList']) this.Groups['NumberedList'].SetVisible(FCKSelection.HasAncestorNode('OL'));if (this.Groups['Select']) this.Groups['Select'].SetVisible(B=='SELECT');if (this.Groups['Textarea']) this.Groups['Textarea'].SetVisible(B=='TEXTAREA');if (this.Groups['Form']) this.Groups['Form'].SetVisible(FCKSelection.HasAncestorNode('FORM'));if (this.Groups['Checkbox']) this.Groups['Checkbox'].SetVisible(B=='INPUT'&&A.type=='checkbox');if (this.Groups['Radio']) this.Groups['Radio'].SetVisible(B=='INPUT'&&A.type=='radio');if (this.Groups['TextField']) this.Groups['TextField'].SetVisible(B=='INPUT'&&(A.type=='text'||A.type=='password'));if (this.Groups['HiddenField']) this.Groups['HiddenField'].SetVisible(B=='INPUT'&&A.type=='hidden');if (this.Groups['ImageButton']) this.Groups['ImageButton'].SetVisible(B=='INPUT'&&A.type=='image');if (this.Groups['Button']) this.Groups['Button'].SetVisible(B=='INPUT'&&(A.type=='button'||A.type=='submit'||A.type=='reset'));for (var o in this.Groups){this.Groups[o].RefreshState();};}; |
function FCKContextMenu_OnContextMenu() { return false;};FCKContextMenu.Show=function(x,y){if (!this._Popup){this._Popup=window.createPopup();this._Document=this._Popup.document;this._Document.createStyleSheet(FCKConfig.SkinPath+'fck_contextmenu.css');this._Document.oncontextmenu=FCKContextMenu_OnContextMenu;aCleanupDocs[aCleanupDocs.length]=this._Document;};if (!this._IsLoaded){this.Reload();this._Div.style.visibility='';};this.RefreshState();this._Popup.show(x,y,0,0);this._Popup.show(x,y,this._Div.offsetWidth,this._Div.offsetHeight);};FCKContextMenu.Hide=function(){if (this._Popup) this._Popup.hide();} |
if (!FCKConfig.PluginsPath.endsWith('/')) FCKConfig.PluginsPath+='/';var FCKPlugin=function(name,availableLangs,basePath){this.Name=name;this.BasePath=basePath?basePath:FCKConfig.PluginsPath;this.Path=this.BasePath+name+'/';if (!availableLangs||availableLangs.length==0) this.AvailableLangs=new Array();else this.AvailableLangs=availableLangs.split(',');};FCKPlugin.prototype.Load=function(){if (this.AvailableLangs.length>0){if (this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) var sLang=FCKLanguageManager.ActiveLanguage.Code;else var sLang=this.AvailableLangs[0];FCKScriptLoader.AddScript(this.Path+'lang/'+sLang+'.js');};FCKScriptLoader.AddScript(this.Path+'fckplugin.js');} |
if (!FCKConfig.PluginsPath.endsWith('/')) FCKConfig.PluginsPath+='/';var FCKPlugin=function(A,B,C){this.Name=A;this.BasePath=C?C:FCKConfig.PluginsPath;this.Path=this.BasePath+A+'/';if (!B||B.length==0) this.AvailableLangs=new Array();else this.AvailableLangs=B.split(',');};FCKPlugin.prototype.Load=function(){if (this.AvailableLangs.length>0){var A;if (this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0) A=FCKLanguageManager.ActiveLanguage.Code;else A=this.AvailableLangs[0];FCKScriptLoader.AddScript(this.Path+'lang/'+A+'.js');};FCKScriptLoader.AddScript(this.Path+'fckplugin.js');} |
var FCKPlugins=FCK.Plugins=new Object();FCKPlugins.ItemsCount=0;FCKPlugins.Loaded=false;FCKPlugins.Items=new Object();for (var i=0;i<FCKConfig.Plugins.Items.length;i++){var oItem=FCKConfig.Plugins.Items[i];FCKPlugins.Items[oItem[0]]=new FCKPlugin(oItem[0],oItem[1],oItem[2]);FCKPlugins.ItemsCount++;};FCKPlugins.Load=function(){for (var s in this.Items) this.Items[s].Load();this.Loaded=true;FCKPlugins.Load=null;} |
if (FCKLang&&window.document.dir.toLowerCase()!=FCKLang.Dir.toLowerCase()) window.document.dir=FCKLang.Dir;if (FCKConfig.ForcePasteAsPlainText) FCK.Events.AttachEvent("OnPaste",FCK.Paste);if (FCKPlugins.ItemsCount>0){FCKScriptLoader.OnEmpty=CompleteLoading;FCKPlugins.Load();}else CompleteLoading();function CompleteLoading(){FCKToolbarSet.Name=FCKURLParams['Toolbar']||'Default';FCKToolbarSet.Load(FCKToolbarSet.Name);FCKToolbarSet.Restart();FCK.AttachToOnSelectionChange(FCKToolbarSet.RefreshItemsState);FCK.SetStatus(FCK_STATUS_COMPLETE);if (typeof(window.parent.FCKeditor_OnComplete)=='function') window.parent.FCKeditor_OnComplete(FCK);} |
if (FCKLang&&window.document.dir.toLowerCase()!=FCKLang.Dir.toLowerCase()) window.document.dir=FCKLang.Dir;if (FCKConfig.ForcePasteAsPlainText) FCK.Events.AttachEvent("OnPaste",FCK.Paste);if (FCKBrowserInfo.IsGecko&&!FCKConfig.UseBROnCarriageReturn){FCK.Events.AttachEvent("OnEnter",FCK.Enter);FCK.Events.AttachEvent("OnBackSpace",FCK.BackSpace);};if (FCKPlugins.ItemsCount>0){FCKScriptLoader.OnEmpty=CompleteLoading;FCKPlugins.Load();}else CompleteLoading();function CompleteLoading(){FCKToolbarSet.Name=FCKURLParams['Toolbar']||'Default';FCKToolbarSet.Load(FCKToolbarSet.Name);FCKToolbarSet.Restart();FCK.AttachToOnSelectionChange(FCKToolbarSet.RefreshItemsState);FCK.SetStatus(FCK_STATUS_COMPLETE);if (typeof(window.parent.FCKeditor_OnComplete)=='function') window.parent.FCKeditor_OnComplete(FCK);} |
/trunk/api/fckeditor/editor/js/fck_startup.js |
---|
8,15 → 8,17 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* This file has been compacted for best loading performance. |
*/ |
var NS;if (!(NS=window.parent.__FCKeditorNS)) NS=window.parent.__FCKeditorNS=new Object(); |
Array.prototype.addItem=function(item){var i=this.length;this[i]=item;return i;};Array.prototype.indexOf=function(value){for (var i=0;i<this.length;i++){if (this[i]==value) return i;};return-1;};String.prototype.startsWith=function(value){return (this.substr(0,value.length)==value);};String.prototype.endsWith=function(value,ignoreCase){var L1=this.length;var L2=value.length;if (L2>L1) return false;if (ignoreCase){var oRegex=new RegExp(value+'$','i');return oRegex.test(this);}else return (L2==0||this.substr(L1-L2,L2)==value);};String.prototype.remove=function(start,length){var s='';if (start>0) s=this.substring(0,start);if (start+length<this.length) s+=this.substring(start+length,this.length);return s;};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,'');};String.prototype.ltrim=function(){return this.replace(/^\s*/g,'');};String.prototype.rtrim=function(){return this.replace(/\s*$/g,'');};String.prototype.replaceNewLineChars=function(replacement){return this.replace(/\n/g,replacement);} |
FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1; |
Array.prototype.addItem=function(A){var i=this.length;this[i]=A;return i;};Array.prototype.indexOf=function(A){for (var i=0;i<this.length;i++){if (this[i]==A) return i;};return-1;};String.prototype.startsWith=function(A){return (this.substr(0,A.length)==A);};String.prototype.endsWith=function(A,B){var C=this.length;var D=A.length;if (D>C) return false;if (B){var E=new RegExp(A+'$','i');return E.test(this);}else return (D==0||this.substr(C-D,D)==A);};String.prototype.remove=function(A,B){var s='';if (A>0) s=this.substring(0,A);if (A+B<this.length) s+=this.substring(A+B,this.length);return s;};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,'');};String.prototype.ltrim=function(){return this.replace(/^\s*/g,'');};String.prototype.rtrim=function(){return this.replace(/\s*$/g,'');};String.prototype.replaceNewLineChars=function(A){return this.replace(/\n/g,A);} |
var FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;var FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;var FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;var FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;var FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;var FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;var FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;var FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;var FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;var FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;var FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;var FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1; |
var FCKBrowserInfo;if (!(FCKBrowserInfo=NS.FCKBrowserInfo)){FCKBrowserInfo=NS.FCKBrowserInfo=new Object();var sAgent=navigator.userAgent.toLowerCase();FCKBrowserInfo.IsIE=(sAgent.indexOf("msie")!=-1);FCKBrowserInfo.IsGecko=!FCKBrowserInfo.IsIE;FCKBrowserInfo.IsSafari=(sAgent.indexOf("safari")!=-1);FCKBrowserInfo.IsNetscape=(sAgent.indexOf("netscape")!=-1);}; |
var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(scriptPath){FCKScriptLoader.Queue[FCKScriptLoader.Queue.length]=scriptPath;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length>0){this.IsLoading=true;var sScriptPath=this.Queue[0];var oTempArray=new Array();for (i=1;i<this.Queue.length;i++) oTempArray[i-1]=this.Queue[i];this.Queue=oTempArray;this.LoadFile(sScriptPath);}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};};if (FCKBrowserInfo.IsSafari){FCKScriptLoader.LoadFile=function(filePath){if (filePath.lastIndexOf('.css')>0){this.CheckQueue();return;};var oXmlRequest=new XMLHttpRequest();oXmlRequest.open("GET",filePath,false);oXmlRequest.send(null);if (oXmlRequest.status==200){try{eval(oXmlRequest.responseText);}catch (e){alert('Error parsing '+filePath+': '+e.message);};}else alert('Error loading '+filePath);this.CheckQueue();};}else{FCKScriptLoader.LoadFile=function(filePath){var e;if (filePath.lastIndexOf('.css')>0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild(e);if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=FCKScriptLoader_OnLoad;else FCKScriptLoader.CheckQueue();e.href=filePath;}else{e.onload=e.onreadystatechange=FCKScriptLoader_OnLoad;e.src=filePath;};};function FCKScriptLoader_OnLoad(){if (this.tagName=='LINK'||!this.readyState||this.readyState=='loaded') FCKScriptLoader.CheckQueue();};} |
var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (i=0;i<aParams.length;i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[sParamName]=sParamValue;} |
var FCK=new Object();FCK.Name=FCKURLParams['InstanceName'];FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;var aElements=window.parent.document.getElementsByName(FCK.Name);var i=0;while (FCK.LinkedField=aElements[i++]){if (FCK.LinkedField.tagName=='INPUT'||FCK.LinkedField.tagName=='TEXTAREA') break;};var FCKTempBin=new Object();FCKTempBin.Elements=new Array();FCKTempBin.AddElement=function(element){var iIndex=FCKTempBin.Elements.length;FCKTempBin.Elements[iIndex]=element;return iIndex;};FCKTempBin.RemoveElement=function(index){var e=FCKTempBin.Elements[index];FCKTempBin.Elements[index]=null;return e;};FCKTempBin.Reset=function(){var i=0;while (i<FCKTempBin.Elements.length) FCKTempBin.Elements[i++]==null;FCKTempBin.Elements.length=0;} |
var FCKConfig=FCK.Config=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi,'/');FCKConfig.BasePath='file://'+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else{FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.FullBasePath=document.location.protocol+'//'+document.location.host+FCKConfig.BasePath;};FCKConfig.EditorPath=FCKConfig.BasePath.replace(/editor\/$/,'');FCKConfig.ProcessHiddenField=function(){this.PageConfig=new Object();var oConfigField=window.parent.document.getElementById(FCK.Name+'___Config');if (!oConfigField) return;var aCouples=oConfigField.value.split('&');for (var i=0;i<aCouples.length;i++){if (aCouples[i].length==0) continue;var aConfig=aCouples[i].split('=');var sKey=unescape(aConfig[0]);var sVal=unescape(aConfig[1]);if (sKey=='CustomConfigurationsPath') FCKConfig[sKey]=sVal;else if (sVal.toLowerCase()=="true") this.PageConfig[sKey]=true;else if (sVal.toLowerCase()=="false") this.PageConfig[sKey]=false;else if (!isNaN(sVal)) this.PageConfig[sKey]=parseInt(sVal);else this.PageConfig[sKey]=sVal;};};FCKConfig.LoadPageConfig=function(){for (var sKey in this.PageConfig) FCKConfig[sKey]=this.PageConfig[sKey];};FCKConfig.ToolbarSets=new Object();FCKConfig.Plugins=new Object();FCKConfig.Plugins.Items=new Array();FCKConfig.Plugins.Add=function(name,langs,path){FCKConfig.Plugins.Items.addItem([name,langs,path]);} |
var FCKeditorAPI;function FCKeditorAPI_GetInstance(instanceName){return this.__Instances[instanceName];};if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.0';FCKeditorAPI.GetInstance=FCKeditorAPI_GetInstance;}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[FCK.Name]=FCK; |
function Window_OnContextMenu(e){if (e) e.preventDefault();else{if (event.srcElement==document.getElementById('eSourceField')) return true;};return false;};window.document.oncontextmenu=Window_OnContextMenu;if (FCKBrowserInfo.IsGecko){function Window_OnResize(){var oFrame=document.getElementById('eEditorArea');oFrame.height=0;var oCell=document.getElementById(FCK.EditMode==FCK_EDITMODE_WYSIWYG?'eWysiwygCell':'eSource');var iHeight=oCell.offsetHeight;oFrame.height=iHeight-2;};window.onresize=Window_OnResize;};if (FCKBrowserInfo.IsIE){var aCleanupDocs=new Array();aCleanupDocs[0]=document;function Window_OnBeforeUnload(){var d,e;var j=0;while (d=aCleanupDocs[j++]){var i=0;while (e=d.getElementsByTagName("DIV").item(i++)){if (e.FCKToolbarButton) e.FCKToolbarButton=null;if (e.FCKSpecialCombo) e.FCKSpecialCombo=null;if (e.Command) e.Command=null;};i=0;while (e=d.getElementsByTagName("TR").item(i++)){if (e.FCKContextMenuItem) e.FCKContextMenuItem=null;};aCleanupDocs[j]=null;};if (typeof(FCKTempBin)!='undefined') FCKTempBin.Reset();};window.attachEvent("onunload",Window_OnBeforeUnload);};function Window_OnLoad(){if (FCKBrowserInfo.IsNetscape) document.getElementById('eWysiwygCell').style.paddingRight='2px';LoadConfigFile();};window.onload=Window_OnLoad;function LoadConfigFile(){FCKScriptLoader.OnEmpty=ProcessHiddenField;FCKScriptLoader.AddScript('../fckconfig.js');};function ProcessHiddenField(){FCKConfig.ProcessHiddenField();LoadCustomConfigFile();};function LoadCustomConfigFile(){if (FCKConfig.CustomConfigurationsPath.length>0){FCKScriptLoader.OnEmpty=LoadPageConfig;FCKScriptLoader.AddScript(FCKConfig.CustomConfigurationsPath);}else{LoadPageConfig();};};function LoadPageConfig(){FCKConfig.LoadPageConfig();LoadStyles();};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath+'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath+'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=null;if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};function LoadLanguageFile(){FCKScriptLoader.OnEmpty=LoadEditor;FCKScriptLoader.AddScript('lang/'+FCKLanguageManager.ActiveLanguage.Code+'.js');};function LoadEditor(){FCKScriptLoader.OnEmpty=null;if (FCKLang) window.document.dir=FCKLang.Dir;FCK.StartEditor();} |
var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(A){FCKScriptLoader.Queue[FCKScriptLoader.Queue.length]=A;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length>0){this.IsLoading=true;var A=this.Queue[0];var B=new Array();for (i=1;i<this.Queue.length;i++) B[i-1]=this.Queue[i];this.Queue=B;this.LoadFile(A);}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};};if (FCKBrowserInfo.IsSafari){FCKScriptLoader.LoadFile=function(A){if (A.lastIndexOf('.css')>0){this.CheckQueue();return;};var B=new XMLHttpRequest();B.open("GET",A,false);B.send(null);if (B.status==200){try{eval(B.responseText);}catch (e){alert('Error parsing '+A+': '+e.message);};}else alert('Error loading '+A);this.CheckQueue();};}else{FCKScriptLoader.LoadFile=function(A){var e;if (A.lastIndexOf('.css')>0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild(e);if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=FCKScriptLoader_OnLoad;else FCKScriptLoader.CheckQueue();e.href=A;}else{e.onload=e.onreadystatechange=FCKScriptLoader_OnLoad;e.src=A;};};function FCKScriptLoader_OnLoad(){if (this.tagName=='LINK'||!this.readyState||this.readyState=='loaded') FCKScriptLoader.CheckQueue();};} |
var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (var i=0;i<aParams.length;i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[sParamName]=sParamValue;} |
var FCK=new Object();FCK.Name=FCKURLParams['InstanceName'];FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;var aElements=window.parent.document.getElementsByName(FCK.Name);aElements[aElements.length]=window.parent.document.getElementById(FCK.Name);var i=0;while ((FCK.LinkedField=aElements[i++])){if (FCK.LinkedField.tagName=='INPUT'||FCK.LinkedField.tagName=='TEXTAREA') break;};var FCKTempBin=new Object();FCKTempBin.Elements=new Array();FCKTempBin.AddElement=function(A){var B=FCKTempBin.Elements.length;FCKTempBin.Elements[B]=A;return B;};FCKTempBin.RemoveElement=function(A){var e=FCKTempBin.Elements[A];FCKTempBin.Elements[A]=null;return e;};FCKTempBin.Reset=function(){var i=0;while (i<FCKTempBin.Elements.length) FCKTempBin.Elements[i++]==null;FCKTempBin.Elements.length=0;} |
var FCKConfig=FCK.Config=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi, '/');FCKConfig.BasePath='file://'+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else{FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.FullBasePath=document.location.protocol+'//'+document.location.host+FCKConfig.BasePath;};FCKConfig.EditorPath=FCKConfig.BasePath.replace(/editor\/$/,'');try{FCKConfig.ScreenWidth=screen.width;FCKConfig.ScreenHeight=screen.height;}catch (e){FCKConfig.ScreenWidth=800;FCKConfig.ScreenHeight=600;};FCKConfig.ProcessHiddenField=function(){this.PageConfig=new Object();var A=window.parent.document.getElementById(FCK.Name+'___Config');if (!A) return;var B=A.value.split('&');for (var i=0;i<B.length;i++){if (B[i].length==0) continue;var C=B[i].split('=');var D=unescape(C[0]);var E=unescape(C[1]);if (D=='CustomConfigurationsPath') FCKConfig[D]=E;else if (E.toLowerCase()=="true") this.PageConfig[D]=true;else if (E.toLowerCase()=="false") this.PageConfig[D]=false;else if (!isNaN(E)) this.PageConfig[D]=parseInt(E);else this.PageConfig[D]=E;};};FCKConfig.LoadPageConfig=function(){for (var A in this.PageConfig) FCKConfig[A]=this.PageConfig[A];};FCKConfig.ToolbarSets=new Object();FCKConfig.Plugins=new Object();FCKConfig.Plugins.Items=new Array();FCKConfig.Plugins.Add=function(A,B,C){FCKConfig.Plugins.Items.addItem([A,B,C]);};FCKConfig.ProtectedSource=new Object();FCKConfig.ProtectedSource.RegexEntries=new Array();FCKConfig.ProtectedSource.Add=function(A){this.RegexEntries.addItem(A);};FCKConfig.ProtectedSource.Protect=function(A){function _Replace(protectedSource){var B=FCKTempBin.AddElement(protectedSource);return '<!--{PS..'+B+'}-->';};for (var i=0;i<this.RegexEntries.length;i++){A=A.replace(this.RegexEntries[i],_Replace);};return A;};FCKConfig.ProtectedSource.Revert=function(A,B){function _Replace(m,opener,index){var C=B?FCKTempBin.RemoveElement(index):FCKTempBin.Elements[index];return FCKConfig.ProtectedSource.Revert(C,B);};return A.replace(/(<|<)!--\{PS..(\d+)\}--(>|>)/g,_Replace);};FCKConfig.ProtectedSource.Add(/<!--[\s\S]*?-->/g); |
var FCKeditorAPI;function FCKeditorAPI_GetInstance(instanceName){return this.__Instances[instanceName];};if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.1';FCKeditorAPI.GetInstance=FCKeditorAPI_GetInstance;}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[FCK.Name]=FCK; |
function Window_OnContextMenu(e){if (e) e.preventDefault();else{if (event.srcElement==document.getElementById('eSourceField')) return true;};return false;};window.document.oncontextmenu=Window_OnContextMenu;if (FCKBrowserInfo.IsGecko){function Window_OnResize(){var oFrame=document.getElementById('eEditorArea');oFrame.height=0;var oCell=document.getElementById(FCK.EditMode==FCK_EDITMODE_WYSIWYG?'eWysiwygCell':'eSource');var iHeight=oCell.offsetHeight;oFrame.height=iHeight-2;};window.onresize=Window_OnResize;};if (FCKBrowserInfo.IsIE){var aCleanupDocs=new Array();aCleanupDocs[0]=document;function Window_OnBeforeUnload(){var d,e;var j=0;while ((d=aCleanupDocs[j++])){var i=0;while ((e=d.getElementsByTagName("DIV").item(i++))){if (e.FCKToolbarButton) e.FCKToolbarButton=null;if (e.FCKSpecialCombo) e.FCKSpecialCombo=null;if (e.Command) e.Command=null;};i=0;while ((e=d.getElementsByTagName("TR").item(i++))){if (e.FCKContextMenuItem) e.FCKContextMenuItem=null;};aCleanupDocs[j]=null;};if (typeof(FCKTempBin)!='undefined') FCKTempBin.Reset();};window.attachEvent("onunload",Window_OnBeforeUnload);};function Window_OnLoad(){if (FCKBrowserInfo.IsNetscape) document.getElementById('eWysiwygCell').style.paddingRight='2px';LoadConfigFile();};window.onload=Window_OnLoad;function LoadConfigFile(){FCKScriptLoader.OnEmpty=ProcessHiddenField;FCKScriptLoader.AddScript('../fckconfig.js');};function ProcessHiddenField(){FCKConfig.ProcessHiddenField();LoadCustomConfigFile();};function LoadCustomConfigFile(){if (FCKConfig.CustomConfigurationsPath.length>0){FCKScriptLoader.OnEmpty=LoadPageConfig;FCKScriptLoader.AddScript(FCKConfig.CustomConfigurationsPath);}else{LoadPageConfig();};};function LoadPageConfig(){FCKConfig.LoadPageConfig();LoadStyles();};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath+'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath+'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=null;if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};function LoadLanguageFile(){FCKScriptLoader.OnEmpty=LoadEditor;FCKScriptLoader.AddScript('lang/'+FCKLanguageManager.ActiveLanguage.Code+'.js');};function LoadEditor(){FCKScriptLoader.OnEmpty=null;if (FCKLang) window.document.dir=FCKLang.Dir;FCK.StartEditor();} |
/trunk/api/fckeditor/editor/fckdebug.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckdebug.html |
* This is the Debug window. |
* It automatically popups if the Debug = true in the configuration file. |
32,7 → 34,7 |
{ |
oWindow = window.frames[ 'eOutput' ] |
oWindow.document.open() ; |
oWindow.document.write( '<div id="divMsg"></div>' ) ; |
oWindow.document.write( '<div id="divMsg"><\/div>' ) ; |
oWindow.document.close() ; |
oDiv = oWindow.document.getElementById('divMsg') ; |
} |
40,7 → 42,7 |
function Output( message, color ) |
{ |
if ( color ) |
message = '<font color="' + color + '">' + message + '</font>' ; |
message = '<font color="' + color + '">' + message + '<\/font>' ; |
window.FCKMessages[ window.FCKMessages.length ] = message ; |
StartTimer() ; |
72,7 → 74,7 |
( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ; |
var oMsgDiv = oWindow.document.createElement( 'div' ) ; |
oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '</b>' ; |
oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ; |
oDiv.appendChild( oMsgDiv ) ; |
oMsgDiv.scrollIntoView() ; |
} |
/trunk/api/fckeditor/editor/fckeditor.html |
---|
8,6 → 8,8 |
* For further information visit: |
* http://www.fckeditor.net/ |
* |
* "Support Open Source software. What about a donation today?" |
* |
* File Name: fckeditor.html |
* Main page that holds the editor. |
* |
36,7 → 38,7 |
<td id="CollapseHandle" style="DISPLAY: none" class="TB_Collapse" |
unselectable="on" valign="bottom" onclick="FCKToolbarSet.Collapse();return false;"><img class="TB_CollapseImg" src="images/spacer.gif" width="8" height="4" unselectable="on"></td> |
<td id="eToolbar" class="TB_ToolbarSet" unselectable="on"></td> |
<td width="1" style="BACKGROUND-COLOR: #696969"></td> |
<td width="1" class="TB_SideBorder"></td> |
</tr> |
</table> |
</td> |