From: Yves K. <yku...@us...> - 2004-11-07 16:17:47
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26270/modules/xwysiwyg/mod/xwysiwyg/_fck Modified Files: fckconfig.js fckeditor.cfc fckeditor.cfm fckeditor.js Log Message: unix saving Index: fckconfig.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckconfig.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckconfig.js 25 Oct 2004 18:08:13 -0000 1.1.1.1 --- fckconfig.js 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,114 **** /* ! * 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: fckconfig.js ! * Editor configuration settings. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:27:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // Custom Configurations (leave blank to ignore) ! FCKConfig.CustomConfigurationsPath = '' ; // '/fckeditor.config.js' ; ! ! // Enables the debug window ! FCKConfig.Debug = false ; ! ! // Set the path for the skin files to use. ! FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; ! ! // Language settings ! FCKConfig.AutoDetectLanguage = true ; ! FCKConfig.DefaultLanguage = "en" ; ! ! // Enable XHTML support ! FCKConfig.EnableXHTML = true ; ! FCKConfig.EnableSourceXHTML = true ; ! ! // Tells Gecko browsers to use SPAN instead of <B>, <I> and <U>. ! FCKConfig.GeckoUseSPAN = true ; ! ! // Force the editor to get the focus on startup (page load). ! FCKConfig.StartupFocus = true ; ! ! // Cut and Paste options ! FCKConfig.ForcePasteAsPlainText = false ; ! ! // Link: Target Windows ! FCKConfig.LinkShowTargets = true ; ! FCKConfig.LinkTargets = '_blank;_parent;_self;_top' ; ! FCKConfig.LinkDefaultTarget = '' ; ! ! FCKConfig.ToolbarStartExpanded = true ; ! FCKConfig.ToolbarCanCollapse = true ; ! ! //## ! //## Toolbar Buttons Sets ! //## ! FCKConfig.ToolbarSets = new Object() ; ! FCKConfig.ToolbarSets["Default"] = [ ! ['Source','-','Save','NewPage','Preview'], ! ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'/*,'SpellCheck'*/], ! ['Undo','Redo',/*'-','Find','Replace',*/'-','SelectAll','RemoveFormat'], ! ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ! ['OrderedList','UnorderedList','-','Outdent','Indent'], ! ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ! ['Link','Unlink'/*,'Anchor'*/], ! ['Image','Table','Rule','SpecialChar'/*,'UniversalKey'*/,'Smiley'], ! /*['Form','Checkbox','Radio','Input','Textarea','Select','Button','ImageButton','Hidden']*/ ! /*['ShowTableBorders','ShowDetails','-','Zoom'],*/ ! [/*'FontStyleAdv','-','FontStyle','-',*/'FontFormat','-','FontName','-','FontSize'], ! ['TextColor','BGColor'], ! ['About'] ! ] ; ! FCKConfig.ToolbarSets["Basic"] = [ ! ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ! ] ; ! ! // Font Colors ! 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' ; ! ! // Font Names ! FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; ! ! // Link Browsing ! FCKConfig.LinkBrowser = true ; ! FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% ! FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% ! ! // Link Upload ! FCKConfig.LinkUpload = false ; ! FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx" ; ! FCKConfig.LinkUploadWindowWidth = 300 ; ! FCKConfig.LinkUploadWindowHeight = 150 ; ! FCKConfig.LinkUploadAllowedExtensions = "*" ; // * or empty for all ! FCKConfig.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for no one ! ! // Image Browsing ! FCKConfig.ImageBrowser = true ; ! FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; ! FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; ! ! // Smiley Dialog ! 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 ; ! ! //** ! // Load the custom configurations file ! if ( FCKConfig.CustomConfigurationsPath.length > 0 ) FCKScriptLoader.AddScript( FCKConfig.CustomConfigurationsPath ) ; \ No newline at end of file --- 1,114 ---- /* ! * 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: fckconfig.js ! * Editor configuration settings. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:27:01 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // Custom Configurations (leave blank to ignore) ! FCKConfig.CustomConfigurationsPath = '' ; // '/fckeditor.config.js' ; ! ! // Enables the debug window ! FCKConfig.Debug = false ; ! ! // Set the path for the skin files to use. ! FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; ! ! // Language settings ! FCKConfig.AutoDetectLanguage = true ; ! FCKConfig.DefaultLanguage = "en" ; ! ! // Enable XHTML support ! FCKConfig.EnableXHTML = true ; ! FCKConfig.EnableSourceXHTML = true ; ! ! // Tells Gecko browsers to use SPAN instead of <B>, <I> and <U>. ! FCKConfig.GeckoUseSPAN = true ; ! ! // Force the editor to get the focus on startup (page load). ! FCKConfig.StartupFocus = true ; ! ! // Cut and Paste options ! FCKConfig.ForcePasteAsPlainText = false ; ! ! // Link: Target Windows ! FCKConfig.LinkShowTargets = true ; ! FCKConfig.LinkTargets = '_blank;_parent;_self;_top' ; ! FCKConfig.LinkDefaultTarget = '' ; ! ! FCKConfig.ToolbarStartExpanded = true ; ! FCKConfig.ToolbarCanCollapse = true ; ! ! //## ! //## Toolbar Buttons Sets ! //## ! FCKConfig.ToolbarSets = new Object() ; ! FCKConfig.ToolbarSets["Default"] = [ ! ['Source','-','Save','NewPage','Preview'], ! ['Cut','Copy','Paste','PasteText','PasteWord','-','Print'/*,'SpellCheck'*/], ! ['Undo','Redo',/*'-','Find','Replace',*/'-','SelectAll','RemoveFormat'], ! ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ! ['OrderedList','UnorderedList','-','Outdent','Indent'], ! ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ! ['Link','Unlink'/*,'Anchor'*/], ! ['Image','Table','Rule','SpecialChar'/*,'UniversalKey'*/,'Smiley'], ! /*['Form','Checkbox','Radio','Input','Textarea','Select','Button','ImageButton','Hidden']*/ ! /*['ShowTableBorders','ShowDetails','-','Zoom'],*/ ! [/*'FontStyleAdv','-','FontStyle','-',*/'FontFormat','-','FontName','-','FontSize'], ! ['TextColor','BGColor'], ! ['About'] ! ] ; ! FCKConfig.ToolbarSets["Basic"] = [ ! ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] ! ] ; ! ! // Font Colors ! 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' ; ! ! // Font Names ! FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; ! ! // Link Browsing ! FCKConfig.LinkBrowser = true ; ! FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.LinkBrowserWindowWidth = screen.width * 0.7 ; // 70% ! FCKConfig.LinkBrowserWindowHeight = screen.height * 0.7 ; // 70% ! ! // Link Upload ! FCKConfig.LinkUpload = false ; ! FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx" ; ! FCKConfig.LinkUploadWindowWidth = 300 ; ! FCKConfig.LinkUploadWindowHeight = 150 ; ! FCKConfig.LinkUploadAllowedExtensions = "*" ; // * or empty for all ! FCKConfig.LinkUploadDeniedExtensions = ".exe .asp .php .aspx .js .cfm .dll" ; // empty for no one ! ! // Image Browsing ! FCKConfig.ImageBrowser = true ; ! FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx" ; ! FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ; ! FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ; ! ! // Smiley Dialog ! 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 ; ! ! //** ! // Load the custom configurations file ! if ( FCKConfig.CustomConfigurationsPath.length > 0 ) FCKScriptLoader.AddScript( FCKConfig.CustomConfigurationsPath ) ; \ No newline at end of file Index: fckeditor.js =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.js,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.js 25 Oct 2004 18:08:15 -0000 1.1.1.1 --- fckeditor.js 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,160 **** /* ! * 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.js ! * This is the integration file for JavaScript. ! * ! * It defines the FCKeditor class that can be used to create editor ! * instances in a HTML page in the client side. For server side ! * operations, use the specific integration system. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:55 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // FCKeditor Class ! var FCKeditor = function( instanceName, width, height, toolbarSet, value ) ! { ! // Properties ! this.InstanceName = instanceName ; ! this.Width = width || '100%' ; ! this.Height = height || '200' ; ! this.ToolbarSet = toolbarSet || 'Default' ; ! this.Value = value || '' ; ! this.BasePath = '/fckeditor/' ; ! this.CheckBrowser = true ; ! this.DisplayErrors = true ; ! ! this.Config = new Object() ; ! ! // Events ! this.OnError = null ; // function( source, errorNumber, errorDescription ) ! } ! ! FCKeditor.prototype.Create = function() ! { ! // Check for errors ! if ( !this.InstanceName || this.InstanceName.length == 0 ) ! { ! this._ThrowError( 701, 'You must specify a instance name.' ) ; ! return ; ! } ! ! document.write( '<div>' ) ; ! ! 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() ) ; ! } ! else ! { ! var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; ! var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; ! document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; ! } ! ! document.write( '</div>' ) ; ! } ! ! FCKeditor.prototype.ReplaceTextarea = function() ! { ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! var oTextarea = document.getElementsByName( this.InstanceName )[0] ; ! oTextarea.style.display = 'none' ; ! this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; ! this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; ! } ! } ! ! FCKeditor.prototype._InsertHtmlBefore = function( html, element ) ! { ! if ( element.insertAdjacentHTML ) // IE ! element.insertAdjacentHTML( 'beforeBegin', html ) ; ! else // Gecko ! { ! var oRange = document.createRange() ; ! oRange.setStartBefore( element ) ; ! var oFragment = oRange.createContextualFragment( html ); ! element.parentNode.insertBefore( oFragment, element ) ; ! } ! } ! ! FCKeditor.prototype._GetConfigHtml = function() ! { ! var sConfig = '' ; ! for ( var o in this.Config ) ! { ! if ( sConfig.length > 0 ) sConfig += '&' ; ! sConfig += this._HTMLEncode(o) + '=' + this._HTMLEncode( this.Config[o] ) ; ! } ! ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '">' ; ! } ! ! FCKeditor.prototype._GetIFrameHtml = function() ! { ! var sLink = this.BasePath + 'editor/fckeditor.html?InstanceName=' + this.InstanceName ; ! if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; ! ! return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; ! } ! ! FCKeditor.prototype._IsCompatibleBrowser = function() ! { ! var sAgent = navigator.userAgent.toLowerCase() ; ! ! // Internet Explorer ! if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) ! { ! var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; ! return ( sBrowserVersion >= 5.5 ) ; ! } ! // Gecko ! else if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) ! return true ; ! else ! return false ; ! } ! ! FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) ! { ! this.ErrorNumber = errorNumber ; ! this.ErrorDescription = errorDescription ; ! ! if ( this.DisplayErrors ) ! { ! document.write( '<div style="COLOR: #ff0000">' ) ; ! document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; ! document.write( '</div>' ) ; ! } ! ! if ( typeof( this.OnError ) == 'function' ) ! this.OnError( this, errorNumber, errorDescription ) ; ! } ! ! FCKeditor.prototype._HTMLEncode = function( text ) ! { ! if ( typeof( text ) != "string" ) ! text = text.toString() ; ! ! text = text.replace(/&/g, "&") ; ! text = text.replace(/"/g, """) ; ! text = text.replace(/</g, "<") ; ! text = text.replace(/>/g, ">") ; ! text = text.replace(/'/g, "’") ; ! ! return text ; } \ No newline at end of file --- 1,160 ---- /* ! * 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.js ! * This is the integration file for JavaScript. ! * ! * It defines the FCKeditor class that can be used to create editor ! * instances in a HTML page in the client side. For server side ! * operations, use the specific integration system. ! * ! * Version: 2.0 Beta 2 ! * Modified: 2004-05-31 23:07:55 ! * ! * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! */ ! ! // FCKeditor Class ! var FCKeditor = function( instanceName, width, height, toolbarSet, value ) ! { ! // Properties ! this.InstanceName = instanceName ; ! this.Width = width || '100%' ; ! this.Height = height || '200' ; ! this.ToolbarSet = toolbarSet || 'Default' ; ! this.Value = value || '' ; ! this.BasePath = '/fckeditor/' ; ! this.CheckBrowser = true ; ! this.DisplayErrors = true ; ! ! this.Config = new Object() ; ! ! // Events ! this.OnError = null ; // function( source, errorNumber, errorDescription ) ! } ! ! FCKeditor.prototype.Create = function() ! { ! // Check for errors ! if ( !this.InstanceName || this.InstanceName.length == 0 ) ! { ! this._ThrowError( 701, 'You must specify a instance name.' ) ; ! return ; ! } ! ! document.write( '<div>' ) ; ! ! 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() ) ; ! } ! else ! { ! var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; ! var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; ! document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; ! } ! ! document.write( '</div>' ) ; ! } ! ! FCKeditor.prototype.ReplaceTextarea = function() ! { ! if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) ! { ! var oTextarea = document.getElementsByName( this.InstanceName )[0] ; ! oTextarea.style.display = 'none' ; ! this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; ! this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; ! } ! } ! ! FCKeditor.prototype._InsertHtmlBefore = function( html, element ) ! { ! if ( element.insertAdjacentHTML ) // IE ! element.insertAdjacentHTML( 'beforeBegin', html ) ; ! else // Gecko ! { ! var oRange = document.createRange() ; ! oRange.setStartBefore( element ) ; ! var oFragment = oRange.createContextualFragment( html ); ! element.parentNode.insertBefore( oFragment, element ) ; ! } ! } ! ! FCKeditor.prototype._GetConfigHtml = function() ! { ! var sConfig = '' ; ! for ( var o in this.Config ) ! { ! if ( sConfig.length > 0 ) sConfig += '&' ; ! sConfig += this._HTMLEncode(o) + '=' + this._HTMLEncode( this.Config[o] ) ; ! } ! ! return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '">' ; ! } ! ! FCKeditor.prototype._GetIFrameHtml = function() ! { ! var sLink = this.BasePath + 'editor/fckeditor.html?InstanceName=' + this.InstanceName ; ! if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; ! ! return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; ! } ! ! FCKeditor.prototype._IsCompatibleBrowser = function() ! { ! var sAgent = navigator.userAgent.toLowerCase() ; ! ! // Internet Explorer ! if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) ! { ! var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; ! return ( sBrowserVersion >= 5.5 ) ; ! } ! // Gecko ! else if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) ! return true ; ! else ! return false ; ! } ! ! FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) ! { ! this.ErrorNumber = errorNumber ; ! this.ErrorDescription = errorDescription ; ! ! if ( this.DisplayErrors ) ! { ! document.write( '<div style="COLOR: #ff0000">' ) ; ! document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; ! document.write( '</div>' ) ; ! } ! ! if ( typeof( this.OnError ) == 'function' ) ! this.OnError( this, errorNumber, errorDescription ) ; ! } ! ! FCKeditor.prototype._HTMLEncode = function( text ) ! { ! if ( typeof( text ) != "string" ) ! text = text.toString() ; ! ! text = text.replace(/&/g, "&") ; ! text = text.replace(/"/g, """) ; ! text = text.replace(/</g, "<") ; ! text = text.replace(/>/g, ">") ; ! text = text.replace(/'/g, "’") ; ! ! return text ; } \ No newline at end of file Index: fckeditor.cfm =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.cfm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.cfm 25 Oct 2004 18:08:12 -0000 1.1.1.1 --- fckeditor.cfm 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,148 **** ! <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 Beta 2 ! * Modified: 2004-05-27 12:24:11 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <!--- :: ! * Attribute validation ! :: ---> ! <cfparam name="attributes.instanceName" type="string"> ! <cfparam name="attributes.width" type="string" default="100%"> ! <cfparam name="attributes.height" type="string" default="200"> ! <cfparam name="attributes.toolbarSet" type="string" default="Default"> ! <cfparam name="attributes.value" type="string" default=""> ! <cfparam name="attributes.basePath" type="string" default="/fckeditor/"> ! <cfparam name="attributes.checkBrowser" type="boolean" default="true"> ! <cfparam name="attributes.config" type="struct" default="#structNew()#"> ! ! <!--- :: ! * check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true ! :: ---> ! <cfif attributes.checkBrowser> ! ! <cfscript> ! sAgent = lCase( cgi.HTTP_USER_AGENT ); ! isCompatibleBrowser = false; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 5.5 ) ! isCompatibleBrowser = true; ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 20030210 ) ! isCompatibleBrowser = true; ! } ! } ! </cfscript> ! ! <cfelse> ! <!--- :: If we should not check browser compatibility, assume true :: ---> ! <cfset isCompatibleBrowser = true> ! </cfif> ! ! ! <cfif isCompatibleBrowser> ! ! <!--- :: ! * show html editor area for compatible browser ! :: ---> ! ! <cfscript> ! // try to fix the basePath, if ending slash is missing ! if( len( attributes.basePath) and right( attributes.basePath, 1 ) is not "/" ) ! attributes.basePath = attributes.basePath & "/"; ! ! // construct the url ! sURL = attributes.basePath & "editor/fckeditor.html?InstanceName=" & attributes.instanceName; ! ! // 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) ! sConfig = ""; ! ! for( key in attributes.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat( key ) & '=' & HTMLEditFormat( attributes.config[key] ); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" /> ! <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! <cfelse> ! ! <!--- :: ! * show plain textarea for non compatible browser ! :: ---> ! ! <cfscript> ! // append unit "px" for numeric width and/or height values ! if( isNumeric( attributes.width ) ) ! attributes.width = attributes.width & "px"; ! if( isNumeric( attributes.height ) ) ! attributes.height = attributes.height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(attributes.value)#</textarea> ! </div> ! </cfoutput> ! ! </cfif> ! ! <cfsetting enablecfoutputonly="No"> --- 1,148 ---- ! <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 Beta 2 ! * Modified: 2004-05-27 12:24:11 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <!--- :: ! * Attribute validation ! :: ---> ! <cfparam name="attributes.instanceName" type="string"> ! <cfparam name="attributes.width" type="string" default="100%"> ! <cfparam name="attributes.height" type="string" default="200"> ! <cfparam name="attributes.toolbarSet" type="string" default="Default"> ! <cfparam name="attributes.value" type="string" default=""> ! <cfparam name="attributes.basePath" type="string" default="/fckeditor/"> ! <cfparam name="attributes.checkBrowser" type="boolean" default="true"> ! <cfparam name="attributes.config" type="struct" default="#structNew()#"> ! ! <!--- :: ! * check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true ! :: ---> ! <cfif attributes.checkBrowser> ! ! <cfscript> ! sAgent = lCase( cgi.HTTP_USER_AGENT ); ! isCompatibleBrowser = false; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 5.5 ) ! isCompatibleBrowser = true; ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! if( sBrowserVersion GTE 20030210 ) ! isCompatibleBrowser = true; ! } ! } ! </cfscript> ! ! <cfelse> ! <!--- :: If we should not check browser compatibility, assume true :: ---> ! <cfset isCompatibleBrowser = true> ! </cfif> ! ! ! <cfif isCompatibleBrowser> ! ! <!--- :: ! * show html editor area for compatible browser ! :: ---> ! ! <cfscript> ! // try to fix the basePath, if ending slash is missing ! if( len( attributes.basePath) and right( attributes.basePath, 1 ) is not "/" ) ! attributes.basePath = attributes.basePath & "/"; ! ! // construct the url ! sURL = attributes.basePath & "editor/fckeditor.html?InstanceName=" & attributes.instanceName; ! ! // 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) ! sConfig = ""; ! ! for( key in attributes.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat( key ) & '=' & HTMLEditFormat( attributes.config[key] ); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#attributes.instanceName#" name="#attributes.instanceName#" value="#HTMLEditFormat(attributes.value)#" /> ! <input type="hidden" id="#attributes.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#attributes.instanceName#___Frame" src="#sURL#" width="#attributes.width#" height="#attributes.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! <cfelse> ! ! <!--- :: ! * show plain textarea for non compatible browser ! :: ---> ! ! <cfscript> ! // append unit "px" for numeric width and/or height values ! if( isNumeric( attributes.width ) ) ! attributes.width = attributes.width & "px"; ! if( isNumeric( attributes.height ) ) ! attributes.height = attributes.height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#attributes.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(attributes.value)#</textarea> ! </div> ! </cfoutput> ! ! </cfif> ! ! <cfsetting enablecfoutputonly="No"> Index: fckeditor.cfc =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/mod/xwysiwyg/_fck/fckeditor.cfc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fckeditor.cfc 25 Oct 2004 18:08:12 -0000 1.1.1.1 --- fckeditor.cfc 7 Nov 2004 16:17:35 -0000 1.2 *************** *** 1,185 **** ! <cfcomponent output="no" 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 Beta 2 ! * Modified: 2004-05-27 12:39:32 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! <cffunction ! name="create" ! access="public" ! output="Yes" ! returntype="void" ! hint="Initialize the FCKEditor instance." ! > ! ! <cfparam name="this.instanceName" type="string" /> ! <cfparam name="this.width" type="string" default="100%" /> ! <cfparam name="this.height" type="string" default="200" /> ! <cfparam name="this.toolbarSet" type="string" default="Default" /> ! <cfparam name="this.value" type="string" default="" /> ! <cfparam name="this.basePath" type="string" default="/fckeditor/" /> ! <cfparam name="this.checkBrowser" type="boolean" default="true" /> ! <cfparam name="this.config" type="struct" default="#structNew()#" /> ! ! <cfscript> ! // display the html editor or a plain textarea? ! if( isCompatibleBrowser() ) ! showHTMLEditor(); ! else ! showTextArea(); ! </cfscript> ! ! </cffunction> ! ! <cffunction ! name="isCompatibleBrowser" ! access="private" ! output="no" ! returnType="boolean" ! hint="Check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true" ! > ! ! <cfscript> ! var sAgent = lCase( cgi.HTTP_USER_AGENT ); ! var stResult = ""; ! var sBrowserVersion = ""; ! ! // do not check if argument "checkBrowser" is false ! if( not this.checkBrowser ) ! return true; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 5.5 ); ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 20030210 ); ! } ! } ! ! return false; ! </cfscript> ! </cffunction> ! ! <cffunction ! name="showTextArea" ! access="private" ! output="yes" ! returnType="void" ! hint="Create a textarea field for non-compatible browsers." ! > ! ! <cfscript> ! var width = this.width; ! var height = this.height; ! ! // append unit "px" for numeric width and/or height values ! if( isNumeric( width ) ) ! width = width & "px"; ! if( isNumeric( height ) ) ! height = height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#this.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(this.value)#</textarea> ! </div> ! </cfoutput> ! ! </cffunction> ! ! <cffunction ! name="showHTMLEditor" ! access="private" ! output="yes" ! returnType="void" ! hint="Create the html editor instance for compatible browsers." ! > ! ! <cfscript> ! var sConfig = ""; ! var sURL = ""; ! var basePath = this.basePath; ! ! // try to fix the basePath, if ending slash is missing ! if( len( basePath) and right( basePath, 1 ) is not "/" ) ! basePath = basePath & "/"; ! ! // construct the url ! sURL = basePath & "editor/fckeditor.html?InstanceName=" & this.instanceName; ! ! // append toolbarset name to the url ! if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! for( key in this.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat(key) & '=' & HTMLEditFormat(this.config[key]); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#this.instanceName#" name="#this.instanceName#" value="#HTMLEditFormat(this.value)#" /> ! <input type="hidden" id="#this.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#this.instanceName#___Frame" src="#sURL#" width="#this.width#" height="#this.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! </cffunction> ! </cfcomponent> \ No newline at end of file --- 1,186 ---- ! <cfcomponent output="no" 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 Beta 2 ! * Modified: 2004-05-27 12:39:32 ! * ! * File Authors: * Hendrik Kramer (hk...@lw...) ! ---> ! ! <cffunction ! name="create" ! access="public" ! output="Yes" ! returntype="void" ! hint="Initialize the FCKEditor instance." ! > ! ! <cfparam name="this.instanceName" type="string" /> ! <cfparam name="this.width" type="string" default="100%" /> ! <cfparam name="this.height" type="string" default="200" /> ! <cfparam name="this.toolbarSet" type="string" default="Default" /> ! <cfparam name="this.value" type="string" default="" /> ! <cfparam name="this.basePath" type="string" default="/fckeditor/" /> ! <cfparam name="this.checkBrowser" type="boolean" default="true" /> ! <cfparam name="this.config" type="struct" default="#structNew()#" /> ! ! <cfscript> ! // display the html editor or a plain textarea? ! if( isCompatibleBrowser() ) ! showHTMLEditor(); ! else ! showTextArea(); ! </cfscript> ! ! </cffunction> ! ! <cffunction ! name="isCompatibleBrowser" ! access="private" ! output="no" ! returnType="boolean" ! hint="Check browser compatibility via HTTP_USER_AGENT, if checkBrowser is true" ! > ! ! <cfscript> ! var sAgent = lCase( cgi.HTTP_USER_AGENT ); ! var stResult = ""; ! var sBrowserVersion = ""; ! ! // do not check if argument "checkBrowser" is false ! if( not this.checkBrowser ) ! return true; ! ! // check for Internet Explorer ( >= 5.5 ) ! if( find( "msie", sAgent ) and not find( "mac", sAgent ) and not find( "opera", sAgent ) ) ! { ! // try to extract IE version ! stResult = reFind( "msie ([5-9]\.[0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get IE Version ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 5.5 ); ! } ! } ! // check for Gecko ( >= 20030210+ ) ! else if( find( "gecko", sAgent ) ) ! { ! // try to extract Gecko version date ! stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true ); ! if( arrayLen( stResult.pos ) eq 2 ) ! { ! // get Gecko build (i18n date) ! sBrowserVersion = mid( sAgent, stResult.pos[2], stResult.len[2] ); ! return ( sBrowserVersion GTE 20030210 ); ! } ! } ! ! return false; ! </cfscript> ! </cffunction> ! ! <cffunction ! name="showTextArea" ! access="private" ! output="yes" ! returnType="void" ! hint="Create a textarea field for non-compatible browsers." ! > ! ! <cfscript> ! var width = this.width; ! var height = this.height; ! ! // append unit "px" for numeric width and/or height values ! if( isNumeric( width ) ) ! width = width & "px"; ! if( isNumeric( height ) ) ! height = height & "px"; ! </cfscript> ! ! <cfoutput> ! <div> ! <textarea name="#this.instanceName#" rows="4" cols="40" style="WIDTH: #width#; HEIGHT: #height#" wrap="virtual">#HTMLEditFormat(this.value)#</textarea> ! </div> ! </cfoutput> ! ! </cffunction> ! ! <cffunction ! name="showHTMLEditor" ! access="private" ! output="yes" ! returnType="void" ! hint="Create the html editor instance for compatible browsers." ! > ! ! <cfscript> ! var sConfig = ""; ! var sURL = ""; ! var basePath = this.basePath; ! ! // try to fix the basePath, if ending slash is missing ! if( len( basePath) and right( basePath, 1 ) is not "/" ) ! basePath = basePath & "/"; ! ! // construct the url ! sURL = basePath & "editor/fckeditor.html?InstanceName=" & this.instanceName; ! ! // append toolbarset name to the url ! if( len( this.toolbarSet ) ) ! sURL = sURL & "&Toolbar=" & this.toolbarSet; ! ! // create configuration string: Key1=Value1&Key2=Value2&... (Key/Value:HTML encoded) ! for( key in this.config ) ! { ! if( len( sConfig ) ) ! sConfig = sConfig & '&'; ! sConfig = sConfig & HTMLEditFormat(key) & '=' & HTMLEditFormat(this.config[key]); ! } ! </cfscript> ! ! <cfoutput> ! <div> ! <input type="hidden" id="#this.instanceName#" name="#this.instanceName#" value="#HTMLEditFormat(this.value)#" /> ! <input type="hidden" id="#this.instanceName#___Config" value="#sConfig#" /> ! <iframe id="#this.instanceName#___Frame" src="#sURL#" width="#this.width#" height="#this.height#" frameborder="no" scrolling="no"></iframe> ! </div> ! </cfoutput> ! ! </cffunction> ! </cfcomponent> \ No newline at end of file |