changeset 3949:645324d706e2

update current fckeditor(v2.0) to recent version of it(v2.6)
author Byeongweon [tasyblue@gmail.com]
date Thu, 29 May 2008 16:22:22 +0900
parents a54a08994dcb
children f34a0146cac6
files wiki/htdocs/applets/FCKeditor/_documentation.html wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/fckplugin.js wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/find.gif wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/find.html wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/en.js wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/fr.js wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/it.js wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/replace.gif wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/replace.html wiki/htdocs/applets/FCKeditor/_samples/_plugins/samples/fckplugin.js wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa.code wiki/htdocs/applets/FCKeditor/_samples/afp/sample01.afp wiki/htdocs/applets/FCKeditor/_samples/afp/sampleposteddata.afp wiki/htdocs/applets/FCKeditor/_samples/asp/sample01.asp wiki/htdocs/applets/FCKeditor/_samples/asp/sample02.asp wiki/htdocs/applets/FCKeditor/_samples/asp/sample03.asp wiki/htdocs/applets/FCKeditor/_samples/asp/sample04.asp wiki/htdocs/applets/FCKeditor/_samples/asp/sampleposteddata.asp wiki/htdocs/applets/FCKeditor/_samples/cfm/sample01.cfm wiki/htdocs/applets/FCKeditor/_samples/cfm/sample02_mx.cfm wiki/htdocs/applets/FCKeditor/_samples/default.html wiki/htdocs/applets/FCKeditor/_samples/html/sample01.html wiki/htdocs/applets/FCKeditor/_samples/html/sample02.html wiki/htdocs/applets/FCKeditor/_samples/html/sample03.html wiki/htdocs/applets/FCKeditor/_samples/html/sample04.html wiki/htdocs/applets/FCKeditor/_samples/html/sample05.html wiki/htdocs/applets/FCKeditor/_samples/html/sample06.config.js wiki/htdocs/applets/FCKeditor/_samples/html/sample06.html wiki/htdocs/applets/FCKeditor/_samples/html/sample07.html wiki/htdocs/applets/FCKeditor/_samples/html/sample08.html wiki/htdocs/applets/FCKeditor/_samples/html/sample09.html wiki/htdocs/applets/FCKeditor/_samples/html/sample10.html wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.asp wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.html wiki/htdocs/applets/FCKeditor/_samples/lasso/sample01.lasso wiki/htdocs/applets/FCKeditor/_samples/lasso/sample02.lasso wiki/htdocs/applets/FCKeditor/_samples/lasso/sample03.lasso wiki/htdocs/applets/FCKeditor/_samples/lasso/sample04.lasso wiki/htdocs/applets/FCKeditor/_samples/lasso/sampleposteddata.lasso wiki/htdocs/applets/FCKeditor/_samples/perl/sample01.cgi wiki/htdocs/applets/FCKeditor/_samples/perl/sample02.cgi wiki/htdocs/applets/FCKeditor/_samples/perl/sample03.cgi wiki/htdocs/applets/FCKeditor/_samples/perl/sample04.cgi wiki/htdocs/applets/FCKeditor/_samples/perl/sampleposteddata.cgi wiki/htdocs/applets/FCKeditor/_samples/php/sample01.php wiki/htdocs/applets/FCKeditor/_samples/php/sample02.php wiki/htdocs/applets/FCKeditor/_samples/php/sample03.php wiki/htdocs/applets/FCKeditor/_samples/php/sample04.php wiki/htdocs/applets/FCKeditor/_samples/php/sampleposteddata.php wiki/htdocs/applets/FCKeditor/_samples/py/sample01.py wiki/htdocs/applets/FCKeditor/_samples/py/sampleposteddata.py wiki/htdocs/applets/FCKeditor/_samples/sample.css wiki/htdocs/applets/FCKeditor/_samples/sampleslist.html wiki/htdocs/applets/FCKeditor/_whatsnew.html wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckevents.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckplugin.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckspecialcombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbar.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarbreak_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarbreak_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarbutton.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarfontformatcombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarfontscombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarfontsizecombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarpanelbutton.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarspecialcombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fcktoolbarstylecombo.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckxml_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckxml_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fck_othercommands.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fcknamedcommand.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckpastewordcommand.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckstylecommand.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fcktablecommand.js wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fcktextcolorcommand.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fck.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckbrowserinfo.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckcodeformatter.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckcommands.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckconfig.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckdebug.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckdialog.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcklanguagemanager.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckplugins.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckregexlib.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckselection.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckselection_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckselection_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktablehandler.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktablehandler_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktablehandler_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktoolbaritems.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktoolbarset.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktools.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktools_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fcktools_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckurlparams.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckxhtml.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckxhtml_gecko.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckxhtml_ie.js wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckxhtmlentities.js wiki/htdocs/applets/FCKeditor/editor/css/behaviors/disablehandles.htc wiki/htdocs/applets/FCKeditor/editor/css/behaviors/showtableborders.htc wiki/htdocs/applets/FCKeditor/editor/css/fck_editorarea.css wiki/htdocs/applets/FCKeditor/editor/css/fck_internal.css wiki/htdocs/applets/FCKeditor/editor/css/fck_showtableborders_gecko.css wiki/htdocs/applets/FCKeditor/editor/dialog/common/fck_dialog_common.css wiki/htdocs/applets/FCKeditor/editor/dialog/common/fck_dialog_common.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_about.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_anchor.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_button.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_checkbox.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_colorselector.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_docprops.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_docprops/fck_document_preview.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_flash.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_flash/fck_flash.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_flash/fck_flash_preview.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_form.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_hiddenfield.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_image.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_image/fck_image.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_image/fck_image_preview.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_link.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_link/fck_link.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_listprop.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_paste.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_radiobutton.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_replace.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_select.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_select/fck_select.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_smiley.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_source.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_specialchar.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js wiki/htdocs/applets/FCKeditor/editor/dialog/fck_table.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_tablecell.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_template.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_textarea.html wiki/htdocs/applets/FCKeditor/editor/dialog/fck_textfield.html wiki/htdocs/applets/FCKeditor/editor/fckdebug.html wiki/htdocs/applets/FCKeditor/editor/fckdialog.html wiki/htdocs/applets/FCKeditor/editor/fckeditor.html wiki/htdocs/applets/FCKeditor/editor/fckeditor.original.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/browser.css wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/browser.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmactualfolder.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmcreatefolder.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmfolders.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmresourceslist.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmresourcetype.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/frmupload.html wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/js/common.js wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/js/fckxml.js wiki/htdocs/applets/FCKeditor/editor/lang/_translationstatus.txt wiki/htdocs/applets/FCKeditor/editor/lang/ar.js wiki/htdocs/applets/FCKeditor/editor/lang/bg.js wiki/htdocs/applets/FCKeditor/editor/lang/bs.js wiki/htdocs/applets/FCKeditor/editor/lang/ca.js wiki/htdocs/applets/FCKeditor/editor/lang/cs.js wiki/htdocs/applets/FCKeditor/editor/lang/da.js wiki/htdocs/applets/FCKeditor/editor/lang/de.js wiki/htdocs/applets/FCKeditor/editor/lang/el.js wiki/htdocs/applets/FCKeditor/editor/lang/en-au.js wiki/htdocs/applets/FCKeditor/editor/lang/en-uk.js wiki/htdocs/applets/FCKeditor/editor/lang/en.js wiki/htdocs/applets/FCKeditor/editor/lang/eo.js wiki/htdocs/applets/FCKeditor/editor/lang/es.js wiki/htdocs/applets/FCKeditor/editor/lang/et.js wiki/htdocs/applets/FCKeditor/editor/lang/eu.js wiki/htdocs/applets/FCKeditor/editor/lang/fa.js wiki/htdocs/applets/FCKeditor/editor/lang/fi.js wiki/htdocs/applets/FCKeditor/editor/lang/fo.js wiki/htdocs/applets/FCKeditor/editor/lang/fr.js wiki/htdocs/applets/FCKeditor/editor/lang/gl.js wiki/htdocs/applets/FCKeditor/editor/lang/he.js wiki/htdocs/applets/FCKeditor/editor/lang/hi.js wiki/htdocs/applets/FCKeditor/editor/lang/hr.js wiki/htdocs/applets/FCKeditor/editor/lang/hu.js wiki/htdocs/applets/FCKeditor/editor/lang/it.js wiki/htdocs/applets/FCKeditor/editor/lang/ja.js wiki/htdocs/applets/FCKeditor/editor/lang/ko.js wiki/htdocs/applets/FCKeditor/editor/lang/lt.js wiki/htdocs/applets/FCKeditor/editor/lang/lv.js wiki/htdocs/applets/FCKeditor/editor/lang/mn.js wiki/htdocs/applets/FCKeditor/editor/lang/ms.js wiki/htdocs/applets/FCKeditor/editor/lang/nl.js wiki/htdocs/applets/FCKeditor/editor/lang/no.js wiki/htdocs/applets/FCKeditor/editor/lang/pl.js wiki/htdocs/applets/FCKeditor/editor/lang/pt-br.js wiki/htdocs/applets/FCKeditor/editor/lang/pt.js wiki/htdocs/applets/FCKeditor/editor/lang/ro.js wiki/htdocs/applets/FCKeditor/editor/lang/ru.js wiki/htdocs/applets/FCKeditor/editor/lang/sk.js wiki/htdocs/applets/FCKeditor/editor/lang/sl.js wiki/htdocs/applets/FCKeditor/editor/lang/sr-latn.js wiki/htdocs/applets/FCKeditor/editor/lang/sr.js wiki/htdocs/applets/FCKeditor/editor/lang/sv.js wiki/htdocs/applets/FCKeditor/editor/lang/th.js wiki/htdocs/applets/FCKeditor/editor/lang/tr.js wiki/htdocs/applets/FCKeditor/editor/lang/uk.js wiki/htdocs/applets/FCKeditor/editor/lang/vi.js wiki/htdocs/applets/FCKeditor/editor/lang/zh-cn.js wiki/htdocs/applets/FCKeditor/editor/lang/zh.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/fck_placeholder.html wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/fckplugin.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/lang/de.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/lang/en.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/lang/fr.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/lang/it.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/lang/pl.js wiki/htdocs/applets/FCKeditor/editor/plugins/placeholder/placeholder.gif wiki/htdocs/applets/FCKeditor/editor/plugins/simplecommands/fckplugin.js wiki/htdocs/applets/FCKeditor/editor/plugins/tablecommands/fckplugin.js wiki/htdocs/applets/FCKeditor/editor/skins/default/fck_dialog.css wiki/htdocs/applets/FCKeditor/editor/skins/default/fck_editor.css wiki/htdocs/applets/FCKeditor/editor/skins/default/images/toolbar.start.gif wiki/htdocs/applets/FCKeditor/editor/skins/office2003/fck_dialog.css wiki/htdocs/applets/FCKeditor/editor/skins/office2003/fck_editor.css wiki/htdocs/applets/FCKeditor/editor/skins/office2003/images/toolbar.end.gif wiki/htdocs/applets/FCKeditor/editor/skins/office2003/images/toolbar.start.gif wiki/htdocs/applets/FCKeditor/editor/skins/silver/fck_dialog.css wiki/htdocs/applets/FCKeditor/editor/skins/silver/fck_editor.css wiki/htdocs/applets/FCKeditor/editor/skins/silver/images/toolbar.buttonbg.gif wiki/htdocs/applets/FCKeditor/editor/skins/silver/images/toolbar.start.gif wiki/htdocs/applets/FCKeditor/fckconfig.js wiki/htdocs/applets/FCKeditor/fckeditor.afp wiki/htdocs/applets/FCKeditor/fckeditor.asp wiki/htdocs/applets/FCKeditor/fckeditor.cfc wiki/htdocs/applets/FCKeditor/fckeditor.cfm wiki/htdocs/applets/FCKeditor/fckeditor.js wiki/htdocs/applets/FCKeditor/fckeditor.lasso wiki/htdocs/applets/FCKeditor/fckeditor.php wiki/htdocs/applets/FCKeditor/fckeditor.pl wiki/htdocs/applets/FCKeditor/fckeditor.py wiki/htdocs/applets/FCKeditor/fckstyles.xml wiki/htdocs/applets/FCKeditor/fcktemplates.xml wiki/htdocs/applets/FCKeditor/license.txt
diffstat 251 files changed, 58475 insertions(+), 48853 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/applets/FCKeditor/_documentation.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_documentation.html	Thu May 29 16:22:22 2008 +0900
@@ -1,30 +1,38 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * 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?"
--->
-<html>
-	<head>
-		<title>FCKeditor - Documentation</title>
-		<style>
-			BODY { FONT-FAMILY: Arial, Verdana, Sans-Serif }
-			P { MARGIN-LEFT: 20px }
-			</style>
-	</head>
-	<body>
-		<h1>FCKeditor Documentation</h1>
-		<p>You can find all the available documentation for FCKeditor online, at our wiki 
-			web site:</p>
-		<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
-			<p><a href="http://wiki.fckeditor.net/">http://wiki.fckeditor.net/</a></p>
-		</blockquote>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Documentation</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<style type="text/css">
+		body { font-family: arial, verdana, sans-serif }
+		p { margin-left: 20px }
+	</style>
+</head>
+<body>
+	<h1>
+		FCKeditor Documentation</h1>
+	<p>
+		You can find the official documentation for FCKeditor online, at <a href="http://docs.fckeditor.net/">
+			http://docs.fckeditor.net/</a>.</p>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/fckplugin.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/fckplugin.js	Thu May 29 16:22:22 2008 +0900
@@ -1,34 +1,38 @@
-/*
- * 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 is the sample plugin definition file.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-// Register the related commands.
-FCKCommands.RegisterCommand( 'My_Find'		, new FCKDialogCommand( FCKLang['DlgMyFindTitle']	, FCKLang['DlgMyFindTitle']		, FCKConfig.PluginsPath + 'findreplace/find.html'	, 340, 170 ) ) ;
-FCKCommands.RegisterCommand( 'My_Replace'	, new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle']	, FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ;
-
-// Create the "Find" toolbar button.
-var oFindItem		= new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ;
-oFindItem.IconPath	= FCKConfig.PluginsPath + 'findreplace/find.gif' ;
-
-FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ;			// 'My_Find' is the name used in the Toolbar config.
-
-// Create the "Replace" toolbar button.
-var oReplaceItem		= new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ;
-oReplaceItem.IconPath	= FCKConfig.PluginsPath + 'findreplace/replace.gif' ;
-
-FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ;	// 'My_Replace' is the name used in the Toolbar config.
\ No newline at end of file
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This is the sample plugin definition file.
+ */
+
+// Register the related commands.
+FCKCommands.RegisterCommand( 'My_Find'		, new FCKDialogCommand( FCKLang['DlgMyFindTitle']	, FCKLang['DlgMyFindTitle']		, FCKConfig.PluginsPath + 'findreplace/find.html'	, 340, 170 ) ) ;
+FCKCommands.RegisterCommand( 'My_Replace'	, new FCKDialogCommand( FCKLang['DlgMyReplaceTitle'], FCKLang['DlgMyReplaceTitle']	, FCKConfig.PluginsPath + 'findreplace/replace.html', 340, 200 ) ) ;
+
+// Create the "Find" toolbar button.
+var oFindItem		= new FCKToolbarButton( 'My_Find', FCKLang['DlgMyFindTitle'] ) ;
+oFindItem.IconPath	= FCKConfig.PluginsPath + 'findreplace/find.gif' ;
+
+FCKToolbarItems.RegisterItem( 'My_Find', oFindItem ) ;			// 'My_Find' is the name used in the Toolbar config.
+
+// Create the "Replace" toolbar button.
+var oReplaceItem		= new FCKToolbarButton( 'My_Replace', FCKLang['DlgMyReplaceTitle'] ) ;
+oReplaceItem.IconPath	= FCKConfig.PluginsPath + 'findreplace/replace.gif' ;
+
+FCKToolbarItems.RegisterItem( 'My_Replace', oReplaceItem ) ;	// 'My_Replace' is the name used in the Toolbar config.
Binary file wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/find.gif has changed
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/find.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/find.html	Thu May 29 16:22:22 2008 +0900
@@ -1,168 +1,172 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * 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: find.html
- * 	This is the sample "Find" plugin window.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<html>
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta content="noindex, nofollow" name="robots">
-		<script type="text/javascript">
-
-var oEditor = window.parent.InnerDialogLoaded() ;
-
-function OnLoad()
-{
-	// Whole word is available on IE only.
-	if ( oEditor.FCKBrowserInfo.IsIE )
-		document.getElementById('divWord').style.display = '' ;
-	
-	// First of all, translate the dialog box texts.
-	oEditor.FCKLanguageManager.TranslatePage( document ) ;
-
-	window.parent.SetAutoSize( true ) ;
-}
-
-function btnStat(frm)
-{
-	document.getElementById('btnFind').disabled = 
-		( document.getElementById('txtFind').value.length == 0 ) ;
-}
-
-function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll )
-{
-	for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
-	{
-		var oNode = parentNode.childNodes[i] ;
-		if ( oNode.nodeType == 3 )
-		{
-			var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
-			if ( oNode.nodeValue != sReplaced )
-			{
-				oNode.nodeValue = sReplaced ;
-				if ( ! replaceAll )
-					return true ;
-			}
-		}
-		else
-		{
-			if ( ReplaceTextNodes( oNode, regex, replaceValue ) )
-				return true ;
-		}
-	}
-	return false ;
-}
-
-function GetRegexExpr()
-{
-	if ( document.getElementById('chkWord').checked )
-		var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
-	else
-		var sExpr = document.getElementById('txtFind').value ;
-		
-	return sExpr ;
-}
-
-function GetCase() 
-{
-	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
-}
-
-function Ok()
-{
-	if ( document.getElementById('txtFind').value.length == 0 )
-		return ;
-	
-	if ( oEditor.FCKBrowserInfo.IsIE )
-		FindIE() ;
-	else
-		FindGecko() ;
-}
-
-var oRange = null ;
-
-function FindIE()
-{
-	if ( oRange == null )
-		oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
-
-	var iFlags = 0 ;
-	
-	if ( chkCase.checked )
-		iFlags = iFlags | 4 ;
-	
-	if ( chkWord.checked )
-		iFlags = iFlags | 2 ;
-	
-	var bFound = oRange.findText( document.getElementById('txtFind').value, 1, iFlags ) ;
-	
-	if ( bFound )
-	{
-		oRange.scrollIntoView() ;
-		oRange.select() ;
-		oRange.collapse(false) ;
-		oLastRangeFound = oRange ;
-	}
-	else
-	{
-		oRange = null ;
-		alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ;
-	}
-}
-
-function FindGecko()
-{
-	var bCase = document.getElementById('chkCase').checked ;
-	var bWord = document.getElementById('chkWord').checked ;
-	
-	// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
-	oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
-	
-}
-		</script>
-	</head>
-	<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
-		<div align="center">
-			This is my Plugin!
-		</div>
-		<table cellSpacing="3" cellPadding="2" width="100%" border="0">
-			<tr>
-				<td nowrap>
-					<label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>&nbsp;
-				</td>
-				<td width="100%">
-					<input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
-				</td>
-				<td>
-					<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" disabled
-						onclick="Ok();" type="button" value="Find" fckLang="DlgMyFindFindBtn">
-				</td>
-			</tr>
-			<tr>
-				<td valign="bottom" colSpan="3">
-					&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match 
-						case</label>
-					<br>
-					<div id="divWord" style="DISPLAY: none">
-						&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match 
-							whole word</label>
-					</div>
-				</td>
-			</tr>
-		</table>
-	</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This is the sample "Find" plugin window.
+-->
+<html>
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta content="noindex, nofollow" name="robots">
+		<script type="text/javascript">
+
+var oEditor = window.parent.InnerDialogLoaded() ;
+
+function OnLoad()
+{
+	// Whole word is available on IE only.
+	if ( oEditor.FCKBrowserInfo.IsIE )
+		document.getElementById('divWord').style.display = '' ;
+
+	// First of all, translate the dialog box texts.
+	oEditor.FCKLanguageManager.TranslatePage( document ) ;
+
+	window.parent.SetAutoSize( true ) ;
+}
+
+function btnStat(frm)
+{
+	document.getElementById('btnFind').disabled =
+		( document.getElementById('txtFind').value.length == 0 ) ;
+}
+
+function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll )
+{
+	for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
+	{
+		var oNode = parentNode.childNodes[i] ;
+		if ( oNode.nodeType == 3 )
+		{
+			var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
+			if ( oNode.nodeValue != sReplaced )
+			{
+				oNode.nodeValue = sReplaced ;
+				if ( ! replaceAll )
+					return true ;
+			}
+		}
+		else
+		{
+			if ( ReplaceTextNodes( oNode, regex, replaceValue ) )
+				return true ;
+		}
+	}
+	return false ;
+}
+
+function GetRegexExpr()
+{
+	if ( document.getElementById('chkWord').checked )
+		var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
+	else
+		var sExpr = document.getElementById('txtFind').value ;
+
+	return sExpr ;
+}
+
+function GetCase()
+{
+	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
+}
+
+function Ok()
+{
+	if ( document.getElementById('txtFind').value.length == 0 )
+		return ;
+
+	if ( oEditor.FCKBrowserInfo.IsIE )
+		FindIE() ;
+	else
+		FindGecko() ;
+}
+
+var oRange = null ;
+
+function FindIE()
+{
+	if ( oRange == null )
+		oRange = oEditor.FCK.EditorDocument.body.createTextRange() ;
+
+	var iFlags = 0 ;
+
+	if ( chkCase.checked )
+		iFlags = iFlags | 4 ;
+
+	if ( chkWord.checked )
+		iFlags = iFlags | 2 ;
+
+	var bFound = oRange.findText( document.getElementById('txtFind').value, 1, iFlags ) ;
+
+	if ( bFound )
+	{
+		oRange.scrollIntoView() ;
+		oRange.select() ;
+		oRange.collapse(false) ;
+		oLastRangeFound = oRange ;
+	}
+	else
+	{
+		oRange = null ;
+		alert( oEditor.FCKLang.DlgFindNotFoundMsg ) ;
+	}
+}
+
+function FindGecko()
+{
+	var bCase = document.getElementById('chkCase').checked ;
+	var bWord = document.getElementById('chkWord').checked ;
+
+	// window.find( searchString, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog ) ;
+	oEditor.FCK.EditorWindow.find( document.getElementById('txtFind').value, bCase, false, false, bWord, false, false ) ;
+
+}
+		</script>
+	</head>
+	<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
+		<div align="center">
+			This is my Plugin!
+		</div>
+		<table cellSpacing="3" cellPadding="2" width="100%" border="0">
+			<tr>
+				<td nowrap>
+					<label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>&nbsp;
+				</td>
+				<td width="100%">
+					<input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
+				</td>
+				<td>
+					<input id="btnFind" style="WIDTH: 100%; PADDING-RIGHT: 5px; PADDING-LEFT: 5px" disabled
+						onclick="Ok();" type="button" value="Find" fckLang="DlgMyFindFindBtn">
+				</td>
+			</tr>
+			<tr>
+				<td valign="bottom" colSpan="3">
+					&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
+						case</label>
+					<br>
+					<div id="divWord" style="DISPLAY: none">
+						&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
+							whole word</label>
+					</div>
+				</td>
+			</tr>
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/en.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/en.js	Thu May 29 16:22:22 2008 +0900
@@ -1,29 +1,33 @@
-/*
- * 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: en.js
- * 	English language file for the sample plugin.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-FCKLang['DlgMyReplaceTitle']		= 'Plugin - Replace' ;
-FCKLang['DlgMyReplaceFindLbl']		= 'Find what:' ;
-FCKLang['DlgMyReplaceReplaceLbl']	= 'Replace with:' ;
-FCKLang['DlgMyReplaceCaseChk']		= 'Match case' ;
-FCKLang['DlgMyReplaceReplaceBtn']	= 'Replace' ;
-FCKLang['DlgMyReplaceReplAllBtn']	= 'Replace All' ;
-FCKLang['DlgMyReplaceWordChk']		= 'Match whole word' ;
-
-FCKLang['DlgMyFindTitle']			= 'Plugin - Find' ;
-FCKLang['DlgMyFindFindBtn']			= 'Find' ;
\ No newline at end of file
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * English language file for the sample plugin.
+ */
+
+FCKLang['DlgMyReplaceTitle']		= 'Plugin - Replace' ;
+FCKLang['DlgMyReplaceFindLbl']		= 'Find what:' ;
+FCKLang['DlgMyReplaceReplaceLbl']	= 'Replace with:' ;
+FCKLang['DlgMyReplaceCaseChk']		= 'Match case' ;
+FCKLang['DlgMyReplaceReplaceBtn']	= 'Replace' ;
+FCKLang['DlgMyReplaceReplAllBtn']	= 'Replace All' ;
+FCKLang['DlgMyReplaceWordChk']		= 'Match whole word' ;
+
+FCKLang['DlgMyFindTitle']			= 'Plugin - Find' ;
+FCKLang['DlgMyFindFindBtn']			= 'Find' ;
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/fr.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/fr.js	Thu May 29 16:22:22 2008 +0900
@@ -1,29 +1,33 @@
-/*
- * 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: fr.js
- * 	French language file for the sample plugin.
- * 
- * File Authors:
- * 		Benjamin Cartereau (b.cartereau@infass.com)
- */
-
-FCKLang['DlgMyReplaceTitle']		= 'Plugin - Remplacer' ;
-FCKLang['DlgMyReplaceFindLbl']		= 'Chercher:' ;
-FCKLang['DlgMyReplaceReplaceLbl']	= 'Remplacer par:' ;
-FCKLang['DlgMyReplaceCaseChk']		= 'Respecter la casse' ;
-FCKLang['DlgMyReplaceReplaceBtn']	= 'Remplacer' ;
-FCKLang['DlgMyReplaceReplAllBtn']	= 'Remplacer Tout' ;
-FCKLang['DlgMyReplaceWordChk']		= 'Mot entier' ;
-
-FCKLang['DlgMyFindTitle']			= 'Plugin - Chercher' ;
-FCKLang['DlgMyFindFindBtn']			= 'Chercher' ;
\ No newline at end of file
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * French language file for the sample plugin.
+ */
+
+FCKLang['DlgMyReplaceTitle']		= 'Plugin - Remplacer' ;
+FCKLang['DlgMyReplaceFindLbl']		= 'Chercher:' ;
+FCKLang['DlgMyReplaceReplaceLbl']	= 'Remplacer par:' ;
+FCKLang['DlgMyReplaceCaseChk']		= 'Respecter la casse' ;
+FCKLang['DlgMyReplaceReplaceBtn']	= 'Remplacer' ;
+FCKLang['DlgMyReplaceReplAllBtn']	= 'Remplacer Tout' ;
+FCKLang['DlgMyReplaceWordChk']		= 'Mot entier' ;
+
+FCKLang['DlgMyFindTitle']			= 'Plugin - Chercher' ;
+FCKLang['DlgMyFindFindBtn']			= 'Chercher' ;
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/it.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/lang/it.js	Thu May 29 16:22:22 2008 +0900
@@ -1,29 +1,33 @@
-/*
- * 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: it.js
- * 	Italian language file for the sample plugin.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-FCKLang['DlgMyReplaceTitle']		= 'Plugin - Sostituisci' ;
-FCKLang['DlgMyReplaceFindLbl']		= 'Trova:' ;
-FCKLang['DlgMyReplaceReplaceLbl']	= 'Sostituisci con:' ;
-FCKLang['DlgMyReplaceCaseChk']		= 'Maiuscole/minuscole' ;
-FCKLang['DlgMyReplaceReplaceBtn']	= 'Sostituisci' ;
-FCKLang['DlgMyReplaceReplAllBtn']	= 'Sostituisci tutto' ;
-FCKLang['DlgMyReplaceWordChk']		= 'Parola intera' ;
-
-FCKLang['DlgMyFindTitle']			= 'Plugin - Cerca' ;
-FCKLang['DlgMyFindFindBtn']			= 'Cerca' ;
\ No newline at end of file
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Italian language file for the sample plugin.
+ */
+
+FCKLang['DlgMyReplaceTitle']		= 'Plugin - Sostituisci' ;
+FCKLang['DlgMyReplaceFindLbl']		= 'Trova:' ;
+FCKLang['DlgMyReplaceReplaceLbl']	= 'Sostituisci con:' ;
+FCKLang['DlgMyReplaceCaseChk']		= 'Maiuscole/minuscole' ;
+FCKLang['DlgMyReplaceReplaceBtn']	= 'Sostituisci' ;
+FCKLang['DlgMyReplaceReplAllBtn']	= 'Sostituisci tutto' ;
+FCKLang['DlgMyReplaceWordChk']		= 'Parola intera' ;
+
+FCKLang['DlgMyFindTitle']			= 'Plugin - Cerca' ;
+FCKLang['DlgMyFindFindBtn']			= 'Cerca' ;
Binary file wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/replace.gif has changed
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/replace.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/findreplace/replace.html	Thu May 29 16:22:22 2008 +0900
@@ -1,131 +1,135 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * 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: replace.html
- * 	This is the sample "Replace" plugin window.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<html>
-	<head>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta content="noindex, nofollow" name="robots">
-		<script type="text/javascript">
-
-var oEditor = window.parent.InnerDialogLoaded() ;
-
-function OnLoad()
-{
-	// First of all, translate the dialog box texts
-	oEditor.FCKLanguageManager.TranslatePage( document ) ;
-
-	window.parent.SetAutoSize( true ) ;
-}
-
-function btnStat(frm)
-{
-	document.getElementById('btnReplace').disabled = 
-		document.getElementById('btnReplaceAll').disabled = 
-			( document.getElementById('txtFind').value.length == 0 ) ;
-}
-
-function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll, hasFound )
-{
-	for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
-	{
-		var oNode = parentNode.childNodes[i] ;
-		if ( oNode.nodeType == 3 )
-		{
-			var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
-			if ( oNode.nodeValue != sReplaced )
-			{
-				oNode.nodeValue = sReplaced ;
-				if ( ! replaceAll )
-					return true ;
-				hasFound = true ;
-			}
-		}
-
-		hasFound = ReplaceTextNodes( oNode, regex, replaceValue, replaceAll, hasFound ) ;
-		if ( ! replaceAll && hasFound )
-			return true ;
-	}
-	
-	return hasFound ;
-}
-
-function GetRegexExpr()
-{
-	if ( document.getElementById('chkWord').checked )
-		var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
-	else
-		var sExpr = document.getElementById('txtFind').value ;
-		
-	return sExpr ;
-}
-
-function GetCase() 
-{
-	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
-}
-
-function Replace()
-{
-	var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ;
-	ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false ) ;
-}
-
-function ReplaceAll()
-{
-	var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ;
-	ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true ) ;
-	window.parent.Cancel() ;
-}
-		</script>
-	</head>
-	<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
-		<div align="center">
-			This is my Plugin!
-		</div>
-		<table cellSpacing="3" cellPadding="2" width="100%" border="0">
-			<tr>
-				<td noWrap><label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>
-				</td>
-				<td width="100%"><input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
-				</td>
-				<td><input id="btnReplace" style="WIDTH: 100%" disabled onclick="Replace();" type="button"
-						value="Replace" fckLang="DlgMyReplaceReplaceBtn">
-				</td>
-			</tr>
-			<tr>
-				<td vAlign="top" nowrap><label for="txtReplace" fckLang="DlgMyReplaceReplaceLbl">Replace 
-						with:</label>
-				</td>
-				<td vAlign="top"><input id="txtReplace" style="WIDTH: 100%" tabIndex="2" type="text">
-				</td>
-				<td><input id="btnReplaceAll" disabled onclick="ReplaceAll()" type="button" value="Replace All"
-						fckLang="DlgMyReplaceReplAllBtn">
-				</td>
-			</tr>
-			<tr>
-				<td vAlign="bottom" colSpan="3">&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match 
-						case</label>
-					<br>
-					&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match 
-						whole word</label>
-				</td>
-			</tr>
-		</table>
-	</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This is the sample "Replace" plugin window.
+-->
+<html>
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta content="noindex, nofollow" name="robots">
+		<script type="text/javascript">
+
+var oEditor = window.parent.InnerDialogLoaded() ;
+
+function OnLoad()
+{
+	// First of all, translate the dialog box texts
+	oEditor.FCKLanguageManager.TranslatePage( document ) ;
+
+	window.parent.SetAutoSize( true ) ;
+}
+
+function btnStat(frm)
+{
+	document.getElementById('btnReplace').disabled =
+		document.getElementById('btnReplaceAll').disabled =
+			( document.getElementById('txtFind').value.length == 0 ) ;
+}
+
+function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll, hasFound )
+{
+	for ( var i = 0 ; i < parentNode.childNodes.length ; i++ )
+	{
+		var oNode = parentNode.childNodes[i] ;
+		if ( oNode.nodeType == 3 )
+		{
+			var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ;
+			if ( oNode.nodeValue != sReplaced )
+			{
+				oNode.nodeValue = sReplaced ;
+				if ( ! replaceAll )
+					return true ;
+				hasFound = true ;
+			}
+		}
+
+		hasFound = ReplaceTextNodes( oNode, regex, replaceValue, replaceAll, hasFound ) ;
+		if ( ! replaceAll && hasFound )
+			return true ;
+	}
+
+	return hasFound ;
+}
+
+function GetRegexExpr()
+{
+	if ( document.getElementById('chkWord').checked )
+		var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ;
+	else
+		var sExpr = document.getElementById('txtFind').value ;
+
+	return sExpr ;
+}
+
+function GetCase()
+{
+	return ( document.getElementById('chkCase').checked ? '' : 'i' ) ;
+}
+
+function Replace()
+{
+	var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ;
+	ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false ) ;
+}
+
+function ReplaceAll()
+{
+	var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ;
+	ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true ) ;
+	window.parent.Cancel() ;
+}
+		</script>
+	</head>
+	<body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
+		<div align="center">
+			This is my Plugin!
+		</div>
+		<table cellSpacing="3" cellPadding="2" width="100%" border="0">
+			<tr>
+				<td noWrap><label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label>
+				</td>
+				<td width="100%"><input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text">
+				</td>
+				<td><input id="btnReplace" style="WIDTH: 100%" disabled onclick="Replace();" type="button"
+						value="Replace" fckLang="DlgMyReplaceReplaceBtn">
+				</td>
+			</tr>
+			<tr>
+				<td vAlign="top" nowrap><label for="txtReplace" fckLang="DlgMyReplaceReplaceLbl">Replace
+						with:</label>
+				</td>
+				<td vAlign="top"><input id="txtReplace" style="WIDTH: 100%" tabIndex="2" type="text">
+				</td>
+				<td><input id="btnReplaceAll" disabled onclick="ReplaceAll()" type="button" value="Replace All"
+						fckLang="DlgMyReplaceReplAllBtn">
+				</td>
+			</tr>
+			<tr>
+				<td vAlign="bottom" colSpan="3">&nbsp;<input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match
+						case</label>
+					<br>
+					&nbsp;<input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match
+						whole word</label>
+				</td>
+			</tr>
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/_plugins/samples/fckplugin.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/_plugins/samples/fckplugin.js	Thu May 29 16:22:22 2008 +0900
@@ -1,24 +1,73 @@
-/*
- * 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 is a sample plugin definition file.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-// Here we define our custom Style combo, with a custom widths.
-var oMyBigStyleCombo = new FCKToolbarStyleCombo() ;
-oMyBigStyleCombo.FieldWidth = 250 ;
-oMyBigStyleCombo.PanelWidth = 300 ;
-FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ;
\ No newline at end of file
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This is a sample plugin definition file.
+ */
+
+// Here we define our custom Style combo, with custom widths.
+var oMyBigStyleCombo = new FCKToolbarStyleCombo() ;
+oMyBigStyleCombo.FieldWidth = 250 ;
+oMyBigStyleCombo.PanelWidth = 300 ;
+FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ;
+
+
+// ##### Defining a custom context menu entry.
+
+// ## 1. Define the command to be executed when selecting the context menu item.
+var oMyCMCommand = new Object() ;
+oMyCMCommand.Name = 'OpenImage' ;
+
+// This is the standard function used to execute the command (called when clicking in the context menu item).
+oMyCMCommand.Execute = function()
+{
+	// This command is called only when an image element is selected (IMG).
+	// Get image URL (src).
+	var sUrl = FCKSelection.GetSelectedElement().src ;
+
+	// Open the URL in a new window.
+	window.top.open( sUrl ) ;
+}
+
+// This is the standard function used to retrieve the command state (it could be disabled for some reason).
+oMyCMCommand.GetState = function()
+{
+	// Let's make it always enabled.
+	return FCK_TRISTATE_OFF ;
+}
+
+// ## 2. Register our custom command.
+FCKCommands.RegisterCommand( 'OpenImage', oMyCMCommand ) ;
+
+// ## 3. Define the context menu "listener".
+var oMyContextMenuListener = new Object() ;
+
+// This is the standard function called right before sowing the context menu.
+oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
+{
+	// Let's show our custom option only for images.
+	if ( tagName == 'IMG' )
+	{
+		contextMenu.AddSeparator() ;
+		contextMenu.AddItem( 'OpenImage', 'Open image in a new window (Custom)' ) ;
+	}
+}
+
+// ## 4. Register our context menu listener.
+FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ;
--- a/wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa	Thu May 29 16:22:22 2008 +0900
@@ -1,1 +1,1 @@
-<application ID="fck"/>
\ No newline at end of file
+<application ID="fck"/>
--- a/wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa.code	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/afp/fck.afpa.code	Thu May 29 16:22:22 2008 +0900
@@ -1,121 +1,165 @@
-DEFINE CLASS fckeditor AS custom
-	cInstanceName =""
-	BasePath =""
-	cWIDTH =""
-	cHEIGHT =""
-	ToolbarSet =""
-	cValue=""
-	DIMENSION aConfig(10,2)
-
-&& -----------------------------------------------------------------------
-	FUNCTION fckeditor( tcInstanceName )
-		LOCAL lnLoop,lnLoop2
-		THIS.cInstanceName	= tcInstanceName
-		THIS.BasePath	= '../../../FCKeditor/'
-		THIS.cWIDTH		= '100%'
-		THIS.cHEIGHT	= '200'
-		THIS.ToolbarSet	= 'Default'
-		THIS.cValue		= ''
-		FOR lnLoop=1 TO 10
-			FOR lnLoop2=1 TO 2
-				THIS.aConfig(lnLoop,lnLoop2)	= ""
-			NEXT
-		NEXT
-		RETURN
-	ENDFUNC
-
-
-&& -----------------------------------------------------------------------
-	FUNCTION CREATE()
-		RETURN(THIS.CreateHtml())
-	ENDFUNC
-
-&& -----------------------------------------------------------------------
-	FUNCTION CreateHtml()
-		LOCAL html
-		LOCAL lcLink
-
-		HtmlValue = THIS.cValue		&& HTMLSPECIALCHARS()
-
-		html = [<div>]
-		IF THIS.IsCompatible()
-			lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName
-
-			IF ( THIS.ToolbarSet # '' )
-				lcLink = lcLink + [Toolbar=]+THIS.ToolbarSet
-			ENDIF
-
-&& Render the LINKED HIDDEN FIELD.
-			html = html + [<input type="hidden" id="]+THIS.cInstanceName +[" name="]+THIS.cInstanceName +[" value="]+HtmlValue+[">]
-
-&& Render the configurations HIDDEN FIELD.
-			html = html + [<input type="hidden" id="]+THIS.cInstanceName +[___Config" value="]+THIS.GetConfigFieldString() + [">] +CHR(13)+CHR(10)
-
-&& Render the EDITOR IFRAME.
-			html = html + [<iframe id="]+THIS.cInstanceName +[___Frame" src="]+lcLink+[" width="]+THIS.cWIDTH+[" height="]+THIS.cHEIGHT+[" frameborder="no" scrolling="no"></iframe>]
-		ELSE
-			IF ( AT("%", THIS.cWIDTH)=0 )
-				WidthCSS = THIS.cWIDTH + 'px'
-			ELSE
-				WidthCSS = THIS.cWIDTH
-			ENDIF
-
-			IF ( AT("%",THIS.cHEIGHT)=0  )
-				HeightCSS = THIS.cHEIGHT + 'px'
-			ELSE
-				HeightCSS = THIS.cHEIGHT
-			ENDIF
-
-			html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[" wrap="virtual">]+HtmlValue+[</textarea>]
-		ENDIF
-
-		html = html + [</div>]
-
-		RETURN (html)
-	ENDFUNC
-
-
-&& -----------------------------------------------------------------------
-	FUNCTION IsCompatible()
-		LOCAL llRetval
-		LOCAL sAgent
-
-		llRetval=.F.
-
-		sAgent= LOWER(Request.ServerVariables("HTTP_USER_AGENT"))
-
-		IF AT("msie",sAgent) >0 .AND. AT("mac",sAgent)=0 .AND. AT("opera",sAgent)=0
-			iVersion=VAL(SUBSTR(sAgent,AT("msie",sAgent)+5,3))
-			llRetval= iVersion > 5.5
-		ELSE
-			IF AT("gecko",sAgent)>0
-				iVersion=VAL(SUBSTR(sAgent,AT("gecko/",sAgent)+6,8))
-				llRetval =iVersion > 20030210
-			ENDIF
-		ENDIF
-		RETURN (llRetval)
-	ENDFUNC
-
-&& -----------------------------------------------------------------------
-	FUNCTION GetConfigFieldString()
-		LOCAL sParams
-		LOCAL bFirst
-		LOCAL sKey
-		sParams = ""
-		bFirst = .T.
-		FOR lnLoop=1 TO 10 && ALEN(this.aconfig)
-			IF !EMPTY(THIS.aConfig(lnLoop,1))
-				IF bFirst = .F.
-					sParams = sParams + "&"
-				ELSE
-					bFirst = .F.
-				ENDIF
-				sParams = sParams +THIS.aConfig(lnLoop,1)+[=]+THIS.aConfig(lnLoop,2)
-			ELSE
-				EXIT
-			ENDIF
-		NEXT
-		RETURN(sParams)
-	ENDFUNC
-ENDDEFINE
-
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This is the class definition file for the sample pages.
+ *
+
+ DEFINE CLASS fckeditor AS custom
+	cInstanceName =""
+	BasePath =""
+	cWIDTH =""
+	cHEIGHT =""
+	ToolbarSet =""
+	cValue=""
+	DIMENSION aConfig(10,2)
+
+&& -----------------------------------------------------------------------
+	FUNCTION fckeditor( tcInstanceName )
+		LOCAL lnLoop,lnLoop2
+		THIS.cInstanceName	= tcInstanceName
+		THIS.BasePath	= '../../../FCKeditor/'
+		THIS.cWIDTH		= '100%'
+		THIS.cHEIGHT	= '200'
+		THIS.ToolbarSet	= 'Default'
+		THIS.cValue		= ''
+		FOR lnLoop=1 TO 10
+			FOR lnLoop2=1 TO 2
+				THIS.aConfig(lnLoop,lnLoop2)	= ""
+			NEXT
+		NEXT
+		RETURN
+	ENDFUNC
+
+
+&& -----------------------------------------------------------------------
+	FUNCTION CREATE()
+		RETURN(THIS.CreateHtml())
+	ENDFUNC
+
+&& -----------------------------------------------------------------------
+	FUNCTION CreateHtml()
+		LOCAL html
+		LOCAL lcLink
+
+		HtmlValue = THIS.cValue		&& HTMLSPECIALCHARS()
+
+		html = [<div>]
+		IF THIS.IsCompatible()
+			lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName
+
+			IF ( !THIS.ToolbarSet == '' )
+				lcLink = lcLink + [&Toolbar=]+THIS.ToolbarSet
+			ENDIF
+
+&& Render the LINKED HIDDEN FIELD.
+			html = html + [<input type="hidden" id="]+THIS.cInstanceName +[" name="]+THIS.cInstanceName +[" value="]+HtmlValue+[">]
+
+&& Render the configurations HIDDEN FIELD.
+			html = html + [<input type="hidden" id="]+THIS.cInstanceName +[___Config" value="]+THIS.GetConfigFieldString() + [">] +CHR(13)+CHR(10)
+
+&& Render the EDITOR IFRAME.
+			html = html + [<iframe id="]+THIS.cInstanceName +[___Frame" src="]+lcLink+[" width="]+THIS.cWIDTH+[" height="]+THIS.cHEIGHT+[" frameborder="no" scrolling="no"></iframe>]
+		ELSE
+			IF ( AT("%", THIS.cWIDTH)=0 )
+				WidthCSS = THIS.cWIDTH + 'px'
+			ELSE
+				WidthCSS = THIS.cWIDTH
+			ENDIF
+
+			IF ( AT("%",THIS.cHEIGHT)=0  )
+				HeightCSS = THIS.cHEIGHT + 'px'
+			ELSE
+				HeightCSS = THIS.cHEIGHT
+			ENDIF
+
+			html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[" wrap="virtual">]+HtmlValue+[</textarea>]
+		ENDIF
+
+		html = html + [</div>]
+
+		RETURN (html)
+	ENDFUNC
+
+
+&& -----------------------------------------------------------------------
+	FUNCTION IsCompatible()
+		LOCAL llRetval
+		LOCAL sAgent
+
+		llRetval=.F.
+
+		sAgent= LOWER(Request.ServerVariables("HTTP_USER_AGENT"))
+
+		IF AT("msie",sAgent) >0 .AND. AT("mac",sAgent)=0 .AND. AT("opera",sAgent)=0
+			iVersion=VAL(SUBSTR(sAgent,AT("msie",sAgent)+5,3))
+			llRetval= iVersion > 5.5
+		ELSE
+			IF AT("gecko",sAgent)>0
+				iVersion=VAL(SUBSTR(sAgent,AT("gecko/",sAgent)+6,8))
+				llRetval =iVersion > 20030210
+			ENDIF
+		ENDIF
+		RETURN (llRetval)
+	ENDFUNC
+
+&& -----------------------------------------------------------------------
+	FUNCTION GetConfigFieldString()
+		LOCAL sParams
+		LOCAL bFirst
+		LOCAL sKey
+		sParams = ""
+		bFirst = .T.
+		FOR lnLoop=1 TO 10 && ALEN(this.aconfig)
+			IF !EMPTY(THIS.aConfig(lnLoop,1))
+				IF bFirst = .F.
+					sParams = sParams + "&"
+				ELSE
+					bFirst = .F.
+				ENDIF
+				sParams = sParams +THIS.aConfig(lnLoop,1)+[=]+THIS.aConfig(lnLoop,2)
+			ELSE
+				EXIT
+			ENDIF
+		NEXT
+		RETURN(sParams)
+	ENDFUNC
+&& -----------------------------------------------------------------------
+&& This function removes unwanted characters in URL parameters mostly entered by hackers
+
+	FUNCTION StripAttacks
+		LPARAMETERS tcString
+		IF !EMPTY(tcString)
+			tcString=STRTRAN(tcString,"&","")
+			tcString=STRTRAN(tcString,"?","")
+			tcString=STRTRAN(tcString,";","")
+			tcString=STRTRAN(tcString,"!","")
+			tcString=STRTRAN(tcString,"<%","")
+			tcString=STRTRAN(tcString,"%>","")
+			tcString=STRTRAN(tcString,"<","")
+			tcString=STRTRAN(tcString,">","")
+			tcString=STRTRAN(tcString,"..","")
+			tcString=STRTRAN(tcString,"/","")
+			tcString=STRTRAN(tcString,"\","")
+			tcString=STRTRAN(tcString,":","")
+		ELSE
+			tcString=""
+		ENDIF
+		RETURN (tcString)
+
+ENDDEFINE
--- a/wiki/htdocs/applets/FCKeditor/_samples/afp/sample01.afp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/afp/sample01.afp	Thu May 29 16:22:22 2008 +0900
@@ -1,52 +1,56 @@
-<% 
- * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 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/
- * 
- * File Name: sampleposteddata.php
- * 	This page lists the data posted by a form.
- * 
- * Version:  1.0 
- * Modified: 2005-07-01
- * 
- * File Authors: Soenke Freitag (www.afp-hosting.de)
- * 		
-%>
-
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - AFP - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features enabled.
-		<hr>
-		<form action="sampleposteddata.afp" method="post" target="_blank">
-<%
-
-sBasePath="../../fckeditor/"		&& Change this to your local path
-
-lcText=[This is some <strong>sample text</strong>. You are using ]
-lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
-
-oFCKeditor = CREATEOBJECT("FCKeditor")
-oFCKeditor.fckeditor("FCKeditor1")
-oFCKeditor.BasePath	= sBasePath 
-oFCKeditor.cValue	= lcText
-
-? oFCKeditor.Create() 
-
-%>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<%
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form.
+ *
+%>
+
+<html>
+	<head>
+		<title>FCKeditor - AFP Sample 1</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - AFP - Sample 1</h1>
+		This sample displays a normal HTML form with an FCKeditor with full features enabled.
+		<hr>
+		<form action="sampleposteddata.afp" method="post" target="_blank">
+<%
+
+			sBasePath="../../../fckeditor/"		&& Change this to your local path
+
+			lcText=[<p>This is some <strong>sample text</strong>. You are using ]
+			lcText=lcText+[<a href='http://www.fckeditor.net/'>FCKeditor</a>.]
+
+			oFCKeditor = CREATEOBJECT("FCKeditor")
+			oFCKeditor.fckeditor("FCKeditor1")
+			oFCKeditor.BasePath	= sBasePath
+			oFCKeditor.cValue	= lcText
+
+			? oFCKeditor.Create()
+
+%>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/afp/sampleposteddata.afp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/afp/sampleposteddata.afp	Thu May 29 16:22:22 2008 +0900
@@ -1,54 +1,60 @@
-<% 
- * FCKeditor - The text editor for internet
- * Copyright (C) 2003-2004 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/
- * 
- * File Name: sampleposteddata.php
- * 	This page lists the data posted by a form.
- * 
- * Version:  1.0 
- * Modified: 2005-07-01
- * 
- * File Authors: Soenke Freitag (www.afp-hosting.de)
- * 		
-%>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td nowrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-<%
-		lcForm=REQUEST.Form()
-		lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10))
-
-		FOR lnLoop=1 TO MEMLINES(lcForm)
-			lcZeile=ALLTRIM(MLINE(lcForm,lnLoop))
-			IF AT("=",lcZeile)>0
-				lcVariable=UPPER(ALLTRIM(LEFT(lcZeile,AT("=",lcZeile)-1)))  
-				lcWert=ALLTRIM(RIGHT(lcZeile,LEN(lcZeile)-AT("=",lcZeile)))
-				lcWert=Server.UrlDecode( lcWert ) 
-	
-				? [<tr><td>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]
-			ENDIF
-		NEXT
-%>
-		</table>
-	</body>
-</html>
+<%
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form.
+ *
+%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - AFP - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td nowrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+<%
+		lcForm=REQUEST.Form()
+		lcForm=STRTRAN(lcForm,"&",CHR(13)+CHR(10))
+
+		FOR lnLoop=1 TO MEMLINES(lcForm)
+			lcZeile=ALLTRIM(MLINE(lcForm,lnLoop))
+			IF AT("=",lcZeile)>0
+				lcVariable=UPPER(ALLTRIM(LEFT(lcZeile,AT("=",lcZeile)-1)))
+				lcWert=ALLTRIM(RIGHT(lcZeile,LEN(lcZeile)-AT("=",lcZeile)))
+				lcWert=Server.UrlDecode( lcWert )
+				lcWert=STRTRAN(lcWert,"<","&lt;")
+				lcWert=STRTRAN(lcWert,">","&gt;")	&& ... if wanted remove/translate HTML Chars ...
+
+				? [<tr><td>]+lcVariable+[ =</td><td>]+lcWert+[</td></tr>]
+			ENDIF
+		NEXT
+%>
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/asp/sample01.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/asp/sample01.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,55 +1,62 @@
-<%@ CodePage=65001 Language="VBScript"%>
-<% Option Explicit %>
-<!--
- * 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: sample01.asp
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
-<!-- #INCLUDE file="../../fckeditor.asp" -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - ASP - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-<%
-' Automatically calculates the editor base path based on the _samples directory.
-' This is usefull only for these samples. A real application should use something like this:
-' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-Dim sBasePath
-sBasePath = Request.ServerVariables("PATH_INFO")
-sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
-
-Dim oFCKeditor
-Set oFCKeditor = New FCKeditor
-oFCKeditor.BasePath	= sBasePath
-oFCKeditor.Value	= "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
-oFCKeditor.Create "FCKeditor1"
-%>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<%@  codepage="65001" language="VBScript" %>
+<% Option Explicit %>
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
+<!-- #INCLUDE file="../../fckeditor.asp" -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+	<h1>
+		FCKeditor - ASP - Sample 1
+	</h1>
+	<div>
+		This sample displays a normal HTML form with an FCKeditor with full features enabled.
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<%
+' Automatically calculates the editor base path based on the _samples directory.
+' This is usefull only for these samples. A real application should use something like this:
+' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+Dim sBasePath
+sBasePath = Request.ServerVariables("PATH_INFO")
+sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
+
+Dim oFCKeditor
+Set oFCKeditor = New FCKeditor
+oFCKeditor.BasePath	= sBasePath
+oFCKeditor.Value	= "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
+oFCKeditor.Create "FCKeditor1"
+		%>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/asp/sample02.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/asp/sample02.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,104 +1,108 @@
-<%@ CodePage=65001 Language="VBScript"%>
-<% Option Explicit %>
-<!--
- * 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: sample02.asp
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
-<!-- #INCLUDE file="../../fckeditor.asp" -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbLanguages' ) ;
-	for ( code in editorInstance.Language.AvailableLanguages )
-	{
-		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
-	}
-	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
-}	
-
-function AddComboOption(combo, optionText, optionValue)
-{
-	var oOption = document.createElement("OPTION") ;
-
-	combo.options.add(oOption) ;
-
-	oOption.innerHTML = optionText ;
-	oOption.value     = optionValue ;
-	
-	return oOption ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
-}
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - ASP - Sample 2</h1>
-		This sample shows the editor in all its available languages.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select a language:&nbsp;
-				</td>
-				<td>
-					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-<%
-' Automatically calculates the editor base path based on the _samples directory.
-' This is usefull only for these samples. A real application should use something like this:
-' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-Dim sBasePath
-sBasePath = Request.ServerVariables("PATH_INFO")
-sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
-
-Dim oFCKeditor
-Set oFCKeditor = New FCKeditor
-oFCKeditor.BasePath = sBasePath
-
-If Request.QueryString("Lang") = "" Then
-	oFCKeditor.Config("AutoDetectLanguage") = True
-	oFCKeditor.Config("DefaultLanguage")    = "en"
-Else
-	oFCKeditor.Config("AutoDetectLanguage") = False
-	oFCKeditor.Config("DefaultLanguage")    = Request.QueryString("Lang")
-End If
-
-oFCKeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
-oFCKeditor.Create "FCKeditor1"
-%>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<%@ CodePage=65001 Language="VBScript"%>
+<% Option Explicit %>
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
+<!-- #INCLUDE file="../../fckeditor.asp" -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+	for ( code in editorInstance.Language.AvailableLanguages )
+	{
+		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
+	}
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value     = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
+}
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - ASP - Sample 2</h1>
+		This sample shows the editor in all its available languages.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select a language:&nbsp;
+				</td>
+				<td>
+					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.asp" method="post" target="_blank">
+<%
+' Automatically calculates the editor base path based on the _samples directory.
+' This is usefull only for these samples. A real application should use something like this:
+' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+Dim sBasePath
+sBasePath = Request.ServerVariables("PATH_INFO")
+sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
+
+Dim oFCKeditor
+Set oFCKeditor = New FCKeditor
+oFCKeditor.BasePath = sBasePath
+
+If Request.QueryString("Lang") = "" Then
+	oFCKeditor.Config("AutoDetectLanguage") = True
+	oFCKeditor.Config("DefaultLanguage")    = "en"
+Else
+	oFCKeditor.Config("AutoDetectLanguage") = False
+	oFCKeditor.Config("DefaultLanguage")    = Request.QueryString("Lang")
+End If
+
+oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
+oFCKeditor.Create "FCKeditor1"
+%>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/asp/sample03.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/asp/sample03.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,88 +1,92 @@
-<%@ CodePage=65001 Language="VBScript"%>
-<% Option Explicit %>
-<!--
- * 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: sample03.asp
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
-<!-- #INCLUDE file="../../fckeditor.asp" -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbToolbars' ) ;
-	oCombo.value = editorInstance.ToolbarSet.Name ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeToolbar( toolbarName )
-{
-	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - ASP - Sample 3</h1>
-		This sample shows how to change the editor toolbar.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the toolbar to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
-						<option value="Default" selected>Default</option>
-						<option value="Basic">Basic</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-<%
-' Automatically calculates the editor base path based on the _samples directory.
-' This is usefull only for these samples. A real application should use something like this:
-' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-Dim sBasePath
-sBasePath = Request.ServerVariables("PATH_INFO")
-sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
-
-Dim oFCKeditor
-Set oFCKeditor = New FCKeditor
-oFCKeditor.BasePath = sBasePath
-
-If Request.QueryString("Toolbar") <> "" Then
-	oFCKeditor.ToolbarSet = Request.QueryString("Toolbar")
-End If
-
-oFCKeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
-oFCKeditor.Create "FCKeditor1"
-%>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<%@ CodePage=65001 Language="VBScript"%>
+<% Option Explicit %>
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
+<!-- #INCLUDE file="../../fckeditor.asp" -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbToolbars' ) ;
+	oCombo.value = editorInstance.ToolbarSet.Name ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeToolbar( toolbarName )
+{
+	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - ASP - Sample 3</h1>
+		This sample shows how to change the editor toolbar.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the toolbar to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
+						<option value="Default" selected>Default</option>
+						<option value="Basic">Basic</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.asp" method="post" target="_blank">
+<%
+' Automatically calculates the editor base path based on the _samples directory.
+' This is usefull only for these samples. A real application should use something like this:
+' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+Dim sBasePath
+sBasePath = Request.ServerVariables("PATH_INFO")
+sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
+
+Dim oFCKeditor
+Set oFCKeditor = New FCKeditor
+oFCKeditor.BasePath = sBasePath
+
+If Request.QueryString("Toolbar") <> "" Then
+	oFCKeditor.ToolbarSet = Server.HTMLEncode( Request.QueryString("Toolbar") )
+End If
+
+oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
+oFCKeditor.Create "FCKeditor1"
+%>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/asp/sample04.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/asp/sample04.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,94 +1,98 @@
-<%@ CodePage=65001 Language="VBScript"%>
-<% Option Explicit %>
-<!--
- * 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: sample04.asp
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
-<!-- #INCLUDE file="../../fckeditor.asp" -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbSkins' ) ;
-	
-	// Get the active skin.
-	var sSkin = editorInstance.Config['SkinPath'] ;
-	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
-	
-	oCombo.value = sSkin ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeSkin( skinName )
-{
-	window.location.href = window.location.pathname + "?Skin=" + skinName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - ASP - Sample 4</h1>
-		This sample shows how to change the editor skin.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the skin to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
-						<option value="default" selected>Default</option>
-						<option value="office2003">Office 2003</option>
-						<option value="silver">Silver</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-<%
-' Automatically calculates the editor base path based on the _samples directory.
-' This is usefull only for these samples. A real application should use something like this:
-' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-Dim sBasePath
-sBasePath = Request.ServerVariables("PATH_INFO")
-sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
-
-Dim oFCKeditor
-Set oFCKeditor = New FCKeditor
-oFCKeditor.BasePath = sBasePath
-
-If Request.QueryString("Skin") <> "" Then
-	oFCKeditor.Config("SkinPath") = sBasePath + "editor/skins/" & Request.QueryString("Skin") + "/"
-End If
-
-oFCKeditor.Value = "This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
-oFCKeditor.Create "FCKeditor1"
-%>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<%@ CodePage=65001 Language="VBScript"%>
+<% Option Explicit %>
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %>
+<!-- #INCLUDE file="../../fckeditor.asp" -->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbSkins' ) ;
+
+	// Get the active skin.
+	var sSkin = editorInstance.Config['SkinPath'] ;
+	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
+
+	oCombo.value = sSkin ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeSkin( skinName )
+{
+	window.location.href = window.location.pathname + "?Skin=" + skinName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - ASP - Sample 4</h1>
+		This sample shows how to change the editor skin.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the skin to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
+						<option value="default" selected>Default</option>
+						<option value="office2003">Office 2003</option>
+						<option value="silver">Silver</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.asp" method="post" target="_blank">
+<%
+' Automatically calculates the editor base path based on the _samples directory.
+' This is usefull only for these samples. A real application should use something like this:
+' oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+Dim sBasePath
+sBasePath = Request.ServerVariables("PATH_INFO")
+sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
+
+Dim oFCKeditor
+Set oFCKeditor = New FCKeditor
+oFCKeditor.BasePath = sBasePath
+
+If Request.QueryString("Skin") <> "" Then
+	oFCKeditor.Config("SkinPath") = sBasePath + "editor/skins/" & Server.HTMLEncode( Request.QueryString("Skin") ) + "/"
+End If
+
+oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
+oFCKeditor.Create "FCKeditor1"
+%>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/asp/sampleposteddata.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/asp/sampleposteddata.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,49 +1,53 @@
-<%@ CodePage=65001 Language="VBScript"%>
-<% Option Explicit %>
-<!--
- * 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: sampleposteddata.asp
- * 	This page lists the data posted by a form.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td noWrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-			<% 
-			Dim sForm
-			For Each sForm in Request.Form 
-			%>
-			<tr>
-				<td valign="top" nowrap><b><%=sForm%></b></td>
-				<td width="100%"><%=Server.HTMLEncode( Request.Form(sForm) )%></td>
-			</tr>
-			<% Next %>
-		</table>
-	</body>
-</html>
+<%@ CodePage=65001 Language="VBScript"%>
+<% Option Explicit %>
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form.
+-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td noWrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+			<%
+			Dim sForm
+			For Each sForm in Request.Form
+			%>
+			<tr>
+				<td valign="top" nowrap><b><%=sForm%></b></td>
+				<td width="100%" style="white-space:pre"><%=Server.HTMLEncode( Request.Form(sForm) )%></td>
+			</tr>
+			<% Next %>
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/cfm/sample01.cfm	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/cfm/sample01.cfm	Thu May 29 16:22:22 2008 +0900
@@ -1,85 +1,63 @@
-<cfsetting enablecfoutputonly="true" showdebugoutput="false">
-<!---
- * 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: sample01.cfm
- * 	Sample page for ColdFusion.
- * 
- * File Authors:
- * 		Hendrik Kramer (hk@lwd.de)
- * 		Mark Woods (mark@thickpaddy.com)
- * 		Wim Lemmens (didgiman@gmail.com)
---->
-
-<cfoutput>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-	<title>FCKeditor - Sample</title>
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-	<meta name="robots" content="noindex, nofollow">
-	<link href="../sample.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<h1>FCKeditor - ColdFusion - Sample 1</h1>
-	
-This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Custom Tag / Module.<br>
-ColdFusion is a registered trademark and product of <a href="http://www.macromedia.com/software/coldfusion/" target="_blank">Macromedia, Inc</a>.
-<hr>
-<form method="POST" action="#cgi.script_name#">
-</cfoutput>
-
-<cfmodule 
-	template="../../fckeditor.cfm"
-	basePath="#Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1)#"
-	instanceName="myEditor"
-	value='This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
-	width="100%"
-	height="200"
->
-<cfoutput>
-<br />
-<input type="submit" value="Submit">
-<br />
-</form>
-</cfoutput>
-
-<cfif isDefined( 'FORM.fieldnames' )>
-	<cfoutput>
-	<style>
-	<!--
-		td, th { font: 11px Verdana, Arial, Helv, Helvetica, sans-serif; }
-	-->
-	</style>
-	<table border="1" cellspacing="0" cellpadding="2" bordercolor="darkblue" bordercolordark="darkblue" bordercolorlight="darkblue">
-	<tr>
-		<th colspan="2" bgcolor="darkblue"><font color="white"><strong>Dump of FORM Variables</strong></font></th>
-	</tr>
-	<tr>
-		<td bgcolor="lightskyblue">FieldNames</td>
-		<td>#FORM.fieldNames#</td>
-	</tr>
-	<cfloop list="#FORM.fieldnames#" index="key">
-	<tr>
-		<td valign="top" bgcolor="lightskyblue">#key#</td>
-		<td>#HTMLEditFormat(evaluate("FORM.#key#"))#</td>
-	</tr>
-	</cfloop>
-	</table>
-	</cfoutput>
-</cfif>
-
-</body>
-</html>
-<cfsetting enablecfoutputonly="false">
\ No newline at end of file
+<cfsetting enablecfoutputonly="true">
+<!---
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page for ColdFusion.
+--->
+
+<cfoutput>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+	<meta name="robots" content="noindex, nofollow">
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<h1>FCKeditor - ColdFusion - Sample 1</h1>
+
+This sample displays a normal HTML form with a FCKeditor with full features enabled.
+<hr>
+
+<form method="POST" action="sampleposteddata.cfm">
+</cfoutput>
+
+<!--- Calculate basepath for FCKeditor. It's in the folder right above _samples --->
+<cfset basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 )>
+
+<cfmodule
+	template="../../fckeditor.cfm"
+	basePath="#basePath#"
+	instanceName="myEditor"
+	value='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
+	width="100%"
+	height="200"
+>
+
+<cfoutput>
+<br />
+<input type="submit" value="Submit">
+<hr />
+</form>
+</body>
+</html>
+</cfoutput>
+<cfsetting enablecfoutputonly="false">
--- a/wiki/htdocs/applets/FCKeditor/_samples/cfm/sample02_mx.cfm	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/cfm/sample02_mx.cfm	Thu May 29 16:22:22 2008 +0900
@@ -1,91 +1,114 @@
-<cfsetting enablecfoutputonly="true">
-<!---
- * 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: sample02_mx.cfm
- * 	Sample page for ColdFusion MX.
- * 
- * File Authors:
- * 		Hendrik Kramer (hk@lwd.de)
- * 		Wim Lemmens (didgiman@gmail.com)
---->
-
-<!--- ::
-	  * You must set the url path to the base directory for your media files (images, flash, files)
-	  * The best position for this variable is in your Application.cfm file
-	  * 
-	  * Possible variable scopes are:
-	  * <cfset APPLICATION.userFilesPath = "/UserFiles/">
-	  * OR:
-	  * <cfset SERVER.userFilesPath = "/UserFiles/">
-	  * OR:
-	  * <cfset request.FCKeditor.userFilesPath = "/UserFiles/">
-	  * OR:
-	  * <cfset application.FCKeditor.userFilesPath = "/UserFiles/">
-	  * OR:
-	  * <cfset server.FCKeditor.userFilesPath = "/UserFiles/">
-	  *
-	  * Note #1: Do _not_ set the physical directory on your server, only a path relative to your current webroot
-	  * Note #2: Directories will be automatically created
-	  :: --->
-
-<cfoutput>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-	<title>FCKeditor - Sample</title>
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-	<meta name="robots" content="noindex, nofollow">
-	<link href="../sample.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-<h1>FCKeditor - ColdFusion Component (CFC) - Sample 2</h1>
-
-This sample displays a normal HTML form with a FCKeditor with full features enabled; invoked by a ColdFusion Component.<br>
-ColdFusion is a registered trademark and product of <a href="http://www.macromedia.com/software/coldfusion/" target="_blank">Macromedia, Inc</a>.
-<hr>
-
-<form method="POST" action="#cgi.script_name#">
-</cfoutput>
-
-<cfif listFirst( server.coldFusion.productVersion ) LT 6>
-	<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
-	<cfabort>
-</cfif>
-
-<cfscript>
-	// Calculate basepath for FCKeditor. It's in the folder right above _samples
-	basePath = Left(cgi.script_name, FindNoCase('_samples', cgi.script_name)-1);
-
-	fckEditor = createObject("component", "#basePath#fckeditor");
-	fckEditor.instanceName	= "myEditor";
-	fckEditor.value			= 'This is some sample text. You are using <a href="http://fckeditor.net/" target="_blank">FCKeditor</a>.';
-	fckEditor.basePath		= basePath;
-	fckEditor.width			= "100%";
-	fckEditor.height		= 300;
-	fckEditor.create(); // create the editor.
-</cfscript>
-
-<cfoutput>
-<br />
-<input type="submit" value="Submit">
-<br />
-</cfoutput>
-
-<cfdump 
-	var="#FORM#" 
-	label="Dump of FORM Variables"
->
-
-<cfoutput></form></body></html></cfoutput>
-
-<cfsetting enablecfoutputonly="false">
\ No newline at end of file
+<cfsetting enablecfoutputonly="true">
+<!---
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page for ColdFusion MX 6.0 and above.
+--->
+
+<cfoutput>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+	<meta name="robots" content="noindex, nofollow">
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+	for ( code in editorInstance.Language.AvailableLanguages )
+	{
+		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
+	}
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value     = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
+}
+		</script>
+</head>
+<body>
+<h1>FCKeditor - ColdFusion Component (CFC) - Sample 2</h1>
+This sample shows the editor in all its available languages.
+<hr>
+</cfoutput>
+<cfif listFirst( server.coldFusion.productVersion ) LT 6>
+	<cfoutput><br><em style="color: red;">This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.</em></cfoutput>
+	<cfabort>
+</cfif>
+<cfoutput>
+<table cellpadding="0" cellspacing="0" border="0">
+	<tr>
+		<td>
+			Select a language:&nbsp;
+		</td>
+		<td>
+			<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+			</select>
+		</td>
+	</tr>
+</table>
+<br>
+<form action="sampleposteddata.cfm" method="post" target="_blank">
+</cfoutput>
+	<cfscript>
+		// Calculate basepath for FCKeditor. It's in the folder right above _samples
+		basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
+
+		fckEditor = createObject( "component", "#basePath#fckeditor" ) ;
+		fckEditor.instanceName	= "myEditor" ;
+		fckEditor.value			= '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+		fckEditor.basePath		= basePath ;
+		if ( isDefined( "URL.Lang" ) )
+		{
+			fckEditor.config["AutoDetectLanguage"]		= false ;
+			fckEditor.config["DefaultLanguage"]			= HTMLEditFormat( URL.Lang ) ;
+		}
+		else
+		{
+			fckEeditor.config["AutoDetectLanguage"]		= true ;
+			fckEeditor.config["DefaultLanguage"]		= 'en' ;
+		}
+		fckEditor.create() ; // create the editor.
+	</cfscript>
+<cfoutput>
+	<br>
+	<input type="submit" value="Submit">
+	</form>
+</body>
+</html>
+</cfoutput>
+<cfsetting enablecfoutputonly="false">
--- a/wiki/htdocs/applets/FCKeditor/_samples/default.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/default.html	Thu May 29 16:22:22 2008 +0900
@@ -1,30 +1,35 @@
-<!--
- * 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: default.html
- * 	Samples Frameset page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
-<html>
-	<head>
-		<title>FCKeditor - Samples</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-	</head>
-	<frameset rows="60,*">
-		<frame src="sampleslist.html" noresize scrolling="no">
-		<frame name="Sample" src="html/sample01.html" noresize>
-	</frameset>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
+   "http://www.w3.org/TR/html4/frameset.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Samples Frameset page.
+-->
+<html>
+	<head>
+		<title>FCKeditor - Samples</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+	</head>
+	<frameset rows="60,*">
+		<frame src="sampleslist.html" noresize scrolling="no">
+		<frame name="Sample" src="html/sample01.html" noresize>
+	</frameset>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample01.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample01.html	Thu May 29 16:22:22 2008 +0900
@@ -1,52 +1,59 @@
-<!--
- * 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: sample01.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-oFCKeditor.Height	= 300 ;
-oFCKeditor.Value	= 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 1
+	</h1>
+	<div>
+		This sample displays a normal HTML form with an FCKeditor with full features enabled.
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Height	= 300 ;
+oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample02.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample02.html	Thu May 29 16:22:22 2008 +0900
@@ -1,56 +1,63 @@
-<!--
- * 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: sample02.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-		<script type="text/javascript">
-
-window.onload = function()
-{
-	// Automatically calculates the editor base path based on the _samples directory.
-	// This is usefull only for these samples. A real application should use something like this:
-	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-	var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-	var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-	oFCKeditor.BasePath	= sBasePath ;
-	oFCKeditor.ReplaceTextarea() ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 2</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled. It uses the "ReplaceTextarea" command to create the editor.
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<div>
-				<textarea name="FCKeditor1" style="WIDTH: 100%; HEIGHT: 200px">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea>
-			</div>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+
+window.onload = function()
+{
+	// Automatically calculates the editor base path based on the _samples directory.
+	// This is usefull only for these samples. A real application should use something like this:
+	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+	var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+	var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+	oFCKeditor.BasePath	= sBasePath ;
+	oFCKeditor.ReplaceTextarea() ;
+}
+
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 2</h1>
+	<div>
+		This sample displays a normal HTML form with an FCKeditor with full features enabled.
+		It uses the "ReplaceTextarea" command to create the editor.
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<div>
+			<textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>
+		</div>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample03.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample03.html	Thu May 29 16:22:22 2008 +0900
@@ -1,112 +1,140 @@
-<!--
- * 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: sample03.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css">
-			<script type="text/javascript" src="../../fckeditor.js"></script>
-			<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var iCounter = 0 ;
-	var oCombo = document.getElementById( 'cmbLanguages' ) ;
-	for ( code in editorInstance.Language.AvailableLanguages )
-	{
-		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
-		iCounter++ ;
-	}
-	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
-	
-	document.getElementById('eNumLangs').innerHTML = '(' + iCounter + ' languages available!)' ;
-}	
-
-function AddComboOption(combo, optionText, optionValue)
-{
-	var oOption = document.createElement("OPTION") ;
-
-	combo.options.add(oOption) ;
-
-	oOption.innerHTML = optionText ;
-	oOption.value     = optionValue ;
-	
-	return oOption ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?" + languageCode ;
-}
-			</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 3</h1>
-		This sample shows the editor in all its available languages.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select a language:&nbsp;
-				</td>
-				<td>
-					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
-					</select>
-				</td>
-				<td>
-					&nbsp;<span id="eNumLangs"></span>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/_samples/')+1) ;
-
-var sLang ;
-if ( document.location.search.length > 1 )
-	sLang = document.location.search.substr(1) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-if ( sLang == null )
-{
-	oFCKeditor.Config["AutoDetectLanguage"] = true ;
-	oFCKeditor.Config["DefaultLanguage"]    = "en" ;
-}
-else
-{
-	oFCKeditor.Config["AutoDetectLanguage"] = false ;
-	oFCKeditor.Config["DefaultLanguage"]    = sLang ;
-}
-oFCKeditor.Value	= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+
+var bIsLoaded = false ;
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	if ( bIsLoaded )
+		return ;
+
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+
+	// Remove all options. (#1399)
+	oCombo.innerHTML = '' ;
+
+	var aLanguages = new Array() ;
+
+	for ( code in editorInstance.Language.AvailableLanguages )
+		aLanguages.push( { Code : code, Name : editorInstance.Language.AvailableLanguages[code] } ) ;
+
+	aLanguages.sort( SortLanguage ) ;
+
+	for ( var i = 0 ; i < aLanguages.length ; i++ )
+		AddComboOption( oCombo, aLanguages[i].Name + ' (' + aLanguages[i].Code + ')', aLanguages[i].Code ) ;
+
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+
+	document.getElementById('eNumLangs').innerHTML = '(' + aLanguages.length + ' languages available!)' ;
+
+	bIsLoaded = true ;
+}
+
+function SortLanguage( langA, langB )
+{
+	return ( langA.Name < langB.Name ? -1 : langA.Name > langB.Name ? 1 : 0 ) ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value     = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
+}
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 3</h1>
+	<div>
+		This sample shows the editor in all its available languages.
+	</div>
+	<hr />
+	<table cellpadding="0" cellspacing="0" border="0">
+		<tr>
+			<td>
+				Select a language:&nbsp;
+			</td>
+			<td>
+				<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+					<option>&nbsp;</option>
+				</select>
+			</td>
+			<td>
+				&nbsp;<span id="eNumLangs"></span>
+			</td>
+		</tr>
+	</table>
+	<br />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var sLang ;
+if ( document.location.search.length > 1 )
+	sLang = document.location.search.substr(1) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+if ( sLang == null )
+{
+	oFCKeditor.Config["AutoDetectLanguage"] = true ;
+	oFCKeditor.Config["DefaultLanguage"]    = "en" ;
+}
+else
+{
+	oFCKeditor.Config["AutoDetectLanguage"] = false ;
+	oFCKeditor.Config["DefaultLanguage"]    = sLang ;
+}
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample04.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample04.html	Thu May 29 16:22:22 2008 +0900
@@ -1,88 +1,95 @@
-<!--
- * 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: sample04.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css">
-			<script type="text/javascript" src="../../fckeditor.js"></script>
-			<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbToolbars' ) ;
-	oCombo.value = editorInstance.ToolbarSet.Name ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?" + languageCode ;
-}
-
-			</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 4</h1>
-		This sample shows how to change the editor toolbar.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the toolbar to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbToolbars" onchange="ChangeLanguage(this.value);" style="VISIBILITY: hidden">
-						<option value="Default" selected>Default</option>
-						<option value="Basic">Basic</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/_samples/')+1) ;
-
-// Get the toolbar from the URL.
-var sToolbar ;
-if ( document.location.search.length > 1 )
-	sToolbar = document.location.search.substr(1) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-
-if ( sToolbar != null )
-	oFCKeditor.ToolbarSet = sToolbar ;
-
-oFCKeditor.Value	= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbToolbars' ) ;
+	oCombo.value = editorInstance.ToolbarSet.Name ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
+}
+
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 4</h1>
+	<div>
+		This sample shows how to change the editor toolbar.
+	</div>
+	<hr />
+	<table cellpadding="0" cellspacing="0" border="0">
+		<tr>
+			<td>
+				Select the toolbar to load:&nbsp;
+			</td>
+			<td>
+				<select id="cmbToolbars" onchange="ChangeLanguage(this.value);" style="visibility: hidden">
+					<option value="Default" selected="selected">Default</option>
+					<option value="Basic">Basic</option>
+				</select>
+			</td>
+		</tr>
+	</table>
+	<br />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+// Get the toolbar from the URL.
+var sToolbar ;
+if ( document.location.search.length > 1 )
+	sToolbar = document.location.search.substr(1) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+
+if ( sToolbar != null )
+	oFCKeditor.ToolbarSet = sToolbar ;
+
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample05.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample05.html	Thu May 29 16:22:22 2008 +0900
@@ -1,94 +1,125 @@
-<!--
- * 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: sample05.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbSkins' ) ;
-	
-	// Get the active skin.
-	var sSkin = editorInstance.Config['SkinPath'] ;
-	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
-	
-	oCombo.value = sSkin ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?" + languageCode ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 5</h1>
-		This sample shows how to change the editor skin.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the skin to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbSkins" onchange="ChangeLanguage(this.value);" style="VISIBILITY: hidden">
-						<option value="default" selected>Default</option>
-						<option value="office2003">Office 2003</option>
-						<option value="silver">Silver</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/_samples/')+1) ;
-
-// Get the skin from the URL.
-var sSkin ;
-if ( document.location.search.length > 1 )
-	sSkin = document.location.search.substr(1) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-
-if ( sSkin != null )
-	oFCKeditor.Config['SkinPath'] = sBasePath + 'editor/skins/' + sSkin + '/' ;
-
-oFCKeditor.Value	= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbSkins' ) ;
+
+	// Get the active skin.
+	var sSkin = editorInstance.Config['SkinPath'] ;
+	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
+
+	oCombo.value = sSkin ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	document.location.href = document.location.href.replace( /\?.*$/, '' ) + "?" + languageCode ;
+}
+
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 5</h1>
+	<div>
+		This sample shows how to change the editor skin.
+	</div>
+	<hr />
+	<table cellpadding="0" cellspacing="0" border="0">
+		<tr>
+			<td>
+				Select the skin to load:&nbsp;
+			</td>
+			<td>
+				<select id="cmbSkins" onchange="ChangeLanguage(this.value);" style="visibility: hidden">
+					<option value="default" selected="selected">Default</option>
+					<option value="office2003">Office 2003</option>
+					<option value="silver">Silver</option>
+				</select>
+			</td>
+		</tr>
+	</table>
+	<br />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+// Get the skin from the URL.
+var sSkin ;
+if ( document.location.search.length > 1 )
+	sSkin = document.location.search.substr(1) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+
+if ( sSkin != null )
+{
+	var sSkinPath = sBasePath + 'editor/skins/' + sSkin + '/' ;
+	oFCKeditor.Config['SkinPath'] = sSkinPath ;
+
+	// The following switch is optional. It is done to enhance the loading
+	// time of the toolbar, by preloading the images used on it.
+	switch ( sSkin )
+	{
+		case 'office2003' :
+			oFCKeditor.Config['PreloadImages'] =
+				sSkinPath + 'images/toolbar.start.gif' + ';' +
+				sSkinPath + 'images/toolbar.end.gif' + ';' +
+				sSkinPath + 'images/toolbar.bg.gif' + ';' +
+				sSkinPath + 'images/toolbar.buttonarrow.gif' ;
+			break ;
+
+		case 'silver' :
+			oFCKeditor.Config['PreloadImages'] =
+				sSkinPath + 'images/toolbar.start.gif' + ';' +
+				sSkinPath + 'images/toolbar.end.gif' + ';' +
+				sSkinPath + 'images/toolbar.buttonbg.gif' + ';' +
+				sSkinPath + 'images/toolbar.buttonarrow.gif' ;
+			break ;
+	}
+}
+
+oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample06.config.js	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample06.config.js	Thu May 29 16:22:22 2008 +0900
@@ -1,45 +1,49 @@
-/*
- * 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: sample06.config.js
- * 	Sample custom configuration settings used in the plugin sample page (sample06).
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-// Set our sample toolbar.
-FCKConfig.ToolbarSets['PluginTest'] = [
-	['SourceSimple'],
-	['My_Find','My_Replace','-','Placeholder'],
-	['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
-	['Table','-','TableInsertRow','TableDeleteRows','TableInsertColumn','TableDeleteColumns','TableInsertCell','TableDeleteCells','TableMergeCells','TableSplitCell'],
-	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
-	'/',
-	['My_BigStyle','-','About']
-] ;
-
-// Change the default plugin path.
-FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
-
-// Add our plugin to the plugins list.
-//		FCKConfig.Plugins.Add( pluginName, availableLanguages )
-//			pluginName: The plugin name. The plugin directory must match this name.
-//			availableLanguages: a list of available language files for the plugin (separated by a comma).
-FCKConfig.Plugins.Add( 'findreplace', 'en,it,fr' ) ;
-FCKConfig.Plugins.Add( 'samples' ) ;
-
-// If you want to use plugins found on other directories, just use the third parameter.
-var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
-FCKConfig.Plugins.Add( 'placeholder', 'en,it,de,fr', sOtherPluginPath ) ;
-FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
-FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample custom configuration settings used in the plugin sample page (sample06).
+ */
+
+// Set our sample toolbar.
+FCKConfig.ToolbarSets['PluginTest'] = [
+	['SourceSimple'],
+	['My_Find','My_Replace','-','Placeholder'],
+	['StyleSimple','FontFormatSimple','FontNameSimple','FontSizeSimple'],
+	['Table','-','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableCellProp'],
+	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink'],
+	'/',
+	['My_BigStyle','-','Smiley','-','About']
+] ;
+
+// Change the default plugin path.
+FCKConfig.PluginsPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + '_samples/_plugins/' ;
+
+// Add our plugin to the plugins list.
+//		FCKConfig.Plugins.Add( pluginName, availableLanguages )
+//			pluginName: The plugin name. The plugin directory must match this name.
+//			availableLanguages: a list of available language files for the plugin (separated by a comma).
+FCKConfig.Plugins.Add( 'findreplace', 'en,fr,it' ) ;
+FCKConfig.Plugins.Add( 'samples' ) ;
+
+// If you want to use plugins found on other directories, just use the third parameter.
+var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
+FCKConfig.Plugins.Add( 'placeholder', 'de,en,es,fr,it,pl', sOtherPluginPath ) ;
+FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath ) ;
+FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath ) ;
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample06.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample06.html	Thu May 29 16:22:22 2008 +0900
@@ -1,61 +1,73 @@
-<!--
- * 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: sample06.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - 6</h1>
-		This sample shows a sample plugin implementation.
-		<br>
-		These are sample "Find" and "Replace" plugin that do exactly the same thing that the built in ones do. Use the green toolbar buttons the test then.
-		<br>
-		There is also another sample plugin that is available in the package: the "Placeholder" command (use the yellow icon).
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/_samples/')+1) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-
-// Set the custom configurations file path (in this way the original file is mantained).
-oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample06.config.js' ;
-
-// Let's use a custom toolbar for this sample.
-oFCKeditor.ToolbarSet	= 'PluginTest' ;
-
-oFCKeditor.Value		= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - 6</h1>
+	<div>
+		This sample shows some sample plugins implementations. Things to note:<br />
+		<ul>
+			<li>In the toolbar, you will find sample "Find" and "Replace" plugins that do exactly
+				the same thing that the built in ones do. It just shows how to do that with a custom
+				implementation. Use the green toolbar buttons the test then. </li>
+			<li>There is also another sample plugin that is available in the package: the "Placeholder"
+				command (use the yellow icon). </li>
+			<li>It also shows a custom context menu option when right cliking on images (insert
+				a smiley to test it).</li>
+		</ul>
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+
+// Set the custom configurations file path (in this way the original file is mantained).
+oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample06.config.js' ;
+
+// Let's use a custom toolbar for this sample.
+oFCKeditor.ToolbarSet	= 'PluginTest' ;
+
+oFCKeditor.Value		= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample07.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample07.html	Thu May 29 16:22:22 2008 +0900
@@ -1,51 +1,59 @@
-<!--
- * 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: sample07.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 7</h1>
-		In this sample the user can edit the complete page contents and header (from 
-		&lt;HTML&gt; to &lt;/HTML&gt;).
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-oFCKeditor.Config['FullPage'] = true ;
-oFCKeditor.Value = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Full Page Test</title><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/></head><body>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</body></html>' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 7</h1>
+	<div>
+		In this sample the user can edit the complete page contents and header (from &lt;HTML&gt;
+		to &lt;/HTML&gt;).
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Config['FullPage'] = true ;
+oFCKeditor.Value = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Full Page Test<\/title><meta content="text/html; charset=utf-8" http-equiv="Content-Type"><\/head><body><p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.<\/body><\/html>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample08.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample08.html	Thu May 29 16:22:22 2008 +0900
@@ -1,182 +1,196 @@
-<!--
- * 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: sample08.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-		<script type="text/javascript">
-
-// FCKeditor_OnComplete is a special function that is called when an editor
-// instance is loaded ad available to the API. It must be named exactly in
-// this way.
-function FCKeditor_OnComplete( editorInstance )
-{
-	// Show the editor name and description in the browser status bar.
-	document.getElementById('eMessage').innerHTML = 'Instance "' + editorInstance.Name + '" loaded - ' + editorInstance.Description ;
-
-	// Show this sample buttons.
-	document.getElementById('eButtons').style.visibility = '' ;
-}
-
-function InsertHTML()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	// Check the active editing mode.
-	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
-	{
-		// Insert the desired HTML.
-		oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample</a> HTML -' ) ;
-	}
-	else
-		alert( 'You must be on WYSIWYG mode!' ) ;
-}
-
-function SetContents()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	// Set the editor contents (replace the actual one).
-	oEditor.SetHTML( 'This is the <b>new content</b> I want in the editor.' ) ;
-}
-
-function GetContents()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	// Get the editor contents in XHTML.
-	alert( oEditor.GetXHTML( true ) ) ;		// "true" means you want it formatted.
-}
-
-function ExecuteCommand( commandName )
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	// Execute the command.
-	oEditor.Commands.GetCommand( commandName ).Execute() ;
-}
-
-function GetLength()
-{
-	// This functions shows that you can interact directly with the editor area
-	// DOM. In this way you have the freedom to do anything you want with it.
-
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	// Get the Editor Area DOM (Document object).
-	var oDOM = oEditor.EditorDocument ;
-
-	var iLength ;
-
-	// The are two diffent ways to get the text (without HTML markups).
-	// It is browser specific.
-
-	if ( document.all )		// If Internet Explorer.
-	{
-		iLength = oDOM.body.innerText.length ;
-	}
-	else					// If Gecko.
-	{
-		var r = oDOM.createRange() ;
-		r.selectNodeContents( oDOM.body ) ;
-		iLength = r.toString().length ;
-	}
-
-	alert( 'Actual text length (without HTML markups): ' + iLength + ' characters' ) ;
-}
-
-function GetInnerHTML()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-
-	alert( oEditor.EditorDocument.body.innerHTML ) ;
-}
-
-function CheckIsDirty()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-	alert( oEditor.IsDirty() ) ;	
-}
-
-function ResetIsDirty()
-{
-	// Get the editor instance that we want to interact with.
-	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
-	oEditor.ResetIsDirty() ;	
-	alert( 'The "IsDirty" status has been reset' ) ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 8</h1>
-		This sample shows how to use the FCKeditor Javascript API to interact with the
-		editor at runtime.
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-oFCKeditor.Value	= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-		<div>&nbsp;</div>
-		<hr>
-		<div id="eMessage">&nbsp;</div>
-		<div>&nbsp;</div>
-		<div id="eButtons" style="VISIBILITY: hidden">
-			<input type="button" value="Insert HTML" onclick="InsertHTML();">
-			<input type="button" value="Set Editor Contents" onclick="SetContents();">
-			<input type="button" value="Get Editor Contents (XHTML)" onclick="GetContents();">
-			<br>
-			<br>
-			<input type="button" value='Execute "Bold" Command' onclick="ExecuteCommand('Bold');">
-			<input type="button" value='Execute "Link" Command' onclick="ExecuteCommand('Link');">
-			<br>
-			<br>
-			<input type="button" value="Interact with the Editor Area DOM" onclick="GetLength();">
-			<input type="button" value="Get innerHTML" onclick="GetInnerHTML();">
-			<br>
-			<br>
-			<input type="button" value="Check IsDirty()" onclick="CheckIsDirty();">
-			<input type="button" value="Reset IsDirty()" onclick="ResetIsDirty();">
-		</div>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+<!--
+// FCKeditor_OnComplete is a special function that is called when an editor
+// instance is loaded ad available to the API. It must be named exactly in
+// this way.
+function FCKeditor_OnComplete( editorInstance )
+{
+	// Show the editor name and description in the browser status bar.
+	document.getElementById('eMessage').innerHTML = 'Instance "' + editorInstance.Name + '" loaded - ' + editorInstance.Description ;
+
+	// Show this sample buttons.
+	document.getElementById('eButtons').style.visibility = '' ;
+}
+
+function InsertHTML()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	// Check the active editing mode.
+	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
+	{
+		// Insert the desired HTML.
+		oEditor.InsertHtml( '- This is some <a href="/Test1.html">sample<\/a> HTML -' ) ;
+	}
+	else
+		alert( 'You must be on WYSIWYG mode!' ) ;
+}
+
+function SetContents()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	// Set the editor contents (replace the actual one).
+	oEditor.SetData( 'This is the <b>new content<\/b> I want in the editor.' ) ;
+}
+
+function GetContents()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	// Get the editor contents in XHTML.
+	alert( oEditor.GetXHTML( true ) ) ;		// "true" means you want it formatted.
+}
+
+function ExecuteCommand( commandName )
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	// Execute the command.
+	oEditor.Commands.GetCommand( commandName ).Execute() ;
+}
+
+function GetLength()
+{
+	// This functions shows that you can interact directly with the editor area
+	// DOM. In this way you have the freedom to do anything you want with it.
+
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	// Get the Editor Area DOM (Document object).
+	var oDOM = oEditor.EditorDocument ;
+
+	var iLength ;
+
+	// The are two diffent ways to get the text (without HTML markups).
+	// It is browser specific.
+
+	if ( document.all )		// If Internet Explorer.
+	{
+		iLength = oDOM.body.innerText.length ;
+	}
+	else					// If Gecko.
+	{
+		var r = oDOM.createRange() ;
+		r.selectNodeContents( oDOM.body ) ;
+		iLength = r.toString().length ;
+	}
+
+	alert( 'Actual text length (without HTML markups): ' + iLength + ' characters' ) ;
+}
+
+function GetInnerHTML()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+
+	alert( oEditor.EditorDocument.body.innerHTML ) ;
+}
+
+function CheckIsDirty()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+	alert( oEditor.IsDirty() ) ;
+}
+
+function ResetIsDirty()
+{
+	// Get the editor instance that we want to interact with.
+	var oEditor = FCKeditorAPI.GetInstance('FCKeditor1') ;
+	oEditor.ResetIsDirty() ;
+	alert( 'The "IsDirty" status has been reset' ) ;
+}
+-->
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 8
+	</h1>
+	<div>
+		This sample shows how to use the FCKeditor JavaScript API to interact with the editor
+		at runtime.
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+	<div>
+		&nbsp;
+	</div>
+	<hr />
+	<div id="eMessage">
+		&nbsp;
+	</div>
+	<div>
+		&nbsp;
+	</div>
+	<div id="eButtons" style="visibility: hidden">
+		<input type="button" value="Insert HTML" onclick="InsertHTML();" />
+		<input type="button" value="Set Editor Contents" onclick="SetContents();" />
+		<input type="button" value="Get Editor Contents (XHTML)" onclick="GetContents();" />
+		<br />
+		<br />
+		<input type="button" value='Execute "Bold" Command' onclick="ExecuteCommand('Bold');" />
+		<input type="button" value='Execute "Link" Command' onclick="ExecuteCommand('Link');" />
+		<br />
+		<br />
+		<input type="button" value="Interact with the Editor Area DOM" onclick="GetLength();" />
+		<input type="button" value="Get innerHTML" onclick="GetInnerHTML();" />
+		<br />
+		<br />
+		<input type="button" value="Check IsDirty()" onclick="CheckIsDirty();" />
+		<input type="button" value="Reset IsDirty()" onclick="ResetIsDirty();" />
+	</div>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample09.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample09.html	Thu May 29 16:22:22 2008 +0900
@@ -1,96 +1,100 @@
-<!--
- * 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: sample09.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-		<script language="javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	editorInstance.Events.AttachEvent( 'OnBlur'	, FCKeditor_OnBlur ) ;
-	editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
-}
-
-function FCKeditor_OnBlur( editorInstance )
-{
-	editorInstance.ToolbarSet.Collapse() ;
-}
-
-function FCKeditor_OnFocus( editorInstance )
-{
-	editorInstance.ToolbarSet.Expand() ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 9</h1>
-		This sample shows FCKeditor in a more complex form with two different 
-		instances.<br>
-		It also shows and interesting way of using the "OnFocus" and "OnBlur" events 
-		available in the Javascript API (IE only).
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			Normal text field:<br>
-			<input name="NormaText" value="Plain Text">
-			<br>
-			<br>
-			FCKeditor with Basic toolbar:
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor_Basic' ) ;
-
-if ( document.all )
-	oFCKeditor.Config['ToolbarStartExpanded'] = false ;
-
-oFCKeditor.BasePath		= sBasePath ;
-oFCKeditor.ToolbarSet	= 'Basic' ;
-oFCKeditor.Value		= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			FCKeditor with Default toolbar:
-			<script type="text/javascript">
-<!--
-oFCKeditor = new FCKeditor( 'FCKeditor_Default' ) ;
-
-if ( document.all )
-	oFCKeditor.Config['ToolbarStartExpanded'] = false ;
-
-oFCKeditor.BasePath	= sBasePath ;
-oFCKeditor.Value	= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+	<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	editorInstance.Events.AttachEvent( 'OnBlur'	, FCKeditor_OnBlur ) ;
+	editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
+}
+
+function FCKeditor_OnBlur( editorInstance )
+{
+	editorInstance.ToolbarSet.Collapse() ;
+}
+
+function FCKeditor_OnFocus( editorInstance )
+{
+	editorInstance.ToolbarSet.Expand() ;
+}
+
+	</script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 9</h1>
+	<div>
+		This sample shows FCKeditor in a more complex form with two different instances.<br />
+		It also shows and interesting usage of the "OnFocus" and "OnBlur" events available
+		in the JavaScript API.
+	</div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		Normal text field:<br />
+		<input name="NormaText" value="Plain Text" />
+		<br />
+		<br />
+		FCKeditor with Basic toolbar:
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor_Basic' ) ;
+
+oFCKeditor.Config['ToolbarStartExpanded'] = false ;
+
+oFCKeditor.BasePath		= sBasePath ;
+oFCKeditor.ToolbarSet	= 'Basic' ;
+oFCKeditor.Value		= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		FCKeditor with Default toolbar:
+		<script type="text/javascript">
+<!--
+oFCKeditor = new FCKeditor( 'FCKeditor_Default' ) ;
+
+oFCKeditor.Config['ToolbarStartExpanded'] = false ;
+
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Value	= '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sample10.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sample10.html	Thu May 29 16:22:22 2008 +0900
@@ -1,52 +1,79 @@
-<!--
- * 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: sample10.html
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript" src="../../fckeditor.js"></script>
-	</head>
-	<body>
-		<h1>FCKeditor - Javascript - Sample 10</h1>
-		This sample is identical to Sample 1, but Safari support is enabled.
-		<hr>
-		<form action="sampleposteddata.asp" method="post" target="_blank">
-			<script type="text/javascript">
-<!--
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
-var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
-
-var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
-oFCKeditor.BasePath	= sBasePath ;
-oFCKeditor.Height	= 300 ;
-oFCKeditor.Value	= 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ;
-oFCKeditor.EnableSafari = true ;
-oFCKeditor.Create() ;
-//-->
-			</script>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Sample</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+	<script type="text/javascript" src="../../fckeditor.js"></script>
+</head>
+<body>
+	<h1>
+		FCKeditor - JavaScript - Sample 10</h1>
+	<div>
+		This sample shows a form with two FCKeditor instance. Both instances share the same
+		toolbar, available in the top.
+	</div>
+	<hr />
+	<div id="xToolbar"></div>
+	<hr />
+	<form action="sampleposteddata.asp" method="post" target="_blank">
+		Normal text field:<br />
+		<input name="NormaText" value="Plain Text" />
+		<br />
+		<br />
+		FCKeditor 1:
+		<script type="text/javascript">
+<!--
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
+
+var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Height = 100 ;
+oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		FCKeditor 2:
+		<script type="text/javascript">
+<!--
+oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ;
+oFCKeditor.BasePath	= sBasePath ;
+oFCKeditor.Height = 100 ;
+oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
+oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
+oFCKeditor.Create() ;
+//-->
+		</script>
+		<br />
+		<input type="submit" value="Submit" />
+	</form>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.asp	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.asp	Thu May 29 16:22:22 2008 +0900
@@ -1,44 +1,72 @@
-<!--
- * 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: sampleposteddata.asp
- * 	This page lists the data posted by a form.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td noWrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-			<% For Each sForm in Request.Form %>
-			<tr>
-				<td valign="top" nowrap><b><%=sForm%></b></td>
-				<td width="100%"><%=Replace( Server.HTMLEncode( Request.Form(sForm) ), Chr(13), "<br>" )%></td>
-			</tr>
-			<% Next %>
-		</table>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Samples - Posted Data</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+	<h1>
+		FCKeditor - Samples - Posted Data</h1>
+	<div>
+		This page lists all data posted by the form.
+	</div>
+	<hr />
+	<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
+		<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
+			<td style="white-space: nowrap;">
+				Field Name&nbsp;&nbsp;</td>
+			<td>
+				Value</td>
+		</tr>
+		<% For Each sForm in Request.Form %>
+		<tr>
+			<td valign="top" style="white-space: nowrap;">
+				<b>
+					<%=sForm%>
+				</b>
+			</td>
+			<td style="width: 100%;">
+				<pre><%=ModifyForOutput( Request.Form(sForm) )%></pre>
+			</td>
+		</tr>
+		<% Next %>
+	</table>
+</body>
+</html>
+<%
+
+' This function is useful only for this sample page se whe can display the
+' posted data accordingly. This processing is usually not done on real
+' applications, where the posted data must be saved on a DB or file. In those
+' cases, no processing must be done, and the data is saved as posted.
+Function ModifyForOutput( value )
+
+	ModifyForOutput = Server.HTMLEncode( value )
+
+End Function
+
+%>
--- a/wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/html/sampleposteddata.html	Thu May 29 16:22:22 2008 +0900
@@ -1,70 +1,80 @@
-<!--
- * 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: sampleposteddata.html
- * 	This page lists the data posted by a form. It uses the URL (GET data), 
- * 	so it's limited to 2KB of data.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form. It uses the "QueryString" to search for data
-		submitted using the "GET" method, so it is limited to 2KB.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td>Field</td>
-				<td>Value</td>
-			</tr>
-			<script type="text/javascript">
-<!--
-
-function HTMLEncode( text )
-{
-	text = text.replace(/&/g, "&amp;") ;
-	text = text.replace(/"/g, "&quot;") ;
-	text = text.replace(/</g, "&lt;") ;
-	text = text.replace(/>/g, "&gt;") ;
-	text = text.replace(/'/g, "&#39;") ;
-
-	return text ;
-}
-
-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] ;
-
-	document.write( '<tr>' ) ;
-	document.write( '<td valign="top" nowrap><b>' + sParamName + '</b></td>' ) ;
-	document.write( '<td width="100%">' + HTMLEncode( unescape( sParamValue.replace( /\+/g, ' ' ) ) ) + '</td>' ) ;
-	document.write( '</tr>' ) ;
-}
-
-//-->
-			</script>
-		</table>
-	</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form. It uses the URL (GET data),
+ * so it's limited to 2KB of data.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>FCKeditor - Samples - Posted Data</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta name="robots" content="noindex, nofollow" />
+	<link href="../sample.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+	<h1>
+		FCKeditor - Samples - Posted Data
+	</h1>
+	<div>
+		This page lists all data posted by the form. It uses the "QueryString" to search
+		for data submitted using the "GET" method, so it is limited to 2KB.
+	</div>
+	<hr />
+	<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
+		<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
+			<td style="white-space: nowrap;">
+				Field</td>
+			<td>
+				Value</td>
+		</tr>
+		<script type="text/javascript">
+<!--
+
+function HTMLEncode( text )
+{
+	text = text.replace(/&/g, "&amp;") ;
+	text = text.replace(/"/g, "&quot;") ;
+	text = text.replace(/</g, "&lt;") ;
+	text = text.replace(/>/g, "&gt;") ;
+	text = text.replace(/'/g, "&#39;") ;
+
+	return text ;
+}
+
+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] ;
+
+	document.write( '<tr>' ) ;
+	document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;
+	document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( decodeURIComponent( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;
+	document.write( '</tr>' ) ;
+}
+
+//-->
+		</script>
+	</table>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample01.lasso	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample01.lasso	Thu May 29 16:22:22 2008 +0900
@@ -1,51 +1,55 @@
-[//lasso
-/*
- * 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: sample01.lasso
- * 	Sample page.
- * 
- * File Authors:
- * 		Jason Huck (jason.huck@corefive.com)
- */
-]
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Lasso - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.lasso" method="post" target="_blank">
-[//lasso
-	include('../../fckeditor.lasso');
-	var('basepath') = response_filepath->split('_samples')->get(1);
-
-	var('myeditor') = fck_editor(
-		-instancename='FCKeditor1',
-		-basepath=$basepath,
-		-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
-	);
-	
-	$myeditor->create;
-]
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+[//lasso
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+]
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Lasso - Sample 1</h1>
+		This sample displays a normal HTML form with an FCKeditor with full features
+		enabled.
+		<hr>
+		<form action="sampleposteddata.lasso" method="post" target="_blank">
+[//lasso
+	include('../../fckeditor.lasso');
+	var('basepath') = response_filepath->split('_samples')->get(1);
+
+	var('myeditor') = fck_editor(
+		-instancename='FCKeditor1',
+		-basepath=$basepath,
+		-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
+	);
+
+	$myeditor->create;
+]
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample02.lasso	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample02.lasso	Thu May 29 16:22:22 2008 +0900
@@ -1,105 +1,109 @@
-[//lasso
-/*
- * 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: sample02.lasso
- * 	Sample page.
- * 
- * File Authors:
- * 		Jason Huck (jason.huck@corefive.com)
- */
-]
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-		<!--
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbLanguages' ) ;
-	for ( code in editorInstance.Language.AvailableLanguages )
-	{
-		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
-	}
-	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
-}	
-
-function AddComboOption(combo, optionText, optionValue)
-{
-	var oOption = document.createElement("OPTION") ;
-
-	combo.options.add(oOption) ;
-
-	oOption.innerHTML = optionText ;
-	oOption.value     = optionValue ;
-	
-	return oOption ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
-}
-		//-->
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Lasso - Sample 2</h1>
-		This sample shows the editor in all its available languages.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select a language:&nbsp;
-				</td>
-				<td>
-					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.lasso" method="post" target="_blank">
-[//lasso
-	include('../../fckeditor.lasso');
-	var('basepath') = response_filepath->split('_samples')->get(1);
-
-	if(action_param('Lang'));
-		var('config') = array(
-			'AutoDetectLanguage' = 'false',
-			'DefaultLanguage' = action_param('Lang')
-		);
-	else;
-		var('config') = array(
-			'AutoDetectLanguage' = 'true',
-			'DefaultLanguage' = 'en'
-		);
-	/if;
-
-	var('myeditor') = fck_editor(
-		-instancename='FCKeditor1',
-		-basepath=$basepath,
-		-config=$config,
-		-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
-	);
-	
-	$myeditor->create;
-]
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+[//lasso
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+]
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+		<!--
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+	for ( code in editorInstance.Language.AvailableLanguages )
+	{
+		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
+	}
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value     = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
+}
+		//-->
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Lasso - Sample 2</h1>
+		This sample shows the editor in all its available languages.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select a language:&nbsp;
+				</td>
+				<td>
+					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.lasso" method="post" target="_blank">
+[//lasso
+	include('../../fckeditor.lasso');
+	var('basepath') = response_filepath->split('_samples')->get(1);
+
+	if(action_param('Lang'));
+		var('config') = array(
+			'AutoDetectLanguage' = 'false',
+			'DefaultLanguage' = action_param('Lang')
+		);
+	else;
+		var('config') = array(
+			'AutoDetectLanguage' = 'true',
+			'DefaultLanguage' = 'en'
+		);
+	/if;
+
+	var('myeditor') = fck_editor(
+		-instancename='FCKeditor1',
+		-basepath=$basepath,
+		-config=$config,
+		-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
+	);
+
+	$myeditor->create;
+]
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample03.lasso	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample03.lasso	Thu May 29 16:22:22 2008 +0900
@@ -1,83 +1,87 @@
-[//lasso
-/*
- * 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: sample03.lasso
- * 	Sample page.
- * 
- * File Authors:
- * 		Jason Huck (jason.huck@corefive.com)
- */
-]
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-		<!--
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbToolbars' ) ;
-	oCombo.value = editorInstance.ToolbarSet.Name ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeToolbar( toolbarName )
-{
-	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
-}
-		//-->
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Lasso - Sample 3</h1>
-		This sample shows how to change the editor toolbar.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the toolbar to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
-						<option value="Default" selected>Default</option>
-						<option value="Basic">Basic</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.lasso" method="post" target="_blank">
-[//lasso
-	include('../../fckeditor.lasso');
-	var('basepath') = response_filepath->split('_samples')->get(1);
-
-	var('myeditor') = fck_editor(
-		-instancename='FCKeditor1',
-		-basepath=$basepath,
-		-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
-	);
-
-	if(action_param('Toolbar'));
-		$myeditor->toolbarset = action_param('Toolbar');
-	/if;
-	
-	$myeditor->create;
-]
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+[//lasso
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+]
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+		<!--
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbToolbars' ) ;
+	oCombo.value = editorInstance.ToolbarSet.Name ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeToolbar( toolbarName )
+{
+	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
+}
+		//-->
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Lasso - Sample 3</h1>
+		This sample shows how to change the editor toolbar.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the toolbar to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
+						<option value="Default" selected>Default</option>
+						<option value="Basic">Basic</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.lasso" method="post" target="_blank">
+[//lasso
+	include('../../fckeditor.lasso');
+	var('basepath') = response_filepath->split('_samples')->get(1);
+
+	var('myeditor') = fck_editor(
+		-instancename='FCKeditor1',
+		-basepath=$basepath,
+		-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
+	);
+
+	if(action_param('Toolbar'));
+		$myeditor->toolbarset = action_param('Toolbar');
+	/if;
+
+	$myeditor->create;
+]
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample04.lasso	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/lasso/sample04.lasso	Thu May 29 16:22:22 2008 +0900
@@ -1,89 +1,93 @@
-[//lasso
-/*
- * 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: sample04.lasso
- * 	Sample page.
- * 
- * File Authors:
- * 		Jason Huck (jason.huck@corefive.com)
- */
-]
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-		<!--
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbSkins' ) ;
-	
-	// Get the active skin.
-	var sSkin = editorInstance.Config['SkinPath'] ;
-	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
-	
-	oCombo.value = sSkin ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeSkin( skinName )
-{
-	window.location.href = window.location.pathname + "?Skin=" + skinName ;
-}
-		//-->
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Lasso - Sample 4</h1>
-		This sample shows how to change the editor skin.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the skin to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
-						<option value="default" selected>Default</option>
-						<option value="office2003">Office 2003</option>
-						<option value="silver">Silver</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.lasso" method="post" target="_blank">
-[//lasso
-	include('../../fckeditor.lasso');
-	var('basepath') = response_filepath->split('_samples')->get(1);
-
-	var('myeditor') = fck_editor(
-		-instancename='FCKeditor1',
-		-basepath=$basepath,
-		-initialvalue='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'
-	);
-	
-	if(action_param('Skin'));
-		$myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
-	/if;
-	
-	$myeditor->create;
-]
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
+[//lasso
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+]
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+		<!--
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbSkins' ) ;
+
+	// Get the active skin.
+	var sSkin = editorInstance.Config['SkinPath'] ;
+	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
+
+	oCombo.value = sSkin ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeSkin( skinName )
+{
+	window.location.href = window.location.pathname + "?Skin=" + skinName ;
+}
+		//-->
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Lasso - Sample 4</h1>
+		This sample shows how to change the editor skin.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the skin to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
+						<option value="default" selected>Default</option>
+						<option value="office2003">Office 2003</option>
+						<option value="silver">Silver</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.lasso" method="post" target="_blank">
+[//lasso
+	include('../../fckeditor.lasso');
+	var('basepath') = response_filepath->split('_samples')->get(1);
+
+	var('myeditor') = fck_editor(
+		-instancename='FCKeditor1',
+		-basepath=$basepath,
+		-initialvalue='<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>'
+	);
+
+	if(action_param('Skin'));
+		$myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/');
+	/if;
+
+	$myeditor->create;
+]
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/lasso/sampleposteddata.lasso	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/lasso/sampleposteddata.lasso	Thu May 29 16:22:22 2008 +0900
@@ -1,47 +1,50 @@
-[//lasso
-/*
- * 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: sampleposteddata.lasso
- * 	Sample page.
- * 
- * File Authors:
- * 		Jason Huck (jason.huck@corefive.com)
- * 		Jim Michaels (jmichae3@yahoo.com)
- */
-]
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td nowrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-[iterate(client_postparams, local('this'))]
-			<tr>
-				<td valign="top" nowrap><b>[#this->first]</b></td>
-				<td width="100%">[#this->second]</td>
-			</tr>
-[/iterate]
-		</table>
-	</body>
-</html>
+[//lasso
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+]
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td nowrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+[iterate(client_postparams, local('this'))]
+			<tr>
+				<td valign="top" nowrap><b>[#this->first]</b></td>
+				<td width="100%" style="white-space:pre">[#this->second]</td>
+			</tr>
+[/iterate]
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/perl/sample01.cgi	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/perl/sample01.cgi	Thu May 29 16:22:22 2008 +0900
@@ -1,111 +1,117 @@
-#!/usr/bin/env perl 
-
-#####
-#  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: sample01.cgi
-#  	Sample page.
-#  
-#  File Authors:
-#  		Takashi Yamaguchi (jack@omakase.net)
-#####
-
-## START: Hack for Windows (Not important to understand the editor code... Perl specific).
-if(Windows_check()) {
-	chdir(GetScriptPath($0));
-}
-
-sub Windows_check
-{
-	# IIS,PWS(NT/95)
-	$www_server_os = $^O;
-	# Win98 & NT(SP4)
-	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
-	# AnHTTPd/Omni/IIS
-	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
-	# Win Apache
-	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
-	if($www_server_os=~ /win/i) { return(1); }
-	return(0);
-}
-
-sub GetScriptPath {
-	local($path) = @_;
-	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
-	$path;
-}
-## END: Hack for IIS
-
-require '../../fckeditor.pl';
-
-# When $ENV{'PATH_INFO'} cannot be used by perl.
-# $DefRootPath = "/XXXXX/_samples/perl/sample01.cgi"; Please write in script.
-
-my $DefServerPath = "";
-my $ServerPath;
-
-	$ServerPath = &GetServerPath();
-	print "Content-type: text/html\n\n";
-	print <<"_HTML_TAG_";
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Perl - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.cgi" method="post" target="_blank">
-_HTML_TAG_
-
-	#// Automatically calculates the editor base path based on the _samples directory.
-	#// This is usefull only for these samples. A real application should use something like this:
-	#// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-
-	$sBasePath = $ServerPath;
-	$sBasePath = substr($sBasePath,0,index($sBasePath,"_samples"));
-	&FCKeditor('FCKeditor1');
-	$BasePath	= $sBasePath;
-	$Value		= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.';
-	&Create();
-
-	print <<"_HTML_TAG_";
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
-_HTML_TAG_
-
-################
-#Please use this function, rewriting it depending on a server's environment.
-################
-sub GetServerPath
-{
-my $dir;
-
-	if($DefServerPath) {
-		$dir = $DefServerPath;
-	} else {
-		if($ENV{'PATH_INFO'}) {
-			$dir  = $ENV{'PATH_INFO'};
-		} elsif($ENV{'FILEPATH_INFO'}) {
-			$dir  = $ENV{'FILEPATH_INFO'};
-		}
-	}
-	return($dir);
-}
+#!/usr/bin/env perl
+
+#####
+#  FCKeditor - The text editor for Internet - http://www.fckeditor.net
+#  Copyright (C) 2003-2008 Frederico Caldeira Knabben
+#
+#  == BEGIN LICENSE ==
+#
+#  Licensed under the terms of any of the following licenses at your
+#  choice:
+#
+#   - GNU General Public License Version 2 or later (the "GPL")
+#     http://www.gnu.org/licenses/gpl.html
+#
+#   - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+#     http://www.gnu.org/licenses/lgpl.html
+#
+#   - Mozilla Public License Version 1.1 or later (the "MPL")
+#     http://www.mozilla.org/MPL/MPL-1.1.html
+#
+#  == END LICENSE ==
+#
+#  Sample page.
+#####
+
+## START: Hack for Windows (Not important to understand the editor code... Perl specific).
+if(Windows_check()) {
+	chdir(GetScriptPath($0));
+}
+
+sub Windows_check
+{
+	# IIS,PWS(NT/95)
+	$www_server_os = $^O;
+	# Win98 & NT(SP4)
+	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
+	# AnHTTPd/Omni/IIS
+	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
+	# Win Apache
+	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
+	if($www_server_os=~ /win/i) { return(1); }
+	return(0);
+}
+
+sub GetScriptPath {
+	local($path) = @_;
+	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
+	$path;
+}
+## END: Hack for IIS
+
+require '../../fckeditor.pl';
+
+# When $ENV{'PATH_INFO'} cannot be used by perl.
+# $DefRootPath = "/XXXXX/_samples/perl/sample01.cgi"; Please write in script.
+
+my $DefServerPath = "";
+my $ServerPath;
+
+	$ServerPath = &GetServerPath();
+	print "Content-type: text/html\n\n";
+	print <<"_HTML_TAG_";
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Perl - Sample 1</h1>
+		This sample displays a normal HTML form with an FCKeditor with full features
+		enabled.
+		<hr>
+		<form action="sampleposteddata.cgi" method="post" target="_blank">
+_HTML_TAG_
+
+	#// Automatically calculates the editor base path based on the _samples directory.
+	#// This is usefull only for these samples. A real application should use something like this:
+	#// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+
+	$sBasePath = $ServerPath;
+	$sBasePath = substr($sBasePath,0,index($sBasePath,"_samples"));
+	&FCKeditor('FCKeditor1');
+	$BasePath	= $sBasePath;
+	$Value		= '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>';
+	&Create();
+
+	print <<"_HTML_TAG_";
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
+_HTML_TAG_
+
+################
+#Please use this function, rewriting it depending on a server's environment.
+################
+sub GetServerPath
+{
+my $dir;
+
+	if($DefServerPath) {
+		$dir = $DefServerPath;
+	} else {
+		if($ENV{'PATH_INFO'}) {
+			$dir  = $ENV{'PATH_INFO'};
+		} elsif($ENV{'FILEPATH_INFO'}) {
+			$dir  = $ENV{'FILEPATH_INFO'};
+		} elsif($ENV{'REQUEST_URI'}) {
+			$dir  = $ENV{'REQUEST_URI'};
+		}
+	}
+	return($dir);
+}
--- a/wiki/htdocs/applets/FCKeditor/_samples/perl/sample02.cgi	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/perl/sample02.cgi	Thu May 29 16:22:22 2008 +0900
@@ -1,176 +1,182 @@
-#!/usr/bin/env perl 
-
-#####
-#  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: sample02.cgi
-#  	Sample page.
-#  
-#  File Authors:
-#  		Takashi Yamaguchi (jack@omakase.net)
-#####
-
-## START: Hack for Windows (Not important to understand the editor code... Perl specific).
-if(Windows_check()) {
-	chdir(GetScriptPath($0));
-}
-
-sub Windows_check
-{
-	# IIS,PWS(NT/95)
-	$www_server_os = $^O;
-	# Win98 & NT(SP4)
-	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
-	# AnHTTPd/Omni/IIS
-	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
-	# Win Apache
-	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
-	if($www_server_os=~ /win/i) { return(1); }
-	return(0);
-}
-
-sub GetScriptPath {
-	local($path) = @_;
-	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
-	$path;
-}
-## END: Hack for IIS
-
-require '../../fckeditor.pl';
-
-# When $ENV{'PATH_INFO'} cannot be used by perl.
-# $DefRootPath = "/XXXXX/_samples/perl/sample02.cgi"; Please write in script.
-
-my $DefServerPath = "";
-my $ServerPath;
-
-	$ServerPath = &GetServerPath();
-
-	if($ENV{'REQUEST_METHOD'} eq "POST") {
-		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
-	} else {
-		$buffer = $ENV{'QUERY_STRING'};
-	}
-	@pairs = split(/&/,$buffer);
-	foreach $pair (@pairs) {
-		($name,$value) = split(/=/,$pair);
-		$value =~ tr/+/ /;
-		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
-		$value =~ s/\t//g;
-		$value =~ s/\r\n/\n/g;
-		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
-		$FORM{$name} .= $value;
-	}
-
-	print "Content-type: text/html\n\n";
-	print <<"_HTML_TAG_";
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbLanguages' ) ;
-	for ( code in editorInstance.Language.AvailableLanguages )
-	{
-		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
-	}
-	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
-}	
-
-function AddComboOption(combo, optionText, optionValue)
-{
-	var oOption = document.createElement("OPTION") ;
-
-	combo.options.add(oOption) ;
-
-	oOption.innerHTML = optionText ;
-	oOption.value	  = optionValue ;
-	
-	return oOption ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
-}
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Perl - Sample 2</h1>
-		This sample shows the editor in all its available languages.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select a language:&nbsp;
-				</td>
-				<td>
-					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.cgi" method="post" target="_blank">
-_HTML_TAG_
-
-	#// Automatically calculates the editor base path based on the _samples directory.
-	#// This is usefull only for these samples. A real application should use something like this:
-	#// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-	$sBasePath = $ServerPath;
-	$sBasePath = substr( $sBasePath, 0, index($sBasePath,"_samples"));
-
-	&FCKeditor('FCKeditor1');
-	$BasePath = $sBasePath;
-
-	if($FORM{'Lang'} ne "") {
-		$Config{'AutoDetectLanguage'}	= "false";
-		$Config{'DefaultLanguage'}		= $FORM{'Lang'};
-	} else {
-		$Config{'AutoDetectLanguage'}	= "true";
-		$Config{'DefaultLanguage'}		= 'en' ;
-	}
-	$Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-	&Create();
-
-	print <<"_HTML_TAG_";
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
-_HTML_TAG_
-
-################
-#Please use this function, rewriting it depending on a server's environment.
-################
-sub GetServerPath
-{
-my $dir;
-
-	if($DefServerPath) {
-		$dir = $DefServerPath;
-	} else {
-		if($ENV{'PATH_INFO'}) {
-			$dir  = $ENV{'PATH_INFO'};
-		} elsif($ENV{'FILEPATH_INFO'}) {
-			$dir  = $ENV{'FILEPATH_INFO'};
-		}
-	}
-	return($dir);
-}
+#!/usr/bin/env perl
+
+#####
+#  FCKeditor - The text editor for Internet - http://www.fckeditor.net
+#  Copyright (C) 2003-2008 Frederico Caldeira Knabben
+#
+#  == BEGIN LICENSE ==
+#
+#  Licensed under the terms of any of the following licenses at your
+#  choice:
+#
+#   - GNU General Public License Version 2 or later (the "GPL")
+#     http://www.gnu.org/licenses/gpl.html
+#
+#   - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+#     http://www.gnu.org/licenses/lgpl.html
+#
+#   - Mozilla Public License Version 1.1 or later (the "MPL")
+#     http://www.mozilla.org/MPL/MPL-1.1.html
+#
+#  == END LICENSE ==
+#
+#  Sample page.
+#####
+
+## START: Hack for Windows (Not important to understand the editor code... Perl specific).
+if(Windows_check()) {
+	chdir(GetScriptPath($0));
+}
+
+sub Windows_check
+{
+	# IIS,PWS(NT/95)
+	$www_server_os = $^O;
+	# Win98 & NT(SP4)
+	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
+	# AnHTTPd/Omni/IIS
+	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
+	# Win Apache
+	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
+	if($www_server_os=~ /win/i) { return(1); }
+	return(0);
+}
+
+sub GetScriptPath {
+	local($path) = @_;
+	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
+	$path;
+}
+## END: Hack for IIS
+
+require '../../fckeditor.pl';
+
+# When $ENV{'PATH_INFO'} cannot be used by perl.
+# $DefRootPath = "/XXXXX/_samples/perl/sample02.cgi"; Please write in script.
+
+my $DefServerPath = "";
+my $ServerPath;
+
+	$ServerPath = &GetServerPath();
+
+	if($ENV{'REQUEST_METHOD'} eq "POST") {
+		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
+	} else {
+		$buffer = $ENV{'QUERY_STRING'};
+	}
+	@pairs = split(/&/,$buffer);
+	foreach $pair (@pairs) {
+		($name,$value) = split(/=/,$pair);
+		$value =~ tr/+/ /;
+		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
+		$value =~ s/\t//g;
+		$value =~ s/\r\n/\n/g;
+		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
+		$FORM{$name} .= $value;
+	}
+
+	print "Content-type: text/html\n\n";
+	print <<"_HTML_TAG_";
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+	for ( code in editorInstance.Language.AvailableLanguages )
+	{
+		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
+	}
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value	  = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
+}
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Perl - Sample 2</h1>
+		This sample shows the editor in all its available languages.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select a language:&nbsp;
+				</td>
+				<td>
+					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.cgi" method="post" target="_blank">
+_HTML_TAG_
+
+	#// Automatically calculates the editor base path based on the _samples directory.
+	#// This is usefull only for these samples. A real application should use something like this:
+	#// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+	$sBasePath = $ServerPath;
+	$sBasePath = substr( $sBasePath, 0, index($sBasePath,"_samples"));
+
+	&FCKeditor('FCKeditor1');
+	$BasePath = $sBasePath;
+
+	if($FORM{'Lang'} ne "") {
+		$Config{'AutoDetectLanguage'}	= "false";
+		$Config{'DefaultLanguage'}		= $FORM{'Lang'};
+	} else {
+		$Config{'AutoDetectLanguage'}	= "true";
+		$Config{'DefaultLanguage'}		= 'en' ;
+	}
+	$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+	&Create();
+
+	print <<"_HTML_TAG_";
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
+_HTML_TAG_
+
+################
+#Please use this function, rewriting it depending on a server's environment.
+################
+sub GetServerPath
+{
+my $dir;
+
+	if($DefServerPath) {
+		$dir = $DefServerPath;
+	} else {
+		if($ENV{'PATH_INFO'}) {
+			$dir  = $ENV{'PATH_INFO'};
+		} elsif($ENV{'FILEPATH_INFO'}) {
+			$dir  = $ENV{'FILEPATH_INFO'};
+		} elsif($ENV{'REQUEST_URI'}) {
+			$dir  = $ENV{'REQUEST_URI'};
+		}
+	}
+	return($dir);
+}
--- a/wiki/htdocs/applets/FCKeditor/_samples/perl/sample03.cgi	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/perl/sample03.cgi	Thu May 29 16:22:22 2008 +0900
@@ -1,161 +1,167 @@
-#!/usr/bin/env perl 
-
-#####
-#  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: sample03.cgi
-#  	Sample page.
-#  
-#  File Authors:
-#  		Takashi Yamaguchi (jack@omakase.net)
-#####
-
-## START: Hack for Windows (Not important to understand the editor code... Perl specific).
-if(Windows_check()) {
-	chdir(GetScriptPath($0));
-}
-
-sub Windows_check
-{
-	# IIS,PWS(NT/95)
-	$www_server_os = $^O;
-	# Win98 & NT(SP4)
-	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
-	# AnHTTPd/Omni/IIS
-	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
-	# Win Apache
-	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
-	if($www_server_os=~ /win/i) { return(1); }
-	return(0);
-}
-
-sub GetScriptPath {
-	local($path) = @_;
-	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
-	$path;
-}
-## END: Hack for IIS
-
-require '../../fckeditor.pl';
-
-# When $ENV{'PATH_INFO'} cannot be used by perl.
-# $DefRootPath = "/XXXXX/_samples/perl/sample03.cgi"; Please write in script.
-
-my $DefServerPath = "";
-my $ServerPath;
-
-	$ServerPath = &GetServerPath();
-
-	if($ENV{'REQUEST_METHOD'} eq "POST") {
-		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
-	} else {
-		$buffer = $ENV{'QUERY_STRING'};
-	}
-	@pairs = split(/&/,$buffer);
-	foreach $pair (@pairs) {
-		($name,$value) = split(/=/,$pair);
-		$value =~ tr/+/ /;
-		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
-		$value =~ s/\t//g;
-		$value =~ s/\r\n/\n/g;
-		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
-		$FORM{$name} .= $value;
-	}
-
-	print "Content-type: text/html\n\n";
-	print <<"_HTML_TAG_";
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbToolbars' ) ;
-	oCombo.value = editorInstance.ToolbarSet.Name ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeToolbar( toolbarName )
-{
-	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Perl - Sample 3</h1>
-		This sample shows how to change the editor toolbar.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the toolbar to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
-						<option value="Default" selected>Default</option>
-						<option value="Basic">Basic</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.cgi" method="post" target="_blank">
-_HTML_TAG_
-
-	#// Automatically calculates the editor base path based on the _samples directory.
-	#// This is usefull only for these samples. A real application should use something like this:
-	#// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-
-	$sBasePath = $ServerPath;
-	$sBasePath = substr($sBasePath, 0, index( $sBasePath, "_samples" ));
-
-	&FCKeditor('FCKeditor1') ;
-	$BasePath = $sBasePath ;
-
-	if($FORM{'Toolbar'} ne "") {
-		$ToolbarSet = $FORM{'Toolbar'};
-	}
-	$Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-	&Create();
-
-	print <<"_HTML_TAG_";
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
-_HTML_TAG_
-
-################
-#Please use this function, rewriting it depending on a server's environment.
-################
-sub GetServerPath
-{
-my $dir;
-
-	if($DefServerPath) {
-		$dir = $DefServerPath;
-	} else {
-		if($ENV{'PATH_INFO'}) {
-			$dir  = $ENV{'PATH_INFO'};
-		} elsif($ENV{'FILEPATH_INFO'}) {
-			$dir  = $ENV{'FILEPATH_INFO'};
-		}
-	}
-	return($dir);
-}
+#!/usr/bin/env perl
+
+#####
+#  FCKeditor - The text editor for Internet - http://www.fckeditor.net
+#  Copyright (C) 2003-2008 Frederico Caldeira Knabben
+#
+#  == BEGIN LICENSE ==
+#
+#  Licensed under the terms of any of the following licenses at your
+#  choice:
+#
+#   - GNU General Public License Version 2 or later (the "GPL")
+#     http://www.gnu.org/licenses/gpl.html
+#
+#   - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+#     http://www.gnu.org/licenses/lgpl.html
+#
+#   - Mozilla Public License Version 1.1 or later (the "MPL")
+#     http://www.mozilla.org/MPL/MPL-1.1.html
+#
+#  == END LICENSE ==
+#
+#  Sample page.
+#####
+
+## START: Hack for Windows (Not important to understand the editor code... Perl specific).
+if(Windows_check()) {
+	chdir(GetScriptPath($0));
+}
+
+sub Windows_check
+{
+	# IIS,PWS(NT/95)
+	$www_server_os = $^O;
+	# Win98 & NT(SP4)
+	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
+	# AnHTTPd/Omni/IIS
+	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
+	# Win Apache
+	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
+	if($www_server_os=~ /win/i) { return(1); }
+	return(0);
+}
+
+sub GetScriptPath {
+	local($path) = @_;
+	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
+	$path;
+}
+## END: Hack for IIS
+
+require '../../fckeditor.pl';
+
+# When $ENV{'PATH_INFO'} cannot be used by perl.
+# $DefRootPath = "/XXXXX/_samples/perl/sample03.cgi"; Please write in script.
+
+my $DefServerPath = "";
+my $ServerPath;
+
+	$ServerPath = &GetServerPath();
+
+	if($ENV{'REQUEST_METHOD'} eq "POST") {
+		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
+	} else {
+		$buffer = $ENV{'QUERY_STRING'};
+	}
+	@pairs = split(/&/,$buffer);
+	foreach $pair (@pairs) {
+		($name,$value) = split(/=/,$pair);
+		$value =~ tr/+/ /;
+		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
+		$value =~ s/\t//g;
+		$value =~ s/\r\n/\n/g;
+		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
+		$FORM{$name} .= $value;
+	}
+
+	print "Content-type: text/html\n\n";
+	print <<"_HTML_TAG_";
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbToolbars' ) ;
+	oCombo.value = editorInstance.ToolbarSet.Name ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeToolbar( toolbarName )
+{
+	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Perl - Sample 3</h1>
+		This sample shows how to change the editor toolbar.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the toolbar to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
+						<option value="Default" selected>Default</option>
+						<option value="Basic">Basic</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.cgi" method="post" target="_blank">
+_HTML_TAG_
+
+	#// Automatically calculates the editor base path based on the _samples directory.
+	#// This is usefull only for these samples. A real application should use something like this:
+	#// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+
+	$sBasePath = $ServerPath;
+	$sBasePath = substr($sBasePath, 0, index( $sBasePath, "_samples" ));
+
+	&FCKeditor('FCKeditor1') ;
+	$BasePath = $sBasePath ;
+
+	if($FORM{'Toolbar'} ne "") {
+		$ToolbarSet = &specialchar_cnv( $FORM{'Toolbar'} );
+	}
+	$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+	&Create();
+
+	print <<"_HTML_TAG_";
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
+_HTML_TAG_
+
+################
+#Please use this function, rewriting it depending on a server's environment.
+################
+sub GetServerPath
+{
+my $dir;
+
+	if($DefServerPath) {
+		$dir = $DefServerPath;
+	} else {
+		if($ENV{'PATH_INFO'}) {
+			$dir  = $ENV{'PATH_INFO'};
+		} elsif($ENV{'FILEPATH_INFO'}) {
+			$dir  = $ENV{'FILEPATH_INFO'};
+		} elsif($ENV{'REQUEST_URI'}) {
+			$dir  = $ENV{'REQUEST_URI'};
+		}
+	}
+	return($dir);
+}
--- a/wiki/htdocs/applets/FCKeditor/_samples/perl/sample04.cgi	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/perl/sample04.cgi	Thu May 29 16:22:22 2008 +0900
@@ -1,168 +1,174 @@
-#!/usr/bin/env perl 
-
-#####
-#  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: sample04.cgi
-#  	Sample page.
-#  
-#  File Authors:
-#  		Takashi Yamaguchi (jack@omakase.net)
-#####
-
-## START: Hack for Windows (Not important to understand the editor code... Perl specific).
-if(Windows_check()) {
-	chdir(GetScriptPath($0));
-}
-
-sub Windows_check
-{
-	# IIS,PWS(NT/95)
-	$www_server_os = $^O;
-	# Win98 & NT(SP4)
-	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
-	# AnHTTPd/Omni/IIS
-	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
-	# Win Apache
-	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
-	if($www_server_os=~ /win/i) { return(1); }
-	return(0);
-}
-
-sub GetScriptPath {
-	local($path) = @_;
-	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
-	$path;
-}
-## END: Hack for IIS
-
-require '../../fckeditor.pl';
-
-# When $ENV{'PATH_INFO'} cannot be used by perl.
-# $DefRootPath = "/XXXXX/_samples/perl/sample04.cgi"; Please write in script.
-
-my $DefServerPath = "";
-my $ServerPath;
-
-	$ServerPath = &GetServerPath();
-
-	if($ENV{'REQUEST_METHOD'} eq "POST") {
-		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
-	} else {
-		$buffer = $ENV{'QUERY_STRING'};
-	}
-	@pairs = split(/&/,$buffer);
-	foreach $pair (@pairs) {
-		($name,$value) = split(/=/,$pair);
-		$value =~ tr/+/ /;
-		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
-		$value =~ s/\t//g;
-		$value =~ s/\r\n/\n/g;
-		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
-		$FORM{$name} .= $value;
-	}
-
-#!!Caution javascript \ Quart
-
-	print "Content-type: text/html\n\n";
-	print <<"_HTML_TAG_";
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbSkins' ) ;
-
-	// Get the active skin.
-	var sSkin = editorInstance.Config['SkinPath'] ;
-	sSkin = sSkin.match(/[^\\/]+(?=\\/\$)/g) ;
-
-	oCombo.value = sSkin ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeSkin( skinName )
-{
-	window.location.href = window.location.pathname + "?Skin=" + skinName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - Perl - Sample 4</h1>
-		This sample shows how to change the editor skin.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the skin to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
-						<option value="default" selected>Default</option>
-						<option value="office2003">Office 2003</option>
-						<option value="silver">Silver</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.cgi" method="post" target="_blank">
-_HTML_TAG_
-
-	#// Automatically calculates the editor base path based on the _samples directory.
-	#// This is usefull only for these samples. A real application should use something like this:
-	#// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-	$sBasePath = $ServerPath;
-	$sBasePath = substr( $sBasePath, 0, index( $sBasePath, "_samples" ) ) ;
-
-	&FCKeditor('FCKeditor1');
-	$BasePath = $sBasePath;
-
-	if($FORM{'Skin'} ne "") {
-		$Config{'SkinPath'} = $sBasePath . 'editor/skins/' . $FORM{'Skin'} . '/' ;
-	}
-	$Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-	&Create() ;
-
-	print <<"_HTML_TAG_";
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
-_HTML_TAG_
-
-################
-#Please use this function, rewriting it depending on a server's environment.
-################
-sub GetServerPath
-{
-my $dir;
-
-	if($DefServerPath) {
-		$dir = $DefServerPath;
-	} else {
-		if($ENV{'PATH_INFO'}) {
-			$dir  = $ENV{'PATH_INFO'};
-		} elsif($ENV{'FILEPATH_INFO'}) {
-			$dir  = $ENV{'FILEPATH_INFO'};
-		}
-	}
-	return($dir);
-}
+#!/usr/bin/env perl
+
+#####
+#  FCKeditor - The text editor for Internet - http://www.fckeditor.net
+#  Copyright (C) 2003-2008 Frederico Caldeira Knabben
+#
+#  == BEGIN LICENSE ==
+#
+#  Licensed under the terms of any of the following licenses at your
+#  choice:
+#
+#   - GNU General Public License Version 2 or later (the "GPL")
+#     http://www.gnu.org/licenses/gpl.html
+#
+#   - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+#     http://www.gnu.org/licenses/lgpl.html
+#
+#   - Mozilla Public License Version 1.1 or later (the "MPL")
+#     http://www.mozilla.org/MPL/MPL-1.1.html
+#
+#  == END LICENSE ==
+#
+#  Sample page.
+#####
+
+## START: Hack for Windows (Not important to understand the editor code... Perl specific).
+if(Windows_check()) {
+	chdir(GetScriptPath($0));
+}
+
+sub Windows_check
+{
+	# IIS,PWS(NT/95)
+	$www_server_os = $^O;
+	# Win98 & NT(SP4)
+	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
+	# AnHTTPd/Omni/IIS
+	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
+	# Win Apache
+	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
+	if($www_server_os=~ /win/i) { return(1); }
+	return(0);
+}
+
+sub GetScriptPath {
+	local($path) = @_;
+	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
+	$path;
+}
+## END: Hack for IIS
+
+require '../../fckeditor.pl';
+
+# When $ENV{'PATH_INFO'} cannot be used by perl.
+# $DefRootPath = "/XXXXX/_samples/perl/sample04.cgi"; Please write in script.
+
+my $DefServerPath = "";
+my $ServerPath;
+
+	$ServerPath = &GetServerPath();
+
+	if($ENV{'REQUEST_METHOD'} eq "POST") {
+		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
+	} else {
+		$buffer = $ENV{'QUERY_STRING'};
+	}
+	@pairs = split(/&/,$buffer);
+	foreach $pair (@pairs) {
+		($name,$value) = split(/=/,$pair);
+		$value =~ tr/+/ /;
+		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
+		$value =~ s/\t//g;
+		$value =~ s/\r\n/\n/g;
+		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
+		$FORM{$name} .= $value;
+	}
+
+#!!Caution javascript \ Quart
+
+	print "Content-type: text/html\n\n";
+	print <<"_HTML_TAG_";
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbSkins' ) ;
+
+	// Get the active skin.
+	var sSkin = editorInstance.Config['SkinPath'] ;
+	sSkin = sSkin.match(/[^\\/]+(?=\\/\$)/g) ;
+
+	oCombo.value = sSkin ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeSkin( skinName )
+{
+	window.location.href = window.location.pathname + "?Skin=" + skinName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - Perl - Sample 4</h1>
+		This sample shows how to change the editor skin.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the skin to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
+						<option value="default" selected>Default</option>
+						<option value="office2003">Office 2003</option>
+						<option value="silver">Silver</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.cgi" method="post" target="_blank">
+_HTML_TAG_
+
+	#// Automatically calculates the editor base path based on the _samples directory.
+	#// This is usefull only for these samples. A real application should use something like this:
+	#// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+	$sBasePath = $ServerPath;
+	$sBasePath = substr( $sBasePath, 0, index( $sBasePath, "_samples" ) ) ;
+
+	&FCKeditor('FCKeditor1');
+	$BasePath = $sBasePath;
+
+	if($FORM{'Skin'} ne "") {
+		$Config{'SkinPath'} = $sBasePath . 'editor/skins/' . &specialchar_cnv( $FORM{'Skin'} ) . '/' ;
+	}
+	$Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+	&Create() ;
+
+	print <<"_HTML_TAG_";
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
+_HTML_TAG_
+
+################
+#Please use this function, rewriting it depending on a server's environment.
+################
+sub GetServerPath
+{
+my $dir;
+
+	if($DefServerPath) {
+		$dir = $DefServerPath;
+	} else {
+		if($ENV{'PATH_INFO'}) {
+			$dir  = $ENV{'PATH_INFO'};
+		} elsif($ENV{'FILEPATH_INFO'}) {
+			$dir  = $ENV{'FILEPATH_INFO'};
+		} elsif($ENV{'REQUEST_URI'}) {
+			$dir  = $ENV{'REQUEST_URI'};
+		}
+	}
+	return($dir);
+}
--- a/wiki/htdocs/applets/FCKeditor/_samples/perl/sampleposteddata.cgi	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/perl/sampleposteddata.cgi	Thu May 29 16:22:22 2008 +0900
@@ -1,101 +1,105 @@
-#!/usr/bin/env perl 
-
-#####
-#  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: sampleposteddata.cgi
-#  	This page lists the data posted by a form.
-#  
-#  File Authors:
-#  		Takashi Yamaguchi (jack@omakase.net)
-#####
-
-## START: Hack for Windows (Not important to understand the editor code... Perl specific).
-if(Windows_check()) {
-	chdir(GetScriptPath($0));
-}
-
-sub Windows_check
-{
-	# IIS,PWS(NT/95)
-	$www_server_os = $^O;
-	# Win98 & NT(SP4)
-	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
-	# AnHTTPd/Omni/IIS
-	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
-	# Win Apache
-	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
-	if($www_server_os=~ /win/i) { return(1); }
-	return(0);
-}
-
-sub GetScriptPath {
-	local($path) = @_;
-	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
-	$path;
-}
-## END: Hack for IIS
-
-require '../../fckeditor.pl';
-
-	if($ENV{'REQUEST_METHOD'} eq "POST") {
-		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
-	} else {
-		$buffer = $ENV{'QUERY_STRING'};
-	}
-	@pairs = split(/&/,$buffer);
-	foreach $pair (@pairs) {
-		($name,$value) = split(/=/,$pair);
-		$value =~ tr/+/ /;
-		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
-		$value =~ s/\t//g;
-		$value =~ s/\r\n/\n/g;
-		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
-		$FORM{$name} .= $value;
-	}
-
-	print "Content-type: text/html\n\n";
-	print <<"_HTML_TAG_";
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td nowrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-_HTML_TAG_
-
-	foreach $key (keys %FORM) {
-		$postedValue = &specialchar_cnv($FORM{$key});
-		print <<"_HTML_TAG_";
-			<tr>
-				<td valign="top" nowrap><b>$key</b></td>
-				<td width="100%">$postedValue</td>
-			</tr>
-_HTML_TAG_
-	}
-		print <<"_HTML_TAG_";
-		</table>
-	</body>
-</html>
-_HTML_TAG_
+#!/usr/bin/env perl
+
+#####
+#  FCKeditor - The text editor for Internet - http://www.fckeditor.net
+#  Copyright (C) 2003-2008 Frederico Caldeira Knabben
+#
+#  == BEGIN LICENSE ==
+#
+#  Licensed under the terms of any of the following licenses at your
+#  choice:
+#
+#   - GNU General Public License Version 2 or later (the "GPL")
+#     http://www.gnu.org/licenses/gpl.html
+#
+#   - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+#     http://www.gnu.org/licenses/lgpl.html
+#
+#   - Mozilla Public License Version 1.1 or later (the "MPL")
+#     http://www.mozilla.org/MPL/MPL-1.1.html
+#
+#  == END LICENSE ==
+#
+#  This page lists the data posted by a form.
+#####
+
+## START: Hack for Windows (Not important to understand the editor code... Perl specific).
+if(Windows_check()) {
+	chdir(GetScriptPath($0));
+}
+
+sub Windows_check
+{
+	# IIS,PWS(NT/95)
+	$www_server_os = $^O;
+	# Win98 & NT(SP4)
+	if($www_server_os eq "") { $www_server_os= $ENV{'OS'}; }
+	# AnHTTPd/Omni/IIS
+	if($ENV{'SERVER_SOFTWARE'} =~ /AnWeb|Omni|IIS\//i) { $www_server_os= 'win'; }
+	# Win Apache
+	if($ENV{'WINDIR'} ne "") { $www_server_os= 'win'; }
+	if($www_server_os=~ /win/i) { return(1); }
+	return(0);
+}
+
+sub GetScriptPath {
+	local($path) = @_;
+	if($path =~ /[\:\/\\]/) { $path =~ s/(.*?)[\/\\][^\/\\]+$/$1/; } else { $path = '.'; }
+	$path;
+}
+## END: Hack for IIS
+
+require '../../fckeditor.pl';
+
+	if($ENV{'REQUEST_METHOD'} eq "POST") {
+		read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
+	} else {
+		$buffer = $ENV{'QUERY_STRING'};
+	}
+	@pairs = split(/&/,$buffer);
+	foreach $pair (@pairs) {
+		($name,$value) = split(/=/,$pair);
+		$value =~ tr/+/ /;
+		$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
+		$value =~ s/\t//g;
+		$value =~ s/\r\n/\n/g;
+		$FORM{$name} .= "\0"			if(defined($FORM{$name}));
+		$FORM{$name} .= $value;
+	}
+
+	print "Content-type: text/html\n\n";
+	print <<"_HTML_TAG_";
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
+<html>
+	<head>
+		<title>FCKeditor - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td nowrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+_HTML_TAG_
+
+	foreach $key (keys %FORM) {
+		$postedValue = &specialchar_cnv($FORM{$key});
+		print <<"_HTML_TAG_";
+			<tr>
+				<td valign="top" nowrap><b>$key</b></td>
+				<td width="100%" style="white-space:pre">$postedValue</td>
+			</tr>
+_HTML_TAG_
+	}
+		print <<"_HTML_TAG_";
+		</table>
+	</body>
+</html>
+_HTML_TAG_
--- a/wiki/htdocs/applets/FCKeditor/_samples/php/sample01.php	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/php/sample01.php	Thu May 29 16:22:22 2008 +0900
@@ -1,53 +1,57 @@
-<?php 
-/*
- * 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: sample01.php
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-include("../../fckeditor.php") ;
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - PHP - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.php" method="post" target="_blank">
-<?php
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-$sBasePath = $_SERVER['PHP_SELF'] ;
-$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
-
-$oFCKeditor = new FCKeditor('FCKeditor1') ;
-$oFCKeditor->BasePath	= $sBasePath ;
-$oFCKeditor->Value		= 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-$oFCKeditor->Create() ;
-?>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<?php
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+
+include("../../fckeditor.php") ;
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - PHP - Sample 1</h1>
+		This sample displays a normal HTML form with an FCKeditor with full features
+		enabled.
+		<hr>
+		<form action="sampleposteddata.php" method="post" target="_blank">
+<?php
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+$sBasePath = $_SERVER['PHP_SELF'] ;
+$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
+
+$oFCKeditor = new FCKeditor('FCKeditor1') ;
+$oFCKeditor->BasePath	= $sBasePath ;
+$oFCKeditor->Value		= '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+$oFCKeditor->Create() ;
+?>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/php/sample02.php	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/php/sample02.php	Thu May 29 16:22:22 2008 +0900
@@ -1,104 +1,108 @@
-<?php 
-/*
- * 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: sample02.php
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-include("../../fckeditor.php") ;
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbLanguages' ) ;
-	for ( code in editorInstance.Language.AvailableLanguages )
-	{
-		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
-	}
-	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
-}	
-
-function AddComboOption(combo, optionText, optionValue)
-{
-	var oOption = document.createElement("OPTION") ;
-
-	combo.options.add(oOption) ;
-
-	oOption.innerHTML = optionText ;
-	oOption.value     = optionValue ;
-	
-	return oOption ;
-}
-
-function ChangeLanguage( languageCode )
-{
-	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
-}
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - PHP - Sample 2</h1>
-		This sample shows the editor in all its available languages.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select a language:&nbsp;
-				</td>
-				<td>
-					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.php" method="post" target="_blank">
-<?php
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-$sBasePath = $_SERVER['PHP_SELF'] ;
-$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
-
-$oFCKeditor = new FCKeditor('FCKeditor1') ;
-$oFCKeditor->BasePath = $sBasePath ;
-
-if ( isset($_GET['Lang']) )
-{
-	$oFCKeditor->Config['AutoDetectLanguage']	= false ;
-	$oFCKeditor->Config['DefaultLanguage']		= $_GET['Lang'] ;
-}
-else
-{
-	$oFCKeditor->Config['AutoDetectLanguage']	= true ;
-	$oFCKeditor->Config['DefaultLanguage']		= 'en' ;
-}
-
-$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-$oFCKeditor->Create() ;
-?>			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<?php
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+
+include("../../fckeditor.php") ;
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbLanguages' ) ;
+	for ( code in editorInstance.Language.AvailableLanguages )
+	{
+		AddComboOption( oCombo, editorInstance.Language.AvailableLanguages[code] + ' (' + code + ')', code ) ;
+	}
+	oCombo.value = editorInstance.Language.ActiveLanguage.Code ;
+}
+
+function AddComboOption(combo, optionText, optionValue)
+{
+	var oOption = document.createElement("OPTION") ;
+
+	combo.options.add(oOption) ;
+
+	oOption.innerHTML = optionText ;
+	oOption.value     = optionValue ;
+
+	return oOption ;
+}
+
+function ChangeLanguage( languageCode )
+{
+	window.location.href = window.location.pathname + "?Lang=" + languageCode ;
+}
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - PHP - Sample 2</h1>
+		This sample shows the editor in all its available languages.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select a language:&nbsp;
+				</td>
+				<td>
+					<select id="cmbLanguages" onchange="ChangeLanguage(this.value);">
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.php" method="post" target="_blank">
+<?php
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+$sBasePath = $_SERVER['PHP_SELF'] ;
+$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
+
+$oFCKeditor = new FCKeditor('FCKeditor1') ;
+$oFCKeditor->BasePath = $sBasePath ;
+
+if ( isset($_GET['Lang']) )
+{
+	$oFCKeditor->Config['AutoDetectLanguage']	= false ;
+	$oFCKeditor->Config['DefaultLanguage']		= $_GET['Lang'] ;
+}
+else
+{
+	$oFCKeditor->Config['AutoDetectLanguage']	= true ;
+	$oFCKeditor->Config['DefaultLanguage']		= 'en' ;
+}
+
+$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+$oFCKeditor->Create() ;
+?>			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/php/sample03.php	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/php/sample03.php	Thu May 29 16:22:22 2008 +0900
@@ -1,85 +1,89 @@
-<?php 
-/*
- * 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: sample03.php
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-include("../../fckeditor.php") ;
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbToolbars' ) ;
-	oCombo.value = editorInstance.ToolbarSet.Name ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeToolbar( toolbarName )
-{
-	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - PHP - Sample 3</h1>
-		This sample shows how to change the editor toolbar.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the toolbar to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
-						<option value="Default" selected>Default</option>
-						<option value="Basic">Basic</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.php" method="post" target="_blank">
-<?php
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-$sBasePath = $_SERVER['PHP_SELF'] ;
-$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
-
-$oFCKeditor = new FCKeditor('FCKeditor1') ;
-$oFCKeditor->BasePath = $sBasePath ;
-
-if ( isset($_GET['Toolbar']) )
-	$oFCKeditor->ToolbarSet = $_GET['Toolbar'] ;
-
-$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-$oFCKeditor->Create() ;
-?>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<?php
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+
+include("../../fckeditor.php") ;
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbToolbars' ) ;
+	oCombo.value = editorInstance.ToolbarSet.Name ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeToolbar( toolbarName )
+{
+	window.location.href = window.location.pathname + "?Toolbar=" + toolbarName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - PHP - Sample 3</h1>
+		This sample shows how to change the editor toolbar.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the toolbar to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbToolbars" onchange="ChangeToolbar(this.value);" style="VISIBILITY: hidden">
+						<option value="Default" selected>Default</option>
+						<option value="Basic">Basic</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.php" method="post" target="_blank">
+<?php
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+$sBasePath = $_SERVER['PHP_SELF'] ;
+$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
+
+$oFCKeditor = new FCKeditor('FCKeditor1') ;
+$oFCKeditor->BasePath = $sBasePath ;
+
+if ( isset($_GET['Toolbar']) )
+	$oFCKeditor->ToolbarSet = htmlspecialchars($_GET['Toolbar']);
+
+$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+$oFCKeditor->Create() ;
+?>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/php/sample04.php	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/php/sample04.php	Thu May 29 16:22:22 2008 +0900
@@ -1,91 +1,95 @@
-<?php 
-/*
- * 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: sample04.php
- * 	Sample page.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-include("../../fckeditor.php") ;
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-		<script type="text/javascript">
-
-function FCKeditor_OnComplete( editorInstance )
-{
-	var oCombo = document.getElementById( 'cmbSkins' ) ;
-	
-	// Get the active skin.
-	var sSkin = editorInstance.Config['SkinPath'] ;
-	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
-	
-	oCombo.value = sSkin ;
-	oCombo.style.visibility = '' ;
-}
-
-function ChangeSkin( skinName )
-{
-	window.location.href = window.location.pathname + "?Skin=" + skinName ;
-}
-
-		</script>
-	</head>
-	<body>
-		<h1>FCKeditor - PHP - Sample 4</h1>
-		This sample shows how to change the editor skin.
-		<hr>
-		<table cellpadding="0" cellspacing="0" border="0">
-			<tr>
-				<td>
-					Select the skin to load:&nbsp;
-				</td>
-				<td>
-					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
-						<option value="default" selected>Default</option>
-						<option value="office2003">Office 2003</option>
-						<option value="silver">Silver</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-		<br>
-		<form action="sampleposteddata.php" method="post" target="_blank">
-<?php
-// Automatically calculates the editor base path based on the _samples directory.
-// This is usefull only for these samples. A real application should use something like this:
-// $oFCKeditor->BasePath = '/FCKeditor/' ;	// '/FCKeditor/' is the default value.
-$sBasePath = $_SERVER['PHP_SELF'] ;
-$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
-
-$oFCKeditor = new FCKeditor('FCKeditor1') ;
-$oFCKeditor->BasePath = $sBasePath ;
-
-if ( isset($_GET['Skin']) )
-	$oFCKeditor->Config['SkinPath'] = $sBasePath . 'editor/skins/' . $_GET['Skin'] . '/' ;
-
-$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
-$oFCKeditor->Create() ;
-?>
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-	</body>
-</html>
\ No newline at end of file
+<?php
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Sample page.
+ */
+
+include("../../fckeditor.php") ;
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+function FCKeditor_OnComplete( editorInstance )
+{
+	var oCombo = document.getElementById( 'cmbSkins' ) ;
+
+	// Get the active skin.
+	var sSkin = editorInstance.Config['SkinPath'] ;
+	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
+
+	oCombo.value = sSkin ;
+	oCombo.style.visibility = '' ;
+}
+
+function ChangeSkin( skinName )
+{
+	window.location.href = window.location.pathname + "?Skin=" + skinName ;
+}
+
+		</script>
+	</head>
+	<body>
+		<h1>FCKeditor - PHP - Sample 4</h1>
+		This sample shows how to change the editor skin.
+		<hr>
+		<table cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td>
+					Select the skin to load:&nbsp;
+				</td>
+				<td>
+					<select id="cmbSkins" onchange="ChangeSkin(this.value);" style="VISIBILITY: hidden">
+						<option value="default" selected>Default</option>
+						<option value="office2003">Office 2003</option>
+						<option value="silver">Silver</option>
+					</select>
+				</td>
+			</tr>
+		</table>
+		<br>
+		<form action="sampleposteddata.php" method="post" target="_blank">
+<?php
+// Automatically calculates the editor base path based on the _samples directory.
+// This is usefull only for these samples. A real application should use something like this:
+// $oFCKeditor->BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
+$sBasePath = $_SERVER['PHP_SELF'] ;
+$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
+
+$oFCKeditor = new FCKeditor('FCKeditor1') ;
+$oFCKeditor->BasePath = $sBasePath ;
+
+if ( isset($_GET['Skin']) )
+	$oFCKeditor->Config['SkinPath'] = $sBasePath . 'editor/skins/' . htmlspecialchars($_GET['Skin']) . '/' ;
+
+$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
+$oFCKeditor->Create() ;
+?>
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/php/sampleposteddata.php	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/php/sampleposteddata.php	Thu May 29 16:22:22 2008 +0900
@@ -1,60 +1,66 @@
-<?php 
-/*
- * 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: sampleposteddata.php
- * 	This page lists the data posted by a form.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- * 		Jim Michaels (jmichae3@yahoo.com)
- */
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td nowrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-<?php
-
-if ( isset( $_POST ) )
-   $postArray = &$_POST ;			// 4.1.0 or later, use $_POST
-else
-   $postArray = &$HTTP_POST_VARS ;	// prior to 4.1.0, use HTTP_POST_VARS
-
-foreach ( $postArray as $sForm => $value )
-{
-	$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
-
-?>
-			<tr>
-				<td valign="top" nowrap><b><?=$sForm?></b></td>
-				<td width="100%"><?=$postedValue?></td>
-			</tr>
-<?php
-}
-?>
-		</table>
-	</body>
-</html>
+<?php
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * This page lists the data posted by a form.
+ */
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td nowrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+<?php
+
+if ( isset( $_POST ) )
+   $postArray = &$_POST ;			// 4.1.0 or later, use $_POST
+else
+   $postArray = &$HTTP_POST_VARS ;	// prior to 4.1.0, use HTTP_POST_VARS
+
+foreach ( $postArray as $sForm => $value )
+{
+	if ( get_magic_quotes_gpc() )
+		$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
+	else
+		$postedValue = htmlspecialchars( $value ) ;
+
+?>
+			<tr>
+				<td valign="top" nowrap><b><?=$sForm?></b></td>
+				<td width="100%" style="white-space:pre"><?=$postedValue?></td>
+			</tr>
+<?php
+}
+?>
+		</table>
+	</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_samples/py/sample01.py	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/py/sample01.py	Thu May 29 16:22:22 2008 +0900
@@ -1,78 +1,80 @@
-#!/usr/bin/env python
-
-"""
-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: sample01.py
-	Sample page.
-
-File Authors:
-		Andrew Liu (andrew@liuholdings.com)
-"""
-
-import cgi
-import os
-
-# Ensure that the fckeditor.py is included in your classpath
-import fckeditor
-
-# Tell the browser to render html
-print "Content-Type: text/html"
-print ""
-
-# Document header
-print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-		<h1>FCKeditor - Python - Sample 1</h1>
-		This sample displays a normal HTML form with an FCKeditor with full features 
-		enabled.
-		<hr>
-		<form action="sampleposteddata.py" method="post" target="_blank">
-"""
-
-# This is the real work
-try: 
-	sBasePath = os.environ.get("SCRIPT_NAME")
-	sBasePath = sBasePath[0:sBasePath.find("_samples")]
-
-	oFCKeditor = fckeditor.FCKeditor('FCKeditor1')
-	oFCKeditor.BasePath = sBasePath
-	oFCKeditor.Value = """This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>."""
-	print oFCKeditor.Create()
-except Exception, e:
-	print e
-print """
-			<br>
-			<input type="submit" value="Submit">
-		</form>
-"""
-
-# For testing your environments
-print "<hr>"
-for key in os.environ.keys():
-	print "%s: %s<br>" % (key, os.environ.get(key, ""))
-print "<hr>"
-
-# Document footer
-print """
-	</body>
-</html>
-"""
-
-
+#!/usr/bin/env python
+
+"""
+FCKeditor - The text editor for Internet - http://www.fckeditor.net
+Copyright (C) 2003-2008 Frederico Caldeira Knabben
+
+== BEGIN LICENSE ==
+
+Licensed under the terms of any of the following licenses at your
+choice:
+
+ - GNU General Public License Version 2 or later (the "GPL")
+   http://www.gnu.org/licenses/gpl.html
+
+ - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+   http://www.gnu.org/licenses/lgpl.html
+
+ - Mozilla Public License Version 1.1 or later (the "MPL")
+   http://www.mozilla.org/MPL/MPL-1.1.html
+
+== END LICENSE ==
+
+Sample page.
+"""
+
+import cgi
+import os
+
+# Ensure that the fckeditor.py is included in your classpath
+import fckeditor
+
+# Tell the browser to render html
+print "Content-Type: text/html"
+print ""
+
+# Document header
+print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Sample</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+		<h1>FCKeditor - Python - Sample 1</h1>
+		This sample displays a normal HTML form with an FCKeditor with full features
+		enabled.
+		<hr>
+		<form action="sampleposteddata.py" method="post" target="_blank">
+"""
+
+# This is the real work
+try:
+	sBasePath = os.environ.get("SCRIPT_NAME")
+	sBasePath = sBasePath[0:sBasePath.find("_samples")]
+
+	oFCKeditor = fckeditor.FCKeditor('FCKeditor1')
+	oFCKeditor.BasePath = sBasePath
+	oFCKeditor.Value = """<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>"""
+	print oFCKeditor.Create()
+except Exception, e:
+	print e
+print """
+			<br>
+			<input type="submit" value="Submit">
+		</form>
+"""
+
+# For testing your environments
+print "<hr>"
+for key in os.environ.keys():
+	print "%s: %s<br>" % (key, os.environ.get(key, ""))
+print "<hr>"
+
+# Document footer
+print """
+	</body>
+</html>
+"""
--- a/wiki/htdocs/applets/FCKeditor/_samples/py/sampleposteddata.py	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/py/sampleposteddata.py	Thu May 29 16:22:22 2008 +0900
@@ -1,81 +1,85 @@
-#!/usr/bin/env python
-
-"""
-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: sampleposteddata.py
-	This page lists the data posted by a form.
-
-File Authors:
-		Andrew Liu (andrew@liuholdings.com)
-"""
-
-import cgi
-import os
-
-# Tell the browser to render html
-print "Content-Type: text/html"
-print ""
-
-try:
-	# Create a cgi object
-	form = cgi.FieldStorage()
-except Exception, e:
-	print e
-
-# Document header
-print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Samples - Posted Data</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="../sample.css" rel="stylesheet" type="text/css" />
-	</head>
-	<body>
-"""
-
-# This is the real work 
-print """
-		<h1>FCKeditor - Samples - Posted Data</h1>
-		This page lists all data posted by the form.
-		<hr>
-		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
-			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
-				<td nowrap>Field Name&nbsp;&nbsp;</td>
-				<td>Value</td>
-			</tr>
-"""
-for key in form.keys():
-	try:
-		value = form[key].value
-		print """
-				<tr>
-					<td valign="top" nowrap><b>%s</b></td>
-					<td width="100%%">%s</td>
-				</tr>
-			""" % (key, value)
-	except Exception, e:
-		print e
-print "</table>"
-
-# For testing your environments
-print "<hr>"
-for key in os.environ.keys():
-	print "%s: %s<br>" % (key, os.environ.get(key, ""))
-print "<hr>"
-
-# Document footer
-print """
-	</body>
-</html>
-"""
+#!/usr/bin/env python
+
+"""
+FCKeditor - The text editor for Internet - http://www.fckeditor.net
+Copyright (C) 2003-2008 Frederico Caldeira Knabben
+
+== BEGIN LICENSE ==
+
+Licensed under the terms of any of the following licenses at your
+choice:
+
+ - GNU General Public License Version 2 or later (the "GPL")
+   http://www.gnu.org/licenses/gpl.html
+
+ - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+   http://www.gnu.org/licenses/lgpl.html
+
+ - Mozilla Public License Version 1.1 or later (the "MPL")
+   http://www.mozilla.org/MPL/MPL-1.1.html
+
+== END LICENSE ==
+
+This page lists the data posted by a form.
+"""
+
+import cgi
+import os
+
+# Tell the browser to render html
+print "Content-Type: text/html"
+print ""
+
+try:
+	# Create a cgi object
+	form = cgi.FieldStorage()
+except Exception, e:
+	print e
+
+# Document header
+print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+	<head>
+		<title>FCKeditor - Samples - Posted Data</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+		<meta name="robots" content="noindex, nofollow">
+		<link href="../sample.css" rel="stylesheet" type="text/css" />
+	</head>
+	<body>
+"""
+
+# This is the real work
+print """
+		<h1>FCKeditor - Samples - Posted Data</h1>
+		This page lists all data posted by the form.
+		<hr>
+		<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
+			<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
+				<td nowrap>Field Name&nbsp;&nbsp;</td>
+				<td>Value</td>
+			</tr>
+"""
+for key in form.keys():
+	try:
+		value = form[key].value
+		print """
+				<tr>
+					<td valign="top" nowrap><b>%s</b></td>
+					<td width="100%%" style="white-space:pre">%s</td>
+				</tr>
+			""" % (key, value)
+	except Exception, e:
+		print e
+print "</table>"
+
+# For testing your environments
+print "<hr>"
+for key in os.environ.keys():
+	print "%s: %s<br>" % (key, os.environ.get(key, ""))
+print "<hr>"
+
+# Document footer
+print """
+	</body>
+</html>
+"""
--- a/wiki/htdocs/applets/FCKeditor/_samples/sample.css	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/sample.css	Thu May 29 16:22:22 2008 +0900
@@ -1,37 +1,50 @@
-/*
- * 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: sample.css
- * 	Styles used in the samples pages.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
- */
-
-body, td, input, select, textarea
-{
-	font-size: 12px;
-	font-family: Arial, Verdana, Sans-Serif;
-}
-
-h1
-{
-	font-weight: bold;
-	font-size: 180%;
-	margin-bottom: 10px;
-}
-
-form
-{
-	margin: 0px 0px 0px 0px;
-	padding: 0px 0px 0px 0px;
-}
+/*
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Styles used in the samples pages.
+ */
+
+body, td, input, select, textarea
+{
+	font-size: 12px;
+	font-family: Arial, Verdana, Sans-Serif;
+}
+
+h1
+{
+	font-weight: bold;
+	font-size: 180%;
+	margin-bottom: 10px;
+}
+
+form
+{
+	margin: 0px 0px 0px 0px;
+	padding: 0px 0px 0px 0px;
+}
+
+pre
+{
+	margin:0px;
+	padding:0px;
+	white-space: pre-wrap; /* css-3 */
+	white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
+	word-wrap: break-word; /* Internet Explorer 5.5+ */
+}
--- a/wiki/htdocs/applets/FCKeditor/_samples/sampleslist.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_samples/sampleslist.html	Thu May 29 16:22:22 2008 +0900
@@ -1,82 +1,118 @@
-<!--
- * 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: sampleslist.html
- * 	Page used to select the sample to view.
- * 
- * File Authors:
- * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
--->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-	<head>
-		<title>FCKeditor - Sample Selection</title>
-		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-		<meta name="robots" content="noindex, nofollow">
-		<link href="sample.css" rel="stylesheet" type="text/css" />
-		<script language="javascript">
-<!--
-
-if ( window.top == window )
-	document.location = 'default.html' ;
-
-function OpenSample( sample )
-{
-	if ( sample.length > 0 )
-		window.open( sample, 'Sample' ) ;
-}
-
-//-->
-		</script>
-	</head>
-	<body bottommargin="0" topmargin="0">
-		<table height="100%" border="0" cellpadding="0" cellspacing="0">
-			<tr>
-				<td>
-					Please select the sample you want to view:
-					<br>
-					<select onchange="OpenSample(this.value);">
-						<option value="html/sample01.html" selected>Javascript : Sample 01 : Editor with all features</option>
-						<option value="html/sample02.html">Javascript : Sample 02 : Replacement of a TEXTAREA</option>
-						<option value="html/sample03.html">Javascript : Sample 03 : Multi-language support</option>
-						<option value="html/sample04.html">Javascript : Sample 04 : Toolbar selection</option>
-						<option value="html/sample05.html">Javascript : Sample 05 : Skins support</option>
-						<option value="html/sample06.html">Javascript : Sample 06 : Plugins support</option>
-						<option value="html/sample07.html">Javascript : Sample 07 : Full Page editing</option>
-						<option value="html/sample08.html">Javascript : Sample 08 : Editor API usage</option>
-						<option value="html/sample09.html">Javascript : Sample 09 : Complex form (multiple editors)</option>
-						<option value=""> </option>
-						<option value="cfm/sample01.cfm">ColdFusion : Sample 01 : Editor with all features</option>
-						<option value="cfm/sample02_mx.cfm">ColdFusion : Sample 02 : Advanced version for ColdFusion MX</option>
-						<option value=""> </option>
-						<option value="asp/sample01.asp">ASP : Sample 01 : Editor with all features</option>
-						<option value="asp/sample02.asp">ASP : Sample 02 : Multi-language support</option>
-						<option value="asp/sample03.asp">ASP : Sample 03 : Toolbar selection</option>
-						<option value="asp/sample04.asp">ASP : Sample 04 : Skins support</option>
-						<option value=""> </option>
-						<option value="perl/sample01.cgi">Perl : Sample 01 : Editor with all features</option>
-						<option value="perl/sample02.cgi">Perl : Sample 02 : Multi-language support</option>
-						<option value="perl/sample03.cgi">Perl : Sample 03 : Toolbar selection</option>
-						<option value="perl/sample04.cgi">Perl : Sample 04 : Skins support</option>
-						<option value=""> </option>
-						<option value="php/sample01.php">PHP : Sample 01 : Editor with all features</option>
-						<option value="php/sample02.php">PHP : Sample 02 : Multi-language support</option>
-						<option value="php/sample03.php">PHP : Sample 03 : Toolbar selection</option>
-						<option value="php/sample04.php">PHP : Sample 04 : Skins support</option>
-						<option value=""> </option>
-						<option value="py/sample01.py">Python : Sample 01 : Editor with all features</option>
-					</select>
-				</td>
-			</tr>
-		</table>
-	</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+"http://www.w3.org/TR/html4/strict.dtd">
+<!--
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben
+ *
+ * == BEGIN LICENSE ==
+ *
+ * Licensed under the terms of any of the following licenses at your
+ * choice:
+ *
+ *  - GNU General Public License Version 2 or later (the "GPL")
+ *    http://www.gnu.org/licenses/gpl.html
+ *
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
+ *    http://www.gnu.org/licenses/lgpl.html
+ *
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")
+ *    http://www.mozilla.org/MPL/MPL-1.1.html
+ *
+ * == END LICENSE ==
+ *
+ * Page used to select the sample to view.
+-->
+<html>
+<head>
+	<title>FCKeditor - Sample Selection</title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+	<meta name="robots" content="noindex, nofollow">
+	<link href="sample.css" rel="stylesheet" type="text/css">
+	<script type="text/javascript">
+
+if ( window.top == window )
+	document.location = 'default.html' ;
+
+function OpenSample( sample )
+{
+	if ( sample.length > 0 )
+		window.open( sample, 'Sample' ) ;
+}
+
+	</script>
+</head>
+<body style="margin:1em;">
+	<table border="0" cellpadding="0" cellspacing="0" style="height: 100%">
+		<tr>
+			<td>
+				Please select the sample you want to view:
+				<br />
+				<select onchange="OpenSample(this.value);">
+					<optgroup label="JavaScript">
+						<option value="html/sample01.html" selected="selected">JavaScript : Sample 01 : Editor
+							with all features</option>
+						<option value="html/sample02.html">JavaScript : Sample 02 : Replacement of a TEXTAREA</option>
+						<option value="html/sample03.html">JavaScript : Sample 03 : Multi-language support</option>
+						<option value="html/sample04.html">JavaScript : Sample 04 : Toolbar selection</option>
+						<option value="html/sample05.html">JavaScript : Sample 05 : Skins support</option>
+						<option value="html/sample06.html">JavaScript : Sample 06 : Plugins support</option>
+						<option value="html/sample07.html">JavaScript : Sample 07 : Full Page editing</option>
+						<option value="html/sample08.html">JavaScript : Sample 08 : Editor API usage</option>
+						<option value="html/sample09.html">JavaScript : Sample 09 : Complex form (multiple editors)</option>
+						<option value="html/sample10.html">JavaScript : Sample 10 : Shared toolbar on same page</option>
+						<option value="html/sample11.html">JavaScript : Sample 11 : Shared toolbar from IFRAME</option>
+						<option value="html/sample12.html">JavaScript : Sample 12 : Enter key behavior</option>
+						<option value="html/sample13.html">JavaScript : Sample 13 : Dinamically switching with a Textarea</option>
+						<option value="html/sample14.html">JavaScript : Sample 14 : XHTML 1.1</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="Active Fox Pro">
+						<option value="afp/sample01.afp">AFP : Sample 01 : Editor with all features</option>
+						<option value="afp/sample02.afp">AFP : Sample 02 : Multi-language support</option>
+						<option value="afp/sample03.afp">AFP : Sample 03 : Toolbar selection</option>
+						<option value="afp/sample04.afp">AFP : Sample 04 : Skins support</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="ASP">
+						<option value="asp/sample01.asp">ASP : Sample 01 : Editor with all features</option>
+						<option value="asp/sample02.asp">ASP : Sample 02 : Multi-language support</option>
+						<option value="asp/sample03.asp">ASP : Sample 03 : Toolbar selection</option>
+						<option value="asp/sample04.asp">ASP : Sample 04 : Skins support</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="ColdFusion">
+						<option value="cfm/sample01.cfm">ColdFusion : Sample 01 : Editor with all features</option>
+						<option value="cfm/sample02_mx.cfm">ColdFusion : Sample 02 : Advanced version for ColdFusion
+							MX</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="Lasso">
+						<option value="lasso/sample01.lasso">Lasso : Sample 01 : Editor with all features</option>
+						<option value="lasso/sample02.lasso">Lasso : Sample 02 : Multi-language support</option>
+						<option value="lasso/sample03.lasso">Lasso : Sample 03 : Toolbar selection</option>
+						<option value="lasso/sample04.lasso">Lasso : Sample 04 : Skins support</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="Perl">
+						<option value="perl/sample01.cgi">Perl : Sample 01 : Editor with all features</option>
+						<option value="perl/sample02.cgi">Perl : Sample 02 : Multi-language support</option>
+						<option value="perl/sample03.cgi">Perl : Sample 03 : Toolbar selection</option>
+						<option value="perl/sample04.cgi">Perl : Sample 04 : Skins support</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="PHP">
+						<option value="php/sample01.php">PHP : Sample 01 : Editor with all features</option>
+						<option value="php/sample02.php">PHP : Sample 02 : Multi-language support</option>
+						<option value="php/sample03.php">PHP : Sample 03 : Toolbar selection</option>
+						<option value="php/sample04.php">PHP : Sample 04 : Skins support</option>
+						<option value=""></option>
+					</optgroup>
+					<optgroup label="Python">
+						<option value="py/sample01.py">Python : Sample 01 : Editor with all features</option>
+					</optgroup>
+				</select>
+			</td>
+		</tr>
+	</table>
+</body>
+</html>
--- a/wiki/htdocs/applets/FCKeditor/_whatsnew.html	Sun May 25 23:16:51 2008 +0200
+++ b/wiki/htdocs/applets/FCKeditor/_whatsnew.html	Thu May 29 16:22:22 2008 +0900
@@ -1,2520 +1,293 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!--
- * 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?"
--->
-<html>
-	<head>
-		<title>FCKeditor - What's New?</title>
-		<style>
-			BODY { FONT-FAMILY: Arial, Verdana, Sans-Serif }
-			P { MARGIN-LEFT: 20px }
-			</style>
-	</head>
-	<body>
-		<H3>
-			Version 2.2</H3>
-<P>New Features and Improvements:</P>
-<UL>
-  <LI> Let's welcome Wim Lemmens (didgiman). He's our new 
-  responsible for the ColdFusion integration