diff --git a/fckeditor/_samples/_plugins/findreplace/fckplugin.js b/fckeditor/_samples/_plugins/findreplace/fckplugin.js deleted file mode 100644 index 6d25ed0..0000000 --- a/fckeditor/_samples/_plugins/findreplace/fckplugin.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. diff --git a/fckeditor/_samples/_plugins/findreplace/find.gif b/fckeditor/_samples/_plugins/findreplace/find.gif deleted file mode 100644 index 81915f4..0000000 Binary files a/fckeditor/_samples/_plugins/findreplace/find.gif and /dev/null differ diff --git a/fckeditor/_samples/_plugins/findreplace/find.html b/fckeditor/_samples/_plugins/findreplace/find.html deleted file mode 100644 index 546867a..0000000 --- a/fckeditor/_samples/_plugins/findreplace/find.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - -
- This is my Plugin! -
- - - - - - - - - -
-   - - - - -
-   -
- -
- - diff --git a/fckeditor/_samples/_plugins/findreplace/lang/en.js b/fckeditor/_samples/_plugins/findreplace/lang/en.js deleted file mode 100644 index df00c16..0000000 --- a/fckeditor/_samples/_plugins/findreplace/lang/en.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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' ; diff --git a/fckeditor/_samples/_plugins/findreplace/lang/fr.js b/fckeditor/_samples/_plugins/findreplace/lang/fr.js deleted file mode 100644 index 9aba775..0000000 --- a/fckeditor/_samples/_plugins/findreplace/lang/fr.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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' ; diff --git a/fckeditor/_samples/_plugins/findreplace/lang/it.js b/fckeditor/_samples/_plugins/findreplace/lang/it.js deleted file mode 100644 index 414081a..0000000 --- a/fckeditor/_samples/_plugins/findreplace/lang/it.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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' ; diff --git a/fckeditor/_samples/_plugins/findreplace/replace.gif b/fckeditor/_samples/_plugins/findreplace/replace.gif deleted file mode 100644 index ac0d893..0000000 Binary files a/fckeditor/_samples/_plugins/findreplace/replace.gif and /dev/null differ diff --git a/fckeditor/_samples/_plugins/findreplace/replace.html b/fckeditor/_samples/_plugins/findreplace/replace.html deleted file mode 100644 index ab028ae..0000000 --- a/fckeditor/_samples/_plugins/findreplace/replace.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - -
- This is my Plugin! -
- - - - - - - - - - - - - - -
- - -
- - -
  -
-   -
- - diff --git a/fckeditor/_samples/_plugins/samples/fckplugin.js b/fckeditor/_samples/_plugins/samples/fckplugin.js deleted file mode 100644 index b2ac6de..0000000 --- a/fckeditor/_samples/_plugins/samples/fckplugin.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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 ) ; diff --git a/fckeditor/_samples/adobeair/application.xml b/fckeditor/_samples/adobeair/application.xml deleted file mode 100644 index aec3023..0000000 --- a/fckeditor/_samples/adobeair/application.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - net.fckeditor.air.samples.sample01 - FCKeditor Sample Application 1.0 - 1.0 - FCKeditor AIR Sample - This is a sample AIR application including FCKeditor. - Copyright (C) 2003-2008 Frederico Caldeira Knabben - - _samples/adobeair/sample01.html - FCKeditor AIR Sample - standard - false - true - true - true - true - 100 - 80 - 820 - 600 - 600 400 - - FCKeditor/AIR Samples/Sample01 - FCKeditor/AIR Samples - - _samples/adobeair/icons/16.png - _samples/adobeair/icons/32.png - _samples/adobeair/icons/48.png - _samples/adobeair/icons/128.png - - false - false - diff --git a/fckeditor/_samples/adobeair/icons/128.png b/fckeditor/_samples/adobeair/icons/128.png deleted file mode 100644 index 88cb983..0000000 Binary files a/fckeditor/_samples/adobeair/icons/128.png and /dev/null differ diff --git a/fckeditor/_samples/adobeair/icons/16.png b/fckeditor/_samples/adobeair/icons/16.png deleted file mode 100644 index 5465b76..0000000 Binary files a/fckeditor/_samples/adobeair/icons/16.png and /dev/null differ diff --git a/fckeditor/_samples/adobeair/icons/32.png b/fckeditor/_samples/adobeair/icons/32.png deleted file mode 100644 index e0cf25e..0000000 Binary files a/fckeditor/_samples/adobeair/icons/32.png and /dev/null differ diff --git a/fckeditor/_samples/adobeair/icons/48.png b/fckeditor/_samples/adobeair/icons/48.png deleted file mode 100644 index 262ebcc..0000000 Binary files a/fckeditor/_samples/adobeair/icons/48.png and /dev/null differ diff --git a/fckeditor/_samples/adobeair/package.bat b/fckeditor/_samples/adobeair/package.bat deleted file mode 100644 index d0a6b29..0000000 --- a/fckeditor/_samples/adobeair/package.bat +++ /dev/null @@ -1,26 +0,0 @@ -@ECHO OFF - -:: -:: 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 == -:: - -:: adt -package SIGNING_OPTIONS air_file app_xml [file_or_dir | -C dir file_or_dir | -e file dir ...] ... - -"C:\Adobe AIR SDK\bin\adt" -package -storetype pkcs12 -keystore sample01_cert.pfx -storepass 123abc FCKeditor.air application.xml -C ../../ . diff --git a/fckeditor/_samples/adobeair/run.bat b/fckeditor/_samples/adobeair/run.bat deleted file mode 100644 index 9a8bac8..0000000 --- a/fckeditor/_samples/adobeair/run.bat +++ /dev/null @@ -1,26 +0,0 @@ -@ECHO OFF - -:: -:: 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 == -:: - -:: adl [-runtime runtime-directory] [-pubId publisher-id] [-nodebug] application.xml [rootdirectory] [-- arguments] - -"C:\Adobe AIR SDK\bin\adl" application.xml ../../ diff --git a/fckeditor/_samples/adobeair/sample01.html b/fckeditor/_samples/adobeair/sample01.html deleted file mode 100644 index 0f702b1..0000000 --- a/fckeditor/_samples/adobeair/sample01.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - FCKeditor - Adobe AIR Sample - - - - - - - -

- FCKeditor - Adobe AIR Sample -

-
- This sample loads FCKeditor with full features enabled. -
-
- - - diff --git a/fckeditor/_samples/adobeair/sample01_cert.pfx b/fckeditor/_samples/adobeair/sample01_cert.pfx deleted file mode 100644 index ba81d1e..0000000 Binary files a/fckeditor/_samples/adobeair/sample01_cert.pfx and /dev/null differ diff --git a/fckeditor/_samples/afp/fck.afpa b/fckeditor/_samples/afp/fck.afpa deleted file mode 100644 index 99d0306..0000000 --- a/fckeditor/_samples/afp/fck.afpa +++ /dev/null @@ -1 +0,0 @@ - diff --git a/fckeditor/_samples/afp/fck.afpa.code b/fckeditor/_samples/afp/fck.afpa.code deleted file mode 100644 index f101541..0000000 --- a/fckeditor/_samples/afp/fck.afpa.code +++ /dev/null @@ -1,165 +0,0 @@ - * 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 = [
] - 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 + [] - -&& Render the configurations HIDDEN FIELD. - html = html + [] +CHR(13)+CHR(10) - -&& Render the EDITOR IFRAME. - html = html + [] - 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 + [] - ENDIF - - html = html + [
] - - 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 diff --git a/fckeditor/_samples/afp/sample01.afp b/fckeditor/_samples/afp/sample01.afp deleted file mode 100644 index 2450e0d..0000000 --- a/fckeditor/_samples/afp/sample01.afp +++ /dev/null @@ -1,56 +0,0 @@ -<% - * 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. - * -%> - - - - FCKeditor - AFP Sample 1 - - - - - -

FCKeditor - AFP - Sample 1

- This sample displays a normal HTML form with an FCKeditor with full features enabled. -
-
-<% - - sBasePath="../../../fckeditor/" && Change this to your local path - - lcText=[

This is some sample text. You are using ] - lcText=lcText+[FCKeditor.] - - oFCKeditor = CREATEOBJECT("FCKeditor") - oFCKeditor.fckeditor("FCKeditor1") - oFCKeditor.BasePath = sBasePath - oFCKeditor.cValue = lcText - - ? oFCKeditor.Create() - -%> -
- -

- - diff --git a/fckeditor/_samples/afp/sample02.afp b/fckeditor/_samples/afp/sample02.afp deleted file mode 100644 index e1baf72..0000000 --- a/fckeditor/_samples/afp/sample02.afp +++ /dev/null @@ -1,113 +0,0 @@ -<% - * 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 is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de) - * -%> - - - - FCKeditor - AFP Sample 2 - - - - - - - -

FCKeditor - AFP - Sample 2

- This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
-<% - - sBasePath="../../../fckeditor/" && Change this to your local path - - oFCKeditor = CREATEOBJECT("FCKeditor") - oFCKeditor.fckeditor("FCKeditor1") - - lcLanguage="" && Initialize Variable - lcLanguage=request.querystring("Lang") && Request Parameter - lcLanguage=oFCKeditor.StripAttacks(lcLanguage) && Remove special escape characters - IF EMPTY(lcLanguage) - oFCKeditor.aconfig[1,1]="AutoDetectLanguage" - oFCKeditor.aconfig[1,2]="true" - oFCKeditor.aconfig[2,1]="DefaultLanguage" - oFCKeditor.aconfig[2,2]="en" - ELSE - oFCKeditor.aconfig[1,1]="AutoDetectLanguage" - oFCKeditor.aconfig[1,2]="false" - oFCKeditor.aconfig[2,1]="DefaultLanguage" - oFCKeditor.aconfig[2,2]=lcLanguage - ENDIF - - lcText=[

This is some sample text. You are using ] - lcText=lcText+[FCKeditor.] - - oFCKeditor.BasePath = sBasePath - oFCKeditor.cValue = lcText - - ? oFCKeditor.Create() - -%> -
- -

- - diff --git a/fckeditor/_samples/afp/sample03.afp b/fckeditor/_samples/afp/sample03.afp deleted file mode 100644 index a219e74..0000000 --- a/fckeditor/_samples/afp/sample03.afp +++ /dev/null @@ -1,91 +0,0 @@ -<% - * 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 is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de) - * -%> - - - - FCKeditor - AFP Sample 3 - - - - - - - -

FCKeditor - AFP - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
-<% - - sBasePath="../../../fckeditor/" && Change this to your local path - - oFCKeditor = CREATEOBJECT("FCKeditor") - oFCKeditor.fckeditor("FCKeditor1") - - lcToolbar=request.querystring("Toolbar") && Request Parameter - lcToolbar=oFCKeditor.StripAttacks(lcToolbar) && Remove special escape characters - IF !EMPTY(lcToolbar) - oFCKeditor.ToolbarSet=lcToolbar - ENDIF - - lcText=[

This is some sample text. You are using ] - lcText=lcText+[FCKeditor.] - - oFCKeditor.BasePath = sBasePath - oFCKeditor.cValue = lcText - - ? oFCKeditor.Create() - -%> -
- -

- - diff --git a/fckeditor/_samples/afp/sample04.afp b/fckeditor/_samples/afp/sample04.afp deleted file mode 100644 index a9d62d7..0000000 --- a/fckeditor/_samples/afp/sample04.afp +++ /dev/null @@ -1,98 +0,0 @@ -<% - * 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 is a basic Sample for FCKeditor integration in the AFP script language (www.afpages.de) - * -%> - - - - FCKeditor - AFP Sample 4 - - - - - - - -

FCKeditor - AFP - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
-<% - - sBasePath="../../../fckeditor/" && <-- Change this to your local path - - oFCKeditor = CREATEOBJECT("FCKeditor") - oFCKeditor.fckeditor("FCKeditor1") - - lcSkin=request.querystring("Skin") && Request Parameter - lcSkin=oFCKeditor.StripAttacks(lcSkin) && Remove special escape characters - IF !EMPTY(lcSkin) - oFCKeditor.aconfig[1,1]="SkinPath" - oFCKeditor.aconfig[1,2]="/fckeditor/editor/skins/"+lcSkin+"/" && <-- Change this to your local path - ENDIF - - lcText=[

This is some sample text. You are using ] - lcText=lcText+[FCKeditor.] - - oFCKeditor.BasePath = sBasePath - oFCKeditor.cValue = lcText - - ? oFCKeditor.Create() - -%> -
- -

- - diff --git a/fckeditor/_samples/afp/sampleposteddata.afp b/fckeditor/_samples/afp/sampleposteddata.afp deleted file mode 100644 index d1ab578..0000000 --- a/fckeditor/_samples/afp/sampleposteddata.afp +++ /dev/null @@ -1,63 +0,0 @@ -<% - * 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. - * -%> - - - - FCKeditor - AFP - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - -<% - 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,"<","<") - lcWert=STRTRAN(lcWert,">",">") && ... if wanted remove/translate HTML Chars ... - - ? [] - ENDIF - NEXT -%> -
Field NameValue
]+lcVariable+[ =
]+lcWert+[
- - diff --git a/fckeditor/_samples/asp/sample01.asp b/fckeditor/_samples/asp/sample01.asp deleted file mode 100644 index 533e91c..0000000 --- a/fckeditor/_samples/asp/sample01.asp +++ /dev/null @@ -1,62 +0,0 @@ -<%@ codepage="65001" language="VBScript" %> -<% Option Explicit %> - -<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %> - - - - - FCKeditor - Sample - - - - - -

- FCKeditor - ASP - Sample 1 -

-
- This sample displays a normal HTML form with an FCKeditor with full features enabled. -
-
-
- <% -' 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 sample text. You are using FCKeditor." -oFCKeditor.Create "FCKeditor1" - %> -
- -

- - diff --git a/fckeditor/_samples/asp/sample02.asp b/fckeditor/_samples/asp/sample02.asp deleted file mode 100644 index 5907c97..0000000 --- a/fckeditor/_samples/asp/sample02.asp +++ /dev/null @@ -1,108 +0,0 @@ -<%@ CodePage=65001 Language="VBScript"%> -<% Option Explicit %> - -<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %> - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ASP - Sample 2

- This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
-<% -' 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 sample text. You are using FCKeditor." -oFCKeditor.Create "FCKeditor1" -%> -
- -

- - diff --git a/fckeditor/_samples/asp/sample03.asp b/fckeditor/_samples/asp/sample03.asp deleted file mode 100644 index 8e65080..0000000 --- a/fckeditor/_samples/asp/sample03.asp +++ /dev/null @@ -1,92 +0,0 @@ -<%@ CodePage=65001 Language="VBScript"%> -<% Option Explicit %> - -<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %> - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ASP - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
-<% -' 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 = "

This is some sample text. You are using FCKeditor." -oFCKeditor.Create "FCKeditor1" -%> -
- -

- - diff --git a/fckeditor/_samples/asp/sample04.asp b/fckeditor/_samples/asp/sample04.asp deleted file mode 100644 index 8c21068..0000000 --- a/fckeditor/_samples/asp/sample04.asp +++ /dev/null @@ -1,98 +0,0 @@ -<%@ CodePage=65001 Language="VBScript"%> -<% Option Explicit %> - -<% ' You must set "Enable Parent Paths" on your web site in order this relative include to work. %> - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ASP - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
-<% -' 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 = "

This is some sample text. You are using FCKeditor." -oFCKeditor.Create "FCKeditor1" -%> -
- -

- - diff --git a/fckeditor/_samples/asp/sampleposteddata.asp b/fckeditor/_samples/asp/sampleposteddata.asp deleted file mode 100644 index 44c86c8..0000000 --- a/fckeditor/_samples/asp/sampleposteddata.asp +++ /dev/null @@ -1,56 +0,0 @@ -<%@ CodePage=65001 Language="VBScript"%> -<% Option Explicit %> - - - - - FCKeditor - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - - <% - Dim sForm - For Each sForm in Request.Form - %> - - - - - <% Next %> -
Field NameValue
<%=sForm%>
<%=Server.HTMLEncode( Request.Form(sForm) )%>
- - diff --git a/fckeditor/_samples/cfm/sample01.cfm b/fckeditor/_samples/cfm/sample01.cfm deleted file mode 100644 index ce9113e..0000000 --- a/fckeditor/_samples/cfm/sample01.cfm +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - FCKeditor - Sample - - - - - -

FCKeditor - ColdFusion - Sample 1

- -This sample displays a normal HTML form with a FCKeditor with full features enabled. -
- -
- - - - - - - - -
- -
- - - -
- diff --git a/fckeditor/_samples/cfm/sample01_mx.cfm b/fckeditor/_samples/cfm/sample01_mx.cfm deleted file mode 100644 index 4828741..0000000 --- a/fckeditor/_samples/cfm/sample01_mx.cfm +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - FCKeditor - Sample - - - - - -

FCKeditor - ColdFusion Component (CFC) - Sample 1

- -This sample displays a normal HTML form with a FCKeditor with full features enabled. -
- -
- - - -
This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.
- -
- - - // 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 FCKeditor.

' ; - fckEditor.basePath = basePath ; - fckEditor.Create() ; // create the editor. -
- - -
- -
- - - -
- diff --git a/fckeditor/_samples/cfm/sample02.cfm b/fckeditor/_samples/cfm/sample02.cfm deleted file mode 100644 index 26c70c1..0000000 --- a/fckeditor/_samples/cfm/sample02.cfm +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion - Sample 2

-This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
- - - - - - - - - - - - - - - - -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sample02_mx.cfm b/fckeditor/_samples/cfm/sample02_mx.cfm deleted file mode 100644 index 51afccc..0000000 --- a/fckeditor/_samples/cfm/sample02_mx.cfm +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion Component (CFC) - Sample 2

-This sample shows the editor in all its available languages. -
-
- -
This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.
- -
- - - - - - -
- Select a language:  - - -
-
-
- - - // 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 FCKeditor.

' ; - 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. -
- -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sample03.cfm b/fckeditor/_samples/cfm/sample03.cfm deleted file mode 100644 index 758b48c..0000000 --- a/fckeditor/_samples/cfm/sample03.cfm +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
- - - - - - - - - - - - - - -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sample03_mx.cfm b/fckeditor/_samples/cfm/sample03_mx.cfm deleted file mode 100644 index 1ad28af..0000000 --- a/fckeditor/_samples/cfm/sample03_mx.cfm +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion Component (CFC) - Sample 3

- This sample shows how to change the editor toolbar. -
-
- -
This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.
- -
- - - - - - -
- Select the toolbar to load:  - - -
-
-
- - - // 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 FCKeditor.

' ; - fckEditor.basePath = basePath ; - if ( isDefined( "URL.Toolbar" ) ) - { - fckEditor.ToolbarSet = HTMLEditFormat( URL.Toolbar ) ; - } - fckEditor.create() ; // create the editor. -
- -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sample04.cfm b/fckeditor/_samples/cfm/sample04.cfm deleted file mode 100644 index fa0f643..0000000 --- a/fckeditor/_samples/cfm/sample04.cfm +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
- - - - - - - - - - - - - -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sample04_mx.cfm b/fckeditor/_samples/cfm/sample04_mx.cfm deleted file mode 100644 index ac5eb2c..0000000 --- a/fckeditor/_samples/cfm/sample04_mx.cfm +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - ColdFusion Component (CFC) - Sample 4

- This sample shows how to change the editor skin. -
-
- -
This sample works only with a ColdFusion MX server and higher, because it uses some advantages of this version.
- -
- - - - - - -
- Select the skin to load:  - - -
-
-
- - - // 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 FCKeditor.

' ; - fckEditor.basePath = basePath ; - if ( isDefined( "URL.Skin" ) ) - { - fckEditor.config['SkinPath'] = basePath & 'editor/skins/' & HTMLEditFormat( URL.Skin ) & '/' ; - } - fckEditor.create() ; // create the editor. -
- -
- - - - -
- diff --git a/fckeditor/_samples/cfm/sampleposteddata.cfm b/fckeditor/_samples/cfm/sampleposteddata.cfm deleted file mode 100644 index a463a44..0000000 --- a/fckeditor/_samples/cfm/sampleposteddata.cfm +++ /dev/null @@ -1,68 +0,0 @@ - - - - - FCKeditor - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - -
- - - - - - - - - - - - - - - - - - -
Field NameValue
FieldNames#FORM.fieldNames#
#key#
#HTMLEditFormat( evaluate( "FORM.#key#" ) )#
-
-
- - -
- - - - diff --git a/fckeditor/_samples/default.html b/fckeditor/_samples/default.html deleted file mode 100644 index 23f734f..0000000 --- a/fckeditor/_samples/default.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - FCKeditor - Samples - - - - - - - - diff --git a/fckeditor/_samples/html/assets/sample06.config.js b/fckeditor/_samples/html/assets/sample06.config.js deleted file mode 100644 index 9edada5..0000000 --- a/fckeditor/_samples/html/assets/sample06.config.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 ) ; diff --git a/fckeditor/_samples/html/assets/sample11_frame.html b/fckeditor/_samples/html/assets/sample11_frame.html deleted file mode 100644 index 43a9450..0000000 --- a/fckeditor/_samples/html/assets/sample11_frame.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - FCKeditor - Sample - - - - - - -
- Normal text field:
- -
-
- FCKeditor 1: - -
- FCKeditor 2: - -
- -
- - diff --git a/fckeditor/_samples/html/assets/sample14.config.js b/fckeditor/_samples/html/assets/sample14.config.js deleted file mode 100644 index 0eeade1..0000000 --- a/fckeditor/_samples/html/assets/sample14.config.js +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 == - * - * Configuration settings used by the XHTML 1.1 sample page (sample14.html). - */ - -// Our intention is force all formatting features to use CSS classes or -// semantic aware elements. - -// Load our custom CSS files for this sample. -// We are using "BasePath" just for this sample convenience. In normal -// situations it would be just pointed to the file directly, -// like "/css/myfile.css". -FCKConfig.EditorAreaCSS = FCKConfig.BasePath + '../_samples/html/assets/sample14.styles.css' ; - -/** - * Core styles. - */ -FCKConfig.CoreStyles.Bold = { Element : 'span', Attributes : { 'class' : 'Bold' } } ; -FCKConfig.CoreStyles.Italic = { Element : 'span', Attributes : { 'class' : 'Italic' } } ; -FCKConfig.CoreStyles.Underline = { Element : 'span', Attributes : { 'class' : 'Underline' } } ; -FCKConfig.CoreStyles.StrikeThrough = { Element : 'span', Attributes : { 'class' : 'StrikeThrough' } } ; - -/** - * Font face - */ -// List of fonts available in the toolbar combo. Each font definition is -// separated by a semi-colon (;). We are using class names here, so each font -// is defined by {Class Name}/{Combo Label}. -FCKConfig.FontNames = 'FontComic/Comic Sans MS;FontCourier/Courier New;FontTimes/Times New Roman' ; - -// Define the way font elements will be applied to the document. The "span" -// element will be used. When a font is selected, the font name defined in the -// above list is passed to this definition with the name "Font", being it -// injected in the "class" attribute. -// We must also instruct the editor to replace span elements that are used to -// set the font (Overrides). -FCKConfig.CoreStyles.FontFace = - { - Element : 'span', - Attributes : { 'class' : '#("Font")' }, - Overrides : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Comic|Courier|Times)$/ } } ] - } ; - -/** - * Font sizes. - */ -FCKConfig.FontSizes = 'FontSmaller/Smaller;FontLarger/Larger;FontSmall/8pt;FontBig/14pt;FontDouble/Double Size' ; -FCKConfig.CoreStyles.Size = - { - Element : 'span', - Attributes : { 'class' : '#("Size")' }, - Overrides : [ { Element : 'span', Attributes : { 'class' : /^Font(?:Smaller|Larger|Small|Big|Double)$/ } } ] - } ; - -/** - * Font colors. - */ -FCKConfig.EnableMoreFontColors = false ; -FCKConfig.FontColors = 'ff9900/FontColor1,0066cc/FontColor2,ff0000/FontColor3' ; -FCKConfig.CoreStyles.Color = - { - Element : 'span', - Attributes : { 'class' : '#("Color")' }, - Overrides : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)$/ } } ] - } ; - -FCKConfig.CoreStyles.BackColor = - { - Element : 'span', - Attributes : { 'class' : '#("Color")BG' }, - Overrides : [ { Element : 'span', Attributes : { 'class' : /^FontColor(?:1|2|3)BG$/ } } ] - } ; - -/** - * Indentation. - */ -FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ] ; - -/** - * Paragraph justification. - */ -FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ; - -/** - * Styles combo. - */ -FCKConfig.StylesXmlPath = '' ; -FCKConfig.CustomStyles = - { - 'Strong Emphasis' : { Element : 'strong' }, - 'Emphasis' : { Element : 'em' }, - - 'Computer Code' : { Element : 'code' }, - 'Keyboard Phrase' : { Element : 'kbd' }, - 'Sample Text' : { Element : 'samp' }, - 'Variable' : { Element : 'var' }, - - 'Deleted Text' : { Element : 'del' }, - 'Inserted Text' : { Element : 'ins' }, - - 'Cited Work' : { Element : 'cite' }, - 'Inline Quotation' : { Element : 'q' } - } ; diff --git a/fckeditor/_samples/html/assets/sample14.styles.css b/fckeditor/_samples/html/assets/sample14.styles.css deleted file mode 100644 index cb64d5b..0000000 --- a/fckeditor/_samples/html/assets/sample14.styles.css +++ /dev/null @@ -1,228 +0,0 @@ -/* - * 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 by the XHTML 1.1 sample page (sample14.html). - */ - -/** - * Basic definitions for the editing area. - */ -body -{ - background-color: #ffffff; - padding: 5px 5px 5px 5px; - margin: 0px; -} - -body, td -{ - font-family: Arial, Verdana, sans-serif; - font-size: 12px; -} - -a[href] -{ - color: #0000FF !important; /* For Firefox... mark as important, otherwise it becomes black */ -} - -/** - * Core styles. - */ - -.Bold -{ - font-weight: bold; -} - -.Italic -{ - font-style: italic; -} - -.Underline -{ - text-decoration: underline; -} - -.StrikeThrough -{ - text-decoration: line-through; -} - -.Subscript -{ - vertical-align: sub; - font-size: smaller; -} - -.Superscript -{ - vertical-align: super; - font-size: smaller; -} - -/** - * Font faces. - */ - -.FontComic -{ - font-family: 'Comic Sans MS'; -} - -.FontCourier -{ - font-family: 'Courier New'; -} - -.FontTimes -{ - font-family: 'Times New Roman'; -} - -/** - * Font sizes. - */ - -.FontSmaller -{ - font-size: smaller; -} - -.FontLarger -{ - font-size: larger; -} - -.FontSmall -{ - font-size: 8pt; -} - -.FontBig -{ - font-size: 14pt; -} - -.FontDouble -{ - font-size: 200%; -} - -/** - * Font colors. - */ -.FontColor1 -{ - color: #ff9900; -} - -.FontColor2 -{ - color: #0066cc; -} - -.FontColor3 -{ - color: #ff0000; -} - -.FontColor1BG -{ - background-color: #ff9900; -} - -.FontColor2BG -{ - background-color: #0066cc; -} - -.FontColor3BG -{ - background-color: #ff0000; -} - -/** - * Indentation. - */ - -.Indent1 -{ - margin-left: 40px; -} - -.Indent2 -{ - margin-left: 80px; -} - -.Indent3 -{ - margin-left: 120px; -} - -/** - * Alignment. - */ - -.JustifyLeft -{ - text-align: left; -} - -.JustifyRight -{ - text-align: right; -} - -.JustifyCenter -{ - text-align: center; -} - -.JustifyFull -{ - text-align: justify; -} - -/** - * Other. - */ - -code -{ - font-family: courier, monospace; - background-color: #eeeeee; - padding-left: 1px; - padding-right: 1px; - border: #c0c0c0 1px solid; -} - -kbd -{ - padding: 0px 1px 0px 1px; - border-width: 1px 2px 2px 1px; - border-style: solid; -} - -blockquote -{ - color: #808080; -} diff --git a/fckeditor/_samples/html/assets/sample15.config.js b/fckeditor/_samples/html/assets/sample15.config.js deleted file mode 100644 index a2f533c..0000000 --- a/fckeditor/_samples/html/assets/sample15.config.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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 == - * - * Configuration settings used by the XHTML 1.1 sample page (sample14.html). - */ - -// Our intention is force all formatting features to use CSS classes or -// semantic aware elements. - -/** - * Core styles. - */ -FCKConfig.CoreStyles.Bold = { Element : 'b' } ; -FCKConfig.CoreStyles.Italic = { Element : 'i' } ; -FCKConfig.CoreStyles.Underline = { Element : 'u' } ; -FCKConfig.CoreStyles.StrikeThrough = { Element : 'strike' } ; - -/** - * Font face - */ -// Define the way font elements will be applied to the document. The "span" -// element will be used. When a font is selected, the font name defined in the -// above list is passed to this definition with the name "Font", being it -// injected in the "class" attribute. -// We must also instruct the editor to replace span elements that are used to -// set the font (Overrides). -FCKConfig.CoreStyles.FontFace = - { - Element : 'font', - Attributes : { 'face' : '#("Font")' } - } ; - -/** - * Font sizes. - */ -FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ; -FCKConfig.CoreStyles.Size = - { - Element : 'font', - Attributes : { 'size' : '#("Size")' } - } ; - -/** - * Font colors. - */ -FCKConfig.EnableMoreFontColors = true ; -FCKConfig.CoreStyles.Color = - { - Element : 'font', - Attributes : { 'color' : '#("Color")' } - } ; - -FCKConfig.CoreStyles.BackColor = - { - Element : 'font', - Styles : { 'background-color' : '#("Color","color")' } - } ; - -/** - * Styles combo. - */ -FCKConfig.StylesXmlPath = '' ; -FCKConfig.CustomStyles = - { - 'Computer Code' : { Element : 'code' }, - 'Keyboard Phrase' : { Element : 'kbd' }, - 'Sample Text' : { Element : 'samp' }, - 'Variable' : { Element : 'var' }, - - 'Deleted Text' : { Element : 'del' }, - 'Inserted Text' : { Element : 'ins' }, - - 'Cited Work' : { Element : 'cite' }, - 'Inline Quotation' : { Element : 'q' } - } ; diff --git a/fckeditor/_samples/html/assets/sample16.config.js b/fckeditor/_samples/html/assets/sample16.config.js deleted file mode 100644 index 840b678..0000000 --- a/fckeditor/_samples/html/assets/sample16.config.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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 == - * - * Configuration settings used by the XHTML 1.1 sample page (sample14.html). - */ - -// Our intention is force all formatting features to use CSS classes or -// semantic aware elements. - -/** - * Core styles. - */ -FCKConfig.CoreStyles.Bold = { Element : 'b' } ; -FCKConfig.CoreStyles.Italic = { Element : 'i' } ; -FCKConfig.CoreStyles.Underline = { Element : 'u' } ; - -/** - * Font face - */ -// Define the way font elements will be applied to the document. The "span" -// element will be used. When a font is selected, the font name defined in the -// above list is passed to this definition with the name "Font", being it -// injected in the "class" attribute. -// We must also instruct the editor to replace span elements that are used to -// set the font (Overrides). -FCKConfig.CoreStyles.FontFace = - { - Element : 'font', - Attributes : { 'face' : '#("Font")' } - } ; - -/** - * Font sizes. - * The CSS part of the font sizes isn't used by Flash, it is there to get the - * font rendered correctly in FCKeditor. - */ -FCKConfig.FontSizes = '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px' ; -FCKConfig.CoreStyles.Size = - { - Element : 'font', - Attributes : { 'size' : '#("Size")' }, - Styles : { 'font-size' : '#("Size","fontSize")' } - } ; - -/** - * Font colors. - */ -FCKConfig.EnableMoreFontColors = true ; -FCKConfig.CoreStyles.Color = - { - Element : 'font', - Attributes : { 'color' : '#("Color")' } - } ; -/** - * Styles combo. - */ -FCKConfig.StylesXmlPath = '' ; -FCKConfig.CustomStyles = - { - } ; - -/** - * Toolbar set for Flash HTML editing. - */ -FCKConfig.ToolbarSets['Flash'] = [ - ['Source','-','Bold','Italic','Underline','-','UnorderedList','-','Link','Unlink'], - ['FontName','FontSize','-','About'] -] ; - -/** - * Flash specific formatting settings. - */ -FCKConfig.EditorAreaStyles = 'p, ol, ul {margin-top: 0px; margin-bottom: 0px;}' ; -FCKConfig.FormatSource = false ; -FCKConfig.FormatOutput = false ; diff --git a/fckeditor/_samples/html/assets/sample16.fla b/fckeditor/_samples/html/assets/sample16.fla deleted file mode 100644 index e37ff4e..0000000 Binary files a/fckeditor/_samples/html/assets/sample16.fla and /dev/null differ diff --git a/fckeditor/_samples/html/assets/sample16.swf b/fckeditor/_samples/html/assets/sample16.swf deleted file mode 100644 index 9c9c175..0000000 Binary files a/fckeditor/_samples/html/assets/sample16.swf and /dev/null differ diff --git a/fckeditor/_samples/html/assets/swfobject.js b/fckeditor/_samples/html/assets/swfobject.js deleted file mode 100644 index ef6d3b7..0000000 --- a/fckeditor/_samples/html/assets/swfobject.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ - * - * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - */ -/* -Copyright (c) 2007 Geoff Stearns - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ -/*jsl:ignoreall*/ -if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject; diff --git a/fckeditor/_samples/html/sample01.html b/fckeditor/_samples/html/sample01.html deleted file mode 100644 index ab55f7d..0000000 --- a/fckeditor/_samples/html/sample01.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - Sample 1 -

-
- This sample displays a normal HTML form with an FCKeditor with full features enabled. -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample02.html b/fckeditor/_samples/html/sample02.html deleted file mode 100644 index f42b858..0000000 --- a/fckeditor/_samples/html/sample02.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 2

-
- This sample displays a normal HTML form with an FCKeditor with full features enabled. - It uses the "ReplaceTextarea" command to create the editor. -
-
-
-
- -
-
- -
- - diff --git a/fckeditor/_samples/html/sample03.html b/fckeditor/_samples/html/sample03.html deleted file mode 100644 index 6f7a75c..0000000 --- a/fckeditor/_samples/html/sample03.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 3

-
- This sample shows the editor in all its available languages. -
-
- - - - - - -
- Select a language:  - - - -   -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample04.html b/fckeditor/_samples/html/sample04.html deleted file mode 100644 index 43ca07c..0000000 --- a/fckeditor/_samples/html/sample04.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 4

-
- This sample shows how to change the editor toolbar. -
-
- - - - - -
- Select the toolbar to load:  - - -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample05.html b/fckeditor/_samples/html/sample05.html deleted file mode 100644 index fcb4073..0000000 --- a/fckeditor/_samples/html/sample05.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 5

-
- This sample shows how to change the editor skin. -
-
- - - - - -
- Select the skin to load:  - - -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample06.html b/fckeditor/_samples/html/sample06.html deleted file mode 100644 index d68e029..0000000 --- a/fckeditor/_samples/html/sample06.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - 6

-
- This sample shows some sample plugins implementations. Things to note:
-
    -
  • 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.
  • -
  • There is also another sample plugin that is available in the package: the "Placeholder" - command (use the yellow icon).
  • -
  • It also shows a custom context menu option when right cliking on images (insert - a smiley to test it).
  • -
-
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample07.html b/fckeditor/_samples/html/sample07.html deleted file mode 100644 index 8af901c..0000000 --- a/fckeditor/_samples/html/sample07.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - Sample 7

-
- In this sample the user can edit the complete page contents and header (from <HTML> - to </HTML>). -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample08.html b/fckeditor/_samples/html/sample08.html deleted file mode 100644 index a536a8a..0000000 --- a/fckeditor/_samples/html/sample08.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 8 -

-
- This sample shows how to use the FCKeditor JavaScript API to interact with the editor - at runtime. -
-
-
- -
- -
-
-   -
-
-
-   -
-
-   -
- - - diff --git a/fckeditor/_samples/html/sample09.html b/fckeditor/_samples/html/sample09.html deleted file mode 100644 index ff07747..0000000 --- a/fckeditor/_samples/html/sample09.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 9

-
- This sample shows FCKeditor in a more complex form with two different instances.
- It also shows and interesting usage of the "OnFocus" and "OnBlur" events available - in the JavaScript API. -
-
-
- Normal text field:
- -
-
- FCKeditor with Basic toolbar: - -
- FCKeditor with Default toolbar: - -
- -
- - diff --git a/fckeditor/_samples/html/sample10.html b/fckeditor/_samples/html/sample10.html deleted file mode 100644 index 0015a52..0000000 --- a/fckeditor/_samples/html/sample10.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - Sample 10

-
- This sample shows a form with two FCKeditor instance. Both instances share the same - toolbar, available in the top. -
-
-
-
-
- Normal text field:
- -
-
- FCKeditor 1: - -
- FCKeditor 2: - -
- -
- - diff --git a/fckeditor/_samples/html/sample11.html b/fckeditor/_samples/html/sample11.html deleted file mode 100644 index ff1030c..0000000 --- a/fckeditor/_samples/html/sample11.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - FCKeditor - Sample - - - - - -

- FCKeditor - JavaScript - Sample 11

-
- This sample shows a form with two FCKeditor instance loaded inside an IFRAME. Both instances share the same - toolbar, available in the main page (top). -
-
-
-
- - - diff --git a/fckeditor/_samples/html/sample12.html b/fckeditor/_samples/html/sample12.html deleted file mode 100644 index dff9b86..0000000 --- a/fckeditor/_samples/html/sample12.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 12

-
- This sample shows the different ways to configure the [Enter] key behavior on FCKeditor. -
-
- - - - - - - - - -
- When [Enter] is pressed:  - - -
- When [Shift] + [Enter] is pressed:  - - -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample13.html b/fckeditor/_samples/html/sample13.html deleted file mode 100644 index 2fc26d4..0000000 --- a/fckeditor/_samples/html/sample13.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - -

- FCKeditor - JavaScript - Sample 13 -

-
- This sample starts with a normal textarea and provides the ability to switch back - and forth between the textarea and FCKeditor. It uses the JavaScript API to do the - operations so it will work even if the internal implementation changes. -
-
-
-
- -
-
- -
- -
- -
- - diff --git a/fckeditor/_samples/html/sample14.html b/fckeditor/_samples/html/sample14.html deleted file mode 100644 index 29bf194..0000000 --- a/fckeditor/_samples/html/sample14.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - Sample 14 -

-
- This sample shows FCKeditor configured to produce XHTML 1.1 compliant - HTML. Deprecated elements or attributes, like the <font> and <u> elements - or the "style" attribute, are avoided. -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample15.html b/fckeditor/_samples/html/sample15.html deleted file mode 100644 index bcaa3b9..0000000 --- a/fckeditor/_samples/html/sample15.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

- FCKeditor - JavaScript - Sample 15 -

-
- This sample shows FCKeditor configured to produce a legacy HTML4 document. Traditional - HTML elements like <b>, <i>, and <font> are used in place of - <strong>, <em> and CSS styles. -
-
-
- -
- -
- - diff --git a/fckeditor/_samples/html/sample16.html b/fckeditor/_samples/html/sample16.html deleted file mode 100644 index 5bbf01f..0000000 --- a/fckeditor/_samples/html/sample16.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - - - -

- FCKeditor - JavaScript - Sample 16 -

-
- This sample shows FCKeditor configured to produce HTML code that can be used with - - Flash. -
-
- - - - - -
- - - -
- - diff --git a/fckeditor/_samples/lasso/sample01.lasso b/fckeditor/_samples/lasso/sample01.lasso deleted file mode 100644 index f868069..0000000 --- a/fckeditor/_samples/lasso/sample01.lasso +++ /dev/null @@ -1,55 +0,0 @@ -[//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. - */ -] - - - - FCKeditor - Sample - - - - - -

FCKeditor - Lasso - Sample 1

- This sample displays a normal HTML form with an FCKeditor with full features - enabled. -
-
-[//lasso - include('../../fckeditor.lasso'); - var('basepath') = response_filepath->split('_samples')->get(1); - - var('myeditor') = fck_editor( - -instancename='FCKeditor1', - -basepath=$basepath, - -initialvalue='

This is some sample text. You are using FCKeditor.

' - ); - - $myeditor->create; -] -
- -
- - diff --git a/fckeditor/_samples/lasso/sample02.lasso b/fckeditor/_samples/lasso/sample02.lasso deleted file mode 100644 index bd74329..0000000 --- a/fckeditor/_samples/lasso/sample02.lasso +++ /dev/null @@ -1,109 +0,0 @@ -[//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. - */ -] - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Lasso - Sample 2

- This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
-[//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 sample text. You are using FCKeditor.

' - ); - - $myeditor->create; -] -
- -
- - diff --git a/fckeditor/_samples/lasso/sample03.lasso b/fckeditor/_samples/lasso/sample03.lasso deleted file mode 100644 index 6890dc9..0000000 --- a/fckeditor/_samples/lasso/sample03.lasso +++ /dev/null @@ -1,87 +0,0 @@ -[//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. - */ -] - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Lasso - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
-[//lasso - include('../../fckeditor.lasso'); - var('basepath') = response_filepath->split('_samples')->get(1); - - var('myeditor') = fck_editor( - -instancename='FCKeditor1', - -basepath=$basepath, - -initialvalue='

This is some sample text. You are using FCKeditor.

' - ); - - if(action_param('Toolbar')); - $myeditor->toolbarset = action_param('Toolbar'); - /if; - - $myeditor->create; -] -
- -
- - diff --git a/fckeditor/_samples/lasso/sample04.lasso b/fckeditor/_samples/lasso/sample04.lasso deleted file mode 100644 index 0e39eb9..0000000 --- a/fckeditor/_samples/lasso/sample04.lasso +++ /dev/null @@ -1,93 +0,0 @@ -[//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. - */ -] - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Lasso - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
-[//lasso - include('../../fckeditor.lasso'); - var('basepath') = response_filepath->split('_samples')->get(1); - - var('myeditor') = fck_editor( - -instancename='FCKeditor1', - -basepath=$basepath, - -initialvalue='

This is some sample text. You are using FCKeditor.

' - ); - - if(action_param('Skin')); - $myeditor->config = array('SkinPath' = $basepath + 'editor/skins/' + action_param('Skin') + '/'); - /if; - - $myeditor->create; -] -
- -
- - diff --git a/fckeditor/_samples/lasso/sampleposteddata.lasso b/fckeditor/_samples/lasso/sampleposteddata.lasso deleted file mode 100644 index 6d04ad4..0000000 --- a/fckeditor/_samples/lasso/sampleposteddata.lasso +++ /dev/null @@ -1,53 +0,0 @@ -[//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. - */ -] - - - - FCKeditor - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - -[iterate(client_postparams, local('this'))] - - - - -[/iterate] -
Field NameValue
[#this->first]
[#this->second]
- - diff --git a/fckeditor/_samples/perl/sample01.cgi b/fckeditor/_samples/perl/sample01.cgi deleted file mode 100644 index 3b6debc..0000000 --- a/fckeditor/_samples/perl/sample01.cgi +++ /dev/null @@ -1,117 +0,0 @@ -#!/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_"; - - - - FCKeditor - Sample - - - - - -

FCKeditor - Perl - Sample 1

- This sample displays a normal HTML form with an FCKeditor with full features - enabled. -
-
-_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 sample text. You are using FCKeditor.

'; - &Create(); - - print <<"_HTML_TAG_"; -
- -
- - -_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); -} diff --git a/fckeditor/_samples/perl/sample02.cgi b/fckeditor/_samples/perl/sample02.cgi deleted file mode 100644 index dd7c26d..0000000 --- a/fckeditor/_samples/perl/sample02.cgi +++ /dev/null @@ -1,182 +0,0 @@ -#!/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_"; - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Perl - Sample 2

- This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
-_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 sample text. You are using FCKeditor.

' ; - &Create(); - - print <<"_HTML_TAG_"; -
- -
- - -_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); -} diff --git a/fckeditor/_samples/perl/sample03.cgi b/fckeditor/_samples/perl/sample03.cgi deleted file mode 100644 index ef9d723..0000000 --- a/fckeditor/_samples/perl/sample03.cgi +++ /dev/null @@ -1,167 +0,0 @@ -#!/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_"; - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Perl - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
-_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 = '

This is some sample text. You are using FCKeditor.

' ; - &Create(); - - print <<"_HTML_TAG_"; -
- -
- - -_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); -} diff --git a/fckeditor/_samples/perl/sample04.cgi b/fckeditor/_samples/perl/sample04.cgi deleted file mode 100644 index 4eb232c..0000000 --- a/fckeditor/_samples/perl/sample04.cgi +++ /dev/null @@ -1,174 +0,0 @@ -#!/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_"; - - - - FCKeditor - Sample - - - - - - -

FCKeditor - Perl - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
-_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 = '

This is some sample text. You are using FCKeditor.

' ; - &Create() ; - - print <<"_HTML_TAG_"; -
- -
- - -_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); -} diff --git a/fckeditor/_samples/perl/sampleposteddata.cgi b/fckeditor/_samples/perl/sampleposteddata.cgi deleted file mode 100644 index 7702ad5..0000000 --- a/fckeditor/_samples/perl/sampleposteddata.cgi +++ /dev/null @@ -1,107 +0,0 @@ -#!/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_"; - - - - FCKeditor - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - -_HTML_TAG_ - - foreach $key (keys %FORM) { - $postedValue = &specialchar_cnv($FORM{$key}); - print <<"_HTML_TAG_"; - - - - -_HTML_TAG_ - } - print <<"_HTML_TAG_"; -
Field NameValue
$key
$postedValue
- - -_HTML_TAG_ diff --git a/fckeditor/_samples/php/sample01.php b/fckeditor/_samples/php/sample01.php deleted file mode 100644 index eb1ccee..0000000 --- a/fckeditor/_samples/php/sample01.php +++ /dev/null @@ -1,57 +0,0 @@ - - - - - FCKeditor - Sample - - - - - -

FCKeditor - PHP - Sample 1

- This sample displays a normal HTML form with an FCKeditor with full features - enabled. -
-
-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 sample text. You are using FCKeditor.

' ; -$oFCKeditor->Create() ; -?> -
- -
- - diff --git a/fckeditor/_samples/php/sample02.php b/fckeditor/_samples/php/sample02.php deleted file mode 100644 index 3682b61..0000000 --- a/fckeditor/_samples/php/sample02.php +++ /dev/null @@ -1,108 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - PHP - Sample 2

- This sample shows the editor in all its available languages. -
- - - - - -
- Select a language:  - - -
-
-
-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 sample text. You are using FCKeditor.

' ; -$oFCKeditor->Create() ; -?>
- -
- - diff --git a/fckeditor/_samples/php/sample03.php b/fckeditor/_samples/php/sample03.php deleted file mode 100644 index 2768e02..0000000 --- a/fckeditor/_samples/php/sample03.php +++ /dev/null @@ -1,89 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - PHP - Sample 3

- This sample shows how to change the editor toolbar. -
- - - - - -
- Select the toolbar to load:  - - -
-
-
-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 = '

This is some sample text. You are using FCKeditor.

' ; -$oFCKeditor->Create() ; -?> -
- -
- - diff --git a/fckeditor/_samples/php/sample04.php b/fckeditor/_samples/php/sample04.php deleted file mode 100644 index bed9e8b..0000000 --- a/fckeditor/_samples/php/sample04.php +++ /dev/null @@ -1,95 +0,0 @@ - - - - - FCKeditor - Sample - - - - - - -

FCKeditor - PHP - Sample 4

- This sample shows how to change the editor skin. -
- - - - - -
- Select the skin to load:  - - -
-
-
-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 = '

This is some sample text. You are using FCKeditor.

' ; -$oFCKeditor->Create() ; -?> -
- -
- - diff --git a/fckeditor/_samples/php/sampleposteddata.php b/fckeditor/_samples/php/sampleposteddata.php deleted file mode 100644 index 11b87fc..0000000 --- a/fckeditor/_samples/php/sampleposteddata.php +++ /dev/null @@ -1,69 +0,0 @@ - - - - - FCKeditor - Samples - Posted Data - - - - - -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - - $value ) -{ - if ( get_magic_quotes_gpc() ) - $postedValue = htmlspecialchars( stripslashes( $value ) ) ; - else - $postedValue = htmlspecialchars( $value ) ; - -?> - - - - - -
Field NameValue
- - diff --git a/fckeditor/_samples/py/sample01.py b/fckeditor/_samples/py/sample01.py deleted file mode 100644 index c56f16e..0000000 --- a/fckeditor/_samples/py/sample01.py +++ /dev/null @@ -1,80 +0,0 @@ -#!/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 """ - - - FCKeditor - Sample - - - - - -

FCKeditor - Python - Sample 1

- This sample displays a normal HTML form with an FCKeditor with full features - enabled. -
-
-""" - -# 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 sample text. You are using FCKeditor.

""" - print oFCKeditor.Create() -except Exception, e: - print e -print """ -
- -
-""" - -# For testing your environments -print "
" -for key in os.environ.keys(): - print "%s: %s
" % (key, os.environ.get(key, "")) -print "
" - -# Document footer -print """ - - -""" diff --git a/fckeditor/_samples/py/sampleposteddata.py b/fckeditor/_samples/py/sampleposteddata.py deleted file mode 100644 index bc759d5..0000000 --- a/fckeditor/_samples/py/sampleposteddata.py +++ /dev/null @@ -1,88 +0,0 @@ -#!/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 """ - - - FCKeditor - Samples - Posted Data - - - - - -""" - -# This is the real work -print """ -

FCKeditor - Samples - Posted Data

- This page lists all data posted by the form. -
- - - - - - - - -""" -for key in form.keys(): - try: - value = form[key].value - print """ - - - - - """ % (key, value) - except Exception, e: - print e -print "
Field NameValue
%s
%s
" - -# For testing your environments -print "
" -for key in os.environ.keys(): - print "%s: %s
" % (key, os.environ.get(key, "")) -print "
" - -# Document footer -print """ - - -""" diff --git a/fckeditor/_samples/sample.css b/fckeditor/_samples/sample.css deleted file mode 100644 index f23fe05..0000000 --- a/fckeditor/_samples/sample.css +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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, th, input, select, textarea -{ - font-size: 12px; - font-family: Arial, Verdana, Sans-Serif; -} - -h1 -{ - font-weight: bold; - font-size: 180%; - margin-bottom: 10px; -} - -form -{ - margin: 0; - padding: 0; -} - -#outputSample -{ - table-layout: fixed; - width: 100%; -} - -pre -{ - margin: 0; - padding: 0; - - white-space: pre; /* CSS2 */ - white-space: -moz-pre-wrap; /* Mozilla*/ - white-space: -o-pre-wrap; /* Opera 7 */ - white-space: pre-wrap; /* CSS 2.1 */ - white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ - word-wrap: break-word; /* IE */ -} - -#outputSample thead th -{ - color: #dddddd; - background-color: #999999; - padding: 4px; - white-space: nowrap; -} - -#outputSample tbody th -{ - vertical-align: top; - text-align: left; -} diff --git a/fckeditor/_samples/sampleslist.html b/fckeditor/_samples/sampleslist.html deleted file mode 100644 index 65ec5ec..0000000 --- a/fckeditor/_samples/sampleslist.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - FCKeditor - Sample Selection - - - - - - - - - - -
- Please select the sample you want to view: -
- -
- -