From: Thyamad c. <th...@us...> - 2005-09-29 19:50:12
|
Update of /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv563/thywidgets/external/fckeditor Modified Files: fckconfig.js fckeditor.asp fckeditor.cfc fckeditor.cfm fckeditor.js fckeditor.php fckeditor.pl fckstyles.xml Added Files: _documentation.html _whatsnew.html fckeditor.afp fcktemplates.xml Log Message: Commiting file additions and modification from SVN revision 2028 to 2029... Changes made by frank on 2005-09-29 21:42:57 +0200 (Thu, 29 Sep 2005) corresponding to SVN revision 2029 with message: updating fckeditor in dynapi Index: fckeditor.php =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditor.php 1 Sep 2005 18:15:38 -0000 1.4 --- fckeditor.php 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,5 **** ! <?php /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,6 ---- ! <?php ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 15,24 **** * instances in PHP pages on server side. * - * Version: 2.0 RC3 - * Modified: 2005-03-02 12:38:37 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ class FCKeditor --- 16,22 ---- * instances in PHP pages on server side. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ class FCKeditor *************** *** 32,37 **** var $Config ; ! function FCKeditor( $instanceName ) ! { $this->InstanceName = $instanceName ; $this->BasePath = '/FCKeditor/' ; --- 30,36 ---- var $Config ; ! // PHP 5 Constructor (by Marcus Bointon <co...@us...>) ! function __construct( $instanceName ) ! { $this->InstanceName = $instanceName ; $this->BasePath = '/FCKeditor/' ; *************** *** 43,46 **** --- 42,51 ---- $this->Config = array() ; } + + // PHP 4 Contructor + function FCKeditor( $instanceName ) + { + $this->__construct( $instanceName ) ; + } function Create() *************** *** 60,70 **** if ( $this->ToolbarSet != '' ) ! $Link .= "&Toolbar={$this->ToolbarSet}" ; // Render the linked hidden field. ! $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}\" name=\"{$this->InstanceName}\" value=\"{$HtmlValue}\">" ; // Render the configurations hidden field. ! $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}___Config\" value=\"" . $this->GetConfigFieldString() . "\">" ; // Render the editor IFRAME. --- 65,75 ---- if ( $this->ToolbarSet != '' ) ! $Link .= "&Toolbar={$this->ToolbarSet}" ; // Render the linked hidden field. ! $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}\" name=\"{$this->InstanceName}\" value=\"{$HtmlValue}\" />" ; // Render the configurations hidden field. ! $Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}___Config\" value=\"" . $this->GetConfigFieldString() . "\" />" ; // Render the editor IFRAME. *************** *** 93,97 **** function IsCompatible() { ! $sAgent = $_SERVER['HTTP_USER_AGENT'] ; if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) --- 98,107 ---- function IsCompatible() { ! global $HTTP_USER_AGENT ; ! ! if ( isset( $HTTP_USER_AGENT ) ) ! $sAgent = $HTTP_USER_AGENT ; ! else ! $sAgent = $_SERVER['HTTP_USER_AGENT'] ; if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false ) *************** *** 100,104 **** return ($iVersion >= 5.5) ; } ! else if ( strpos($sAgent, 'Gecko') !== false ) { $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; --- 110,114 ---- return ($iVersion >= 5.5) ; } ! else if ( strpos($sAgent, 'Gecko/') !== false ) { $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ; *************** *** 117,121 **** { if ( $bFirst == false ) ! $sParams .= '&' ; else $bFirst = false ; --- 127,131 ---- { if ( $bFirst == false ) ! $sParams .= '&' ; else $bFirst = false ; Index: fckstyles.xml =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckstyles.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckstyles.xml 1 Sep 2005 18:15:38 -0000 1.4 --- fckstyles.xml 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,6 **** <?xml version="1.0" encoding="utf-8" ?> ! <!-- * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,6 ---- <?xml version="1.0" encoding="utf-8" ?> ! <!-- * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 15,24 **** * See FCKConfig.StylesXmlPath in the configuration file. * - * Version: 2.0 RC3 - * Modified: 2005-02-09 13:51:09 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! --> <Styles> <Style name="Image on Left" element="img"> --- 15,21 ---- * See FCKConfig.StylesXmlPath in the configuration file. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! --> <Styles> <Style name="Image on Left" element="img"> --- NEW FILE: _documentation.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * FCKeditor - The text editor for internet * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ --> <html> <head> <title>FCKeditor - Documentation</title> <style> BODY { FONT-FAMILY: Arial, Verdana, Sans-Serif } P { MARGIN-LEFT: 20px } </style> </head> <body> <H1>FCKeditor Documentation</H1> <P>You can find all the available documentation for FCKeditor online, at our wiki web site:</P> <BLOCKQUOTE dir="ltr" style="MARGIN-RIGHT: 0px"> <P><A href="http://fckeditor.wikiwikiweb.de/">http://fckeditor.wikiwikiweb.de/</A></P></BLOCKQUOTE> </body> </html> Index: fckeditor.cfm =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.cfm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditor.cfm 1 Sep 2005 18:15:38 -0000 1.4 --- fckeditor.cfm 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,35 **** <cfsetting enablecfoutputonly="Yes"> ! <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfm ! * ColdFusion integration. ! * Note this module is created for use with Coldfusion 4.52 and above. ! * For a cfc version for coldfusion mx check the fckeditor.cfc. ! * ! * Syntax: ! * ! * <cfmodule name="path/to/cfc/fckeditor" ! * instanceName="myEditor" ! * toolbarSet="..." ! * width="..." ! * height="..:" ! * value="..." ! * config="..." ! * > ! * ! * Version: 2.0 RC3 ! * Modified: 2004-12-22 13:51:08 ! * ! * File Authors: ! * Hendrik Kramer (hk...@lw...) ! ---> <!--- :: * Attribute validation --- 1,22 ---- <cfsetting enablecfoutputonly="Yes"> ! <!--- @Packager.Header ! <FileDescription> ! ColdFusion integration. ! Note this module is created for use with Coldfusion 4.52 and above. ! For a cfc version for coldfusion mx check the fckeditor.cfc. ! ! Syntax: ! ! <cfmodule name="path/to/cfc/fckeditor" ! instanceName="myEditor" ! toolbarSet="..." ! width="..." ! height="..:" ! value="..." ! config="..." ! > ! </FileDescription> ! <Author name="Hendrik Kramer" email="hk...@lw..." /> ! ---> <!--- :: * Attribute validation *************** *** 68,72 **** } // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) { // try to extract Gecko version date --- 55,59 ---- } // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko/", sAgent ) ) { // try to extract Gecko version date *************** *** 104,108 **** // append toolbarset name to the url if( len( attributes.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & attributes.toolbarSet; // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) --- 91,95 ---- // append toolbarset name to the url if( len( attributes.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & attributes.toolbarSet; // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) *************** *** 115,121 **** */ lConfigKeys = ""; ! lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,Debug,SkinPath,PluginsPath,AutoDetectLanguage,DefaultLanguage,EnableXHTML,EnableSourceXHTML"; ! lConfigKeys = lConfigKeys & ",GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,LinkShowTargets,LinkTargets,LinkDefaultTarget,ToolbarStartExpanded,ToolbarCanCollapse"; ! lConfigKeys = lConfigKeys & ",ToolbarSets,FontColors,FontNames,FontSizes,FontFormats,StylesXmlPath,LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight"; lConfigKeys = lConfigKeys & ",LinkUpload,LinkUploadURL,LinkUploadWindowWidth,LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions"; lConfigKeys = lConfigKeys & ",ImageBrowser,ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight"; --- 102,109 ---- */ lConfigKeys = ""; ! lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,DocType,BaseHref,FullPage,Debug,SkinPath,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection,EnableXHTML,EnableSourceXHTML,ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities"; ! lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator,GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,ForceSimpleAmpersand,TabSpaces,ShowBorders,UseBROnCarriageReturn"; ! lConfigKeys = lConfigKeys & ",ToolbarStartExpanded,ToolbarCanCollapse,ToolbarSets,ContextMenu,FontColors,FontNames,FontSizes,FontFormats,StylesXmlPath,SpellChecker,IeSpellDownloadUrl,MaxUndoLevels"; ! lConfigKeys = lConfigKeys & ",LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight"; lConfigKeys = lConfigKeys & ",LinkUpload,LinkUploadURL,LinkUploadWindowWidth,LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions"; lConfigKeys = lConfigKeys & ",ImageBrowser,ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight"; *************** *** 129,143 **** { if( len( sConfig ) ) ! sConfig = sConfig & "&"; fieldValue = attributes.config[key]; fieldName = listGetAt( lConfigKeys, iPos ); - // set all boolean possibilities in CFML to true/false values - if( isBoolean( fieldValue) and fieldValue ) - fieldValue = "true"; - else if( isBoolean( fieldValue) ) - fieldValue = "false"; - sConfig = sConfig & HTMLEditFormat( fieldName ) & '=' & HTMLEditFormat( fieldValue ); } --- 117,125 ---- { if( len( sConfig ) ) ! sConfig = sConfig & "&"; fieldValue = attributes.config[key]; fieldName = listGetAt( lConfigKeys, iPos ); sConfig = sConfig & HTMLEditFormat( fieldName ) & '=' & HTMLEditFormat( fieldValue ); } Index: fckeditor.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditor.js 1 Sep 2005 18:15:38 -0000 1.4 --- fckeditor.js 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 16,25 **** * operations, use the specific integration system. * - * Version: 2.0 RC3 - * Modified: 2005-02-27 19:04:39 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ // FCKeditor Class --- 16,22 ---- * operations, use the specific integration system. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ // FCKeditor Class *************** *** 35,38 **** --- 32,36 ---- this.CheckBrowser = true ; this.DisplayErrors = true ; + this.EnableSafari = false ; // This is a temporary property, while Safari support is under development. this.Config = new Object() ; *************** *** 55,59 **** if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) { ! document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '">' ) ; document.write( this._GetConfigHtml() ) ; document.write( this._GetIFrameHtml() ) ; --- 53,57 ---- if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) { ! document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" />' ) ; document.write( this._GetConfigHtml() ) ; document.write( this._GetIFrameHtml() ) ; *************** *** 108,116 **** for ( var o in this.Config ) { ! if ( sConfig.length > 0 ) sConfig += '&' ; sConfig += escape(o) + '=' + escape( this.Config[o] ) ; } ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '">' ; } --- 106,114 ---- for ( var o in this.Config ) { ! if ( sConfig.length > 0 ) sConfig += '&' ; sConfig += escape(o) + '=' + escape( this.Config[o] ) ; } ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '" />' ; } *************** *** 136,139 **** --- 134,140 ---- else if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) return true ; + // Safari + else if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 ) + return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ; // Build must be at least 312 (1.3) else return false ; --- NEW FILE: _whatsnew.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * FCKeditor - The text editor for internet * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ --> <html> <head> <title>FCKeditor - What's New?</title> <style> body { font-family: Arial, Verdana, Sans-Serif; } p { margin-left: 20px; } </style></head> <body> <H3> [...1821 lines suppressed...] <LI> Optimizations when loading the editor. <LI> [SF BUG-709544] - Toolbar buttons wait for the images to be downloaded to start watching and responding the user actions (turn buttons on/off when the user changes position inside the editor). <LI> Javascript integration is now Object Oriented. CreateFCKeditor function is not available anymore. Take a look in test.html. <LI> Two new configuration options, ImageBrowser and ImageUpload, are available to turn on and off the image upload and image browsing options in the Image dialog box. This options can be hidden for a specific editor instance throw specific URL parameter in the editors IFRAME (upload=true/false&browse=true/false). All specific language integration modules handle this option. For sample see the _test directory. </LI> </UL></SPAN> </body> </html> Index: fckconfig.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckconfig.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckconfig.js 1 Sep 2005 18:15:38 -0000 1.4 --- fckconfig.js 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,5 **** ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! /* * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 13,22 **** * See the documentation for more info. * - * Version: 2.0 RC3 - * Modified: 2005-02-27 21:31:48 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKConfig.CustomConfigurationsPath = '' ; --- 13,19 ---- * See the documentation for more info. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! */ FCKConfig.CustomConfigurationsPath = '' ; *************** *** 24,27 **** --- 21,26 ---- FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; + FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ; + FCKConfig.BaseHref = '' ; *************** *** 40,45 **** FCKConfig.ContentLangDirection = 'ltr' ; ! FCKConfig.EnableXHTML = true ; ! FCKConfig.EnableSourceXHTML = true ; FCKConfig.FillEmptyBlocks = true ; --- 39,48 ---- FCKConfig.ContentLangDirection = 'ltr' ; ! FCKConfig.EnableXHTML = true ; // Unsupported: Do not change. ! FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change. ! ! FCKConfig.ProcessHTMLEntities = true ; ! FCKConfig.IncludeLatinEntities = true ; ! FCKConfig.IncludeGreekEntities = true ; FCKConfig.FillEmptyBlocks = true ; *************** *** 58,64 **** FCKConfig.ToolbarStartExpanded = true ; FCKConfig.ToolbarCanCollapse = true ; FCKConfig.ToolbarSets["Default"] = [ ! ['Source','DocProps','-','Save','NewPage','Preview'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], --- 61,69 ---- FCKConfig.ToolbarStartExpanded = true ; FCKConfig.ToolbarCanCollapse = true ; + FCKConfig.IEForceVScroll = false ; + FCKConfig.IgnoreEmptyParagraphValue = true ; FCKConfig.ToolbarSets["Default"] = [ ! ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], *************** *** 67,71 **** ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ! ['Image','Table','Rule','Smiley','SpecialChar','UniversalKey'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], '/', --- 72,76 ---- ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ! ['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], '/', *************** *** 79,83 **** ] ; ! FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; --- 84,88 ---- ] ; ! FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; *************** *** 87,100 **** FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; ! FCKConfig.StylesXmlPath = '../fckstyles.xml' ; FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ; FCKConfig.LinkBrowser = true ; FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp' ; //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' ; ! //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx' ; ! //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ; FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% --- 92,122 ---- FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; ! FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; ! FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ; + FCKConfig.MaxUndoLevels = 15 ; + + FCKConfig.DisableImageHandles = false ; + FCKConfig.DisableTableHandles = false ; + + FCKConfig.LinkDlgHideTarget = false ; + FCKConfig.LinkDlgHideAdvanced = false ; + + FCKConfig.ImageDlgHideLink = false ; + FCKConfig.ImageDlgHideAdvanced = false ; + + FCKConfig.FlashDlgHideAdvanced = false ; + FCKConfig.LinkBrowser = true ; FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp' ; //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' ; ! // ASP.Net // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx' ; ! // ColdFusion // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ; ! // Perl // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ; ! // PHP // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ; ! // PHP - mcpuk // FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ; FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% *************** *** 102,113 **** FCKConfig.ImageBrowser = true ; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp' ; ! //FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx' ; ! //FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ; FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; FCKConfig.SmileyColumns = 8 ; FCKConfig.SmileyWindowWidth = 320 ; ! FCKConfig.SmileyWindowHeight = 240 ; \ No newline at end of file --- 124,168 ---- FCKConfig.ImageBrowser = true ; FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp' ; ! // ASP.Net // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx' ; ! // ColdFusion // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/cfm/connector.cfm' ; ! // Perl // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/perl/connector.cgi' ; ! // PHP // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php' ; ! // PHP - mcpuk // FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ; FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; + FCKConfig.FlashBrowser = true ; + FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/asp/connector.asp' ; + // ASP.Net // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/aspx/connector.aspx' ; + // ColdFusion // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/cfm/connector.cfm' ; + // Perl // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/perl/connector.cgi' ; + // PHP // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php' ; + // PHP - mcpuk // FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Flash&Connector=connectors/php/connector.php' ; + FCKConfig.FlashBrowserWindowWidth = screen.width * 0.7 ; //70% ; + FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ; //70% ; + + FCKConfig.LinkUpload = true ; + FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp' ; + // PHP // FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php' ; + FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all + FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one + + FCKConfig.ImageUpload = true ; + FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp?Type=Image' ; + // PHP // FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Image' ; + FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all + FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one + + FCKConfig.FlashUpload = true ; + FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp?Type=Flash' ; + // PHP // FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Flash' ; + FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all + FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one + FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; FCKConfig.SmileyColumns = 8 ; FCKConfig.SmileyWindowWidth = 320 ; ! FCKConfig.SmileyWindowHeight = 240 ; ! ! if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine \ No newline at end of file Index: fckeditor.pl =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckeditor.pl 1 Sep 2005 18:15:38 -0000 1.1 --- fckeditor.pl 29 Sep 2005 19:49:16 -0000 1.2 *************** *** 1,5 **** ! ##### # FCKeditor - The text editor for internet ! # Copyright (C) 2003-2004 Frederico Caldeira Knabben # # Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! ##### # FCKeditor - The text editor for internet ! # Copyright (C) 2003-2005 Frederico Caldeira Knabben # # Licensed under the terms of the GNU Lesser General Public License: *************** *** 12,21 **** # This is the integration file for Perl. # - # Version: 2.0 RC3 - # Modified: 2005-02-28 15:50:35 - # # File Authors: ! # Takashi Yamaguchi (ja...@om...) ! ##### #my $InstanceName; --- 12,18 ---- # This is the integration file for Perl. # # File Authors: ! # Takashi Yamaguchi (ja...@om...) ! ##### #my $InstanceName; *************** *** 65,77 **** $Link = $BasePath . "editor/fckeditor.html?InstanceName=$InstanceName"; if($ToolbarSet ne '') { ! $Link .= "&Toolbar=$ToolbarSet"; } #// Render the linked hidden field. ! $Html .= "<input type=\"hidden\" id=\"$InstanceName\" name=\"$InstanceName\" value=\"$HtmlValue\">" ; #// Render the configurations hidden field. $cfgstr = &GetConfigFieldString(); $wk = $InstanceName."___Config"; ! $Html .= "<input type=\"hidden\" id=\"$wk\" value=\"$cfgstr\">" ; #// Render the editor IFRAME. --- 62,74 ---- $Link = $BasePath . "editor/fckeditor.html?InstanceName=$InstanceName"; if($ToolbarSet ne '') { ! $Link .= "&Toolbar=$ToolbarSet"; } #// Render the linked hidden field. ! $Html .= "<input type=\"hidden\" id=\"$InstanceName\" name=\"$InstanceName\" value=\"$HtmlValue\" />" ; #// Render the configurations hidden field. $cfgstr = &GetConfigFieldString(); $wk = $InstanceName."___Config"; ! $Html .= "<input type=\"hidden\" id=\"$wk\" value=\"$cfgstr\" />" ; #// Render the editor IFRAME. *************** *** 102,110 **** $iVersion = substr($sAgent,index($sAgent,'MSIE') + 5,3); return($iVersion >= 5.5) ; ! } elsif($sAgent =~ /Gecko/i) { $iVersion = substr($sAgent,index($sAgent,'Gecko/') + 6,8); return($iVersion >= 20030210) ; } else { ! return(1); } } --- 99,107 ---- $iVersion = substr($sAgent,index($sAgent,'MSIE') + 5,3); return($iVersion >= 5.5) ; ! } elsif($sAgent =~ /Gecko\//i) { $iVersion = substr($sAgent,index($sAgent,'Gecko/') + 6,8); return($iVersion >= 20030210) ; } else { ! return(0); # 2.0 PR fix } } *************** *** 117,121 **** $sValue = $Config{$sKey}; if($bFirst == 1) { ! $sParams .= '&'; } else { $bFirst = 1; --- 114,118 ---- $sValue = $Config{$sKey}; if($bFirst == 1) { ! $sParams .= '&'; } else { $bFirst = 1; Index: fckeditor.asp =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.asp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditor.asp 1 Sep 2005 18:15:38 -0000 1.4 --- fckeditor.asp 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,5 **** ! <!-- * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: --- 1,5 ---- ! <!-- * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2005 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: *************** *** 15,24 **** * instances in ASP pages on server side. * - * Version: 2.0 RC3 - * Modified: 2005-02-27 19:16:33 - * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! --> <% Class FCKeditor --- 15,21 ---- * instances in ASP pages on server side. * * File Authors: ! * Frederico Caldeira Knabben (fr...@fc...) ! --> <% Class FCKeditor *************** *** 64,68 **** Public Property Let Value( newValue ) ! sValue = newValue End Property --- 61,69 ---- Public Property Let Value( newValue ) ! If ( IsNull( newValue ) OR IsEmpty( newValue ) ) Then ! sValue = "" ! Else ! sValue = newValue ! End If End Property *************** *** 81,92 **** If (sToolbarSet & "") <> "" Then ! sLink = sLink + "&Toolbar=" & sToolbarSet End If ' Render the linked hidden field. ! Response.Write "<input type=""hidden"" id=""" & instanceName & """ name=""" & instanceName & """ value=""" & Server.HTMLEncode( sValue ) & """>" ' Render the configurations hidden field. ! Response.Write "<input type=""hidden"" id=""" & instanceName & "___Config"" value=""" & GetConfigFieldString() & """>" ' Render the editor IFRAME. --- 82,93 ---- If (sToolbarSet & "") <> "" Then ! sLink = sLink + "&Toolbar=" & sToolbarSet End If ' Render the linked hidden field. ! Response.Write "<input type=""hidden"" id=""" & instanceName & """ name=""" & instanceName & """ value=""" & Server.HTMLEncode( sValue ) & """ />" ' Render the configurations hidden field. ! Response.Write "<input type=""hidden"" id=""" & instanceName & "___Config"" value=""" & GetConfigFieldString() & """ />" ' Render the editor IFRAME. *************** *** 127,131 **** iVersion = CInt( ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) ) IsCompatible = ( iVersion >= 5.5 ) ! ElseIf InStr(sAgent, "Gecko") > 0 Then iVersion = CLng( Mid( sAgent, InStr( sAgent, "Gecko/" ) + 6, 8 ) ) IsCompatible = ( iVersion >= 20030210 ) --- 128,132 ---- iVersion = CInt( ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) ) IsCompatible = ( iVersion >= 5.5 ) ! ElseIf InStr(sAgent, "Gecko/") > 0 Then iVersion = CLng( Mid( sAgent, InStr( sAgent, "Gecko/" ) + 6, 8 ) ) IsCompatible = ( iVersion >= 20030210 ) *************** *** 160,164 **** If bFirst = False Then ! sParams = sParams & "&" Else bFirst = False --- 161,165 ---- If bFirst = False Then ! sParams = sParams & "&" Else bFirst = False --- NEW FILE: fckeditor.afp --- <% * FCKeditor - The text editor for internet * Copyright (C) 2003-2004 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.fckeditor.net/ * * File Name: sampleposteddata.afp * This page lists the data posted by a form. * * Version: 1.0 * Modified: 2005-07-01 * * File Authors: Soenke Freitag (www.afp-hosting.de) * DEFINE CLASS goFckeditor AS CONTAINER OLEPUBLIC 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() ? THIS.CreateHtml() RETURN ENDFUNC && ----------------------------------------------------------------------- FUNCTION CreateHtml() LOCAL html LOCAL lcLink HtmlValue = THIS.cValue && HTMLSPECIALCHARS() html = [<div>] IF THIS.IsCompatible() lcLink = THIS.BasePath+[editor/fckeditor.html?InstanceName=]+THIS.cInstanceName IF ( THIS.ToolbarSet # '' ) lcLink = lcLink + [Toolbar=]+THIS.ToolbarSet ENDIF && Render the LINKED HIDDEN FIELD. html = html + [<input type="hidden" id="]+THIS.cInstanceName +[" name="]+THIS.cInstanceName +[" value="]+HtmlValue+[">] && Render the configurations HIDDEN FIELD. html = html + [<input type="hidden" id="]+THIS.cInstanceName +[___Config" value="]+THIS.GetConfigFieldString() + [">] +CHR(13)+CHR(10) && Render the EDITOR IFRAME. html = html + [<iframe id="]+THIS.cInstanceName +[___Frame" src="Link" width="]+THIS.cWIDTH+[" height="]+THIS.cHEIGHT+[" frameborder="no" scrolling="no"></iframe>] ELSE IF ( AT("%", THIS.cWIDTH)=0 ) WidthCSS = THIS.cWIDTH + 'px' ELSE WidthCSS = THIS.cWIDTH ENDIF IF ( AT("%",THIS.cHEIGHT)=0 ) HeightCSS = THIS.cHEIGHT + 'px' ELSE HeightCSS = THIS.cHEIGHT ENDIF html = html + [<textarea name="]+THIS.cInstanceName +[" rows="4" cols="40" style="width: ]+WidthCSS+[ height: ]+HeightCSS+[" wrap="virtual">]+HtmlValue+[</textarea>] ENDIF html = html + [</div>] RETURN (html) ENDFUNC && ----------------------------------------------------------------------- FUNCTION IsCompatible() LOCAL llRetval LOCAL sAgent llRetval=.F. sAgent = LOWER(ALLTRIM(request.servervariables("HTTP_USER_AGENT"))) IF AT("msie",sAgent) >0 .AND. AT("mac",sAgent)=0 .AND. AT("opera",sAgent)=0 iVersion=VAL(SUBSTR(sAgent,AT("msie",sAgent)+5,3)) llRetval= iVersion > 5.5 ELSE IF AT("gecko",sAgent)>0 iVersion=VAL(SUBSTR(sAgent,AT("gecko/",sAgent)+6,8)) llRetval =iVersion > 20030210 ENDIF ENDIF RETURN (llRetval) ENDFUNC && ----------------------------------------------------------------------- FUNCTION GetConfigFieldString() LOCAL sParams LOCAL bFirst LOCAL sKey sParams = "" bFirst = .T. FOR lnLoop=1 TO 10 && ALEN(this.aconfig) IF !EMPTY(THIS.aConfig(lnLoop,1)) IF bFirst = .F. sParams = sParams + "&" ELSE bFirst = .F. ENDIF sParams = sParams +THIS.aConfig(lnLoop,1)+[=]+THIS.aConfig(lnLoop,2) ELSE EXIT ENDIF NEXT RETURN(sParams) ENDFUNC ENDDEFINE %> --- NEW FILE: fcktemplates.xml --- <?xml version="1.0" encoding="utf-8" ?> <Templates imagesBasePath="fck_template/images/"> <Template title="Image and Title" image="template1.gif"> <Description>One main image with a title and text that surround the image.</Description> <Html> <![CDATA[ <img style="MARGIN-RIGHT: 10px" height="100" alt="" width="100" align="left"/> <h3>Type the title here</h3> Type the text here ]]> </Html> </Template> <Template title="Strange Template" image="template2.gif"> <Description>A template that defines two colums, each one with a title, and some text.</Description> <Html> <![CDATA[ <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td width="50%"> <h3>Title 1</h3> </td> <td> </td> <td width="50%"> <h3>Title 2</h3> </td> </tr> <tr> <td>Text 1</td> <td> </td> <td>Text 2</td> </tr> </tbody> </table> More text goes here. ]]> </Html> </Template> <Template title="Text and Table" image="template3.gif"> <Description>A title with some text and a table.</Description> <Html> <![CDATA[ <table align="left" width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td> <h3>Title goes here</h3> <p> <table style="FLOAT: right" cellspacing="0" cellpadding="0" width="150" border="1"> <tbody> <tr> <td align="center" colspan="3"><strong>Table title</strong></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> Type the text here</p> </td></tr></table> ]]> </Html> </Template> </Templates> Index: fckeditor.cfc =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/fckeditor.cfc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditor.cfc 1 Sep 2005 18:15:38 -0000 1.4 --- fckeditor.cfc 29 Sep 2005 19:49:16 -0000 1.5 *************** *** 1,43 **** ! <cfcomponent output="false" displayname="FCKEditor" hint="Create an instance of the FCKEditor."> ! <!--- ! * FCKeditor - The text editor for internet ! * Copyright (C) 2003-2004 Frederico Caldeira Knabben ! * ! * Licensed under the terms of the GNU Lesser General Public License: ! * http://www.opensource.org/licenses/lgpl-license.php ! * ! * For further information visit: ! * http://www.fckeditor.net/ ! * ! * File Name: fckeditor.cfc ! * ColdFusion MX integration. ! * Note this CFC is created for use only with Coldfusion MX and above. ! * For older version, check the fckeditor.cfm. ! * ! * Syntax: ! * ! * <cfscript> ! * fckEditor = createObject("component", "fckEditorV2/fckeditor"); ! * fckEditor.instanceName="myEditor"; ! * fckEditor.basePath="/fckEditorV2/"; ! * fckEditor.value="This is my <strong>initial</strong> html text."; ! * fckEditor.width="100%"; ! * fckEditor.height="200"; ! * // ... additional parameters ... ! * fckEditor.create(); // create instance now. ! * </cfscript> ! * ! * See your macromedia coldfusion mx documentation for more info. ! * ! * *** Note: ! * Do not use path names with a "." (dot) in the name. This is a coldfusion ! * limitation with the cfc invocation. ! * ! * Version: 2.0 RC3 ! * Modified: 2004-12-22 13:49:40 ! * ! * File Authors: ! * Hendrik Kramer (hk...@lw...) ! ---> <cffunction name="create" --- 1,30 ---- ! <cfcomponent output="false" displayname="FCKeditor" hint="Create an instance of the FCKeditor."> ! <!--- @Packager.Header ! <FileDescription> ! ColdFusion MX integration. ! Note this CFC is created for use only with Coldfusion MX and above. ! For older version, check the fckeditor.cfm. ! ! Syntax: ! ! <cfscript> ! fckEditor = createObject("component", "fckEditorV2/fckeditor"); ! fckEditor.instanceName="myEditor"; ! fckEditor.basePath="/fckEditorV2/"; ! fckEditor.value="This is my <strong>initial</strong> html text."; ! fckEditor.width="100%"; ! fckEditor.height="200"; ! // ... additional parameters ... ! fckEditor.create(); // create instance now. ! </cfscript> ! ! See your macromedia coldfusion mx documentation for more info. ! ! *** Note: ! Do not use path names with a "." (dot) in the name. This is a coldfusion ! limitation with the cfc invocation. ! </FileDescription> ! <Author name="Hendrik Kramer" email="hk...@lw..." /> ! ---> <cffunction name="create" *************** *** 45,49 **** output="true" returntype="void" ! hint="Initialize the FCKEditor instance." > --- 32,36 ---- output="true" returntype="void" ! hint="Initialize the FCKeditor instance." > *************** *** 97,101 **** } // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) { // try to extract Gecko version date --- 84,88 ---- } // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko/", sAgent ) ) { // try to extract Gecko version date *************** *** 157,161 **** // append toolbarset name to the url if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; </cfscript> --- 144,148 ---- // append toolbarset name to the url if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; </cfscript> *************** *** 192,198 **** * changed 20041206 hk...@lw... (improvements are welcome!) */ ! lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,Debug,SkinPath,PluginsPath,AutoDetectLanguage,DefaultLanguage,EnableXHTML,EnableSourceXHTML"; ! lConfigKeys = lConfigKeys & ",GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,LinkShowTargets,LinkTargets,LinkDefaultTarget,ToolbarStartExpanded,ToolbarCanCollapse"; ! lConfigKeys = lConfigKeys & ",ToolbarSets,FontColors,FontNames,FontSizes,FontFormats,StylesXmlPath,LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight"; lConfigKeys = lConfigKeys & ",LinkUpload,LinkUploadURL,LinkUploadWindowWidth,LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions"; lConfigKeys = lConfigKeys & ",ImageBrowser,ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight"; --- 179,186 ---- * changed 20041206 hk...@lw... (improvements are welcome!) */ ! lConfigKeys = lConfigKeys & "CustomConfigurationsPath,EditorAreaCSS,DocType,BaseHref,FullPage,Debug,SkinPath,PluginsPath,AutoDetectLanguage,DefaultLanguage,ContentLangDirection,EnableXHTML,EnableSourceXHTML,ProcessHTMLEntities,IncludeLatinEntities,IncludeGreekEntities"; ! lConfigKeys = lConfigKeys & ",FillEmptyBlocks,FormatSource,FormatOutput,FormatIndentator,GeckoUseSPAN,StartupFocus,ForcePasteAsPlainText,ForceSimpleAmpersand,TabSpaces,ShowBorders,UseBROnCarriageReturn"; ! lConfigKeys = lConfigKeys & ",ToolbarStartExpanded,ToolbarCanCollapse,ToolbarSets,ContextMenu,FontColors,FontNames,FontSizes,FontFormats,StylesXmlPath,SpellChecker,IeSpellDownloadUrl,MaxUndoLevels"; ! lConfigKeys = lConfigKeys & ",LinkBrowser,LinkBrowserURL,LinkBrowserWindowWidth,LinkBrowserWindowHeight"; lConfigKeys = lConfigKeys & ",LinkUpload,LinkUploadURL,LinkUploadWindowWidth,LinkUploadWindowHeight,LinkUploadAllowedExtensions,LinkUploadDeniedExtensions"; lConfigKeys = lConfigKeys & ",ImageBrowser,ImageBrowserURL,ImageBrowserWindowWidth,ImageBrowserWindowHeight,SmileyPath,SmileyImages,SmileyColumns,SmileyWindowWidth,SmileyWindowHeight"; *************** *** 204,208 **** { if( len( sParams ) ) ! sParams = sParams & "&"; fieldValue = this.config[key]; --- 192,196 ---- { if( len( sParams ) ) ! sParams = sParams & "&"; fieldValue = this.config[key]; |