phpslash-commit Mailing List for phpSlash (Page 14)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2004-10-30 14:19:12
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2 Added Files: AssemblyInfo.cs FCKeditor.cs FCKeditorConfigurations.cs FCKeditorDesigner.cs FileBrowserConnector.cs FredCK.FCKeditorV2.FxCop FredCK.FCKeditorV2.csproj FredCK.FCKeditorV2.csproj.user FredCK.FCKeditorV2.snk XmlUtil.cs Log Message: complete fckeditor addition --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Permissions ; using System.Web.UI ; [assembly:TagPrefix("FredCK.FCKeditorV2", "FCKeditorV2")] [assembly:System.CLSCompliant(true)] [assembly:System.Runtime.InteropServices.ComVisible(false)] // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile(@"..\..\FredCK.FCKeditorV2.snk")] [assembly: AssemblyKeyName("")] --- NEW FILE: FCKeditor.cs --- /* * 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.cs * This is the FCKeditor Asp.Net control. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:17:23 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ using System ; using System.Web.UI ; using System.Web.UI.WebControls ; using System.ComponentModel ; using System.Text.RegularExpressions ; using System.Globalization ; using System.Security.Permissions ; namespace FredCK.FCKeditorV2 { // [ System.Web.AspNetHostingPermission(SecurityAction.LinkDemand) ] [ DefaultProperty("Value") ] [ ValidationProperty("Value") ] [ ToolboxData("<{0}:FCKeditor runat=server></{0}:FCKeditor>") ] [ Designer("FredCK.FCKeditorV2.FCKeditorDesigner") ] [ ParseChildren(false) ] public class FCKeditor : System.Web.UI.Control, IPostBackDataHandler { private FCKeditorConfigurations oConfig ; public FCKeditor() { oConfig = new FCKeditorConfigurations() ; } [ Browsable( false ) ] public FCKeditorConfigurations Config { get { return oConfig ; } } [ DefaultValue( "" ) ] public string Value { get { return (string)IsNull( ViewState["Value"], "" ) ; } set { ViewState["Value"] = value ; } } [ DefaultValue( "/FCKeditor/" ) ] public string BasePath { get { return (string)IsNull( ViewState["BasePath"], "" ) ; } set { ViewState["BasePath"] = value ; } } [ DefaultValue( "Default" ) ] public string ToolbarSet { get { return (string)IsNull( ViewState["ToolbarSet"], "Default" ) ; } set { ViewState["ToolbarSet"] = value ; } } [ Category( "Appearence" ) ] [ DefaultValue( "100%" ) ] public Unit Width { get { return (Unit)IsNull( ViewState["Width"], Unit.Parse("100%", CultureInfo.InvariantCulture) ) ; } set { ViewState["Width"] = value ; } } [ Category("Appearence") ] [ DefaultValue( "200px" ) ] public Unit Height { get { return (Unit)IsNull( ViewState["Height"], Unit.Parse("200px", CultureInfo.InvariantCulture) ) ; } set { ViewState["Height"] = value ; } } public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection) { if (postCollection[postDataKey] != Value) { Value = postCollection[postDataKey]; return true; } return false; } public bool CheckBrowserCompatibility() { System.Web.HttpBrowserCapabilities oBrowser = Page.Request.Browser ; // Internet Explorer 5.5+ for Windows if (oBrowser.Browser == "IE" && ( oBrowser.MajorVersion >= 6 || ( oBrowser.MajorVersion == 5 && oBrowser.MinorVersion >= 5 ) ) && oBrowser.Win32) return true ; else { Match oMatch = Regex.Match( this.Page.Request.UserAgent, @"(?<=Gecko/)\d{8}" ) ; return ( oMatch.Success && int.Parse( oMatch.Value, CultureInfo.InvariantCulture ) >= 20030210 ) ; } } protected override void Render(HtmlTextWriter writer) { writer.Write( "<div>" ) ; if ( this.CheckBrowserCompatibility() ) { string sLink = this.BasePath + "editor/fckeditor.html?InstanceName=" + this.UniqueID ; if ( this.ToolbarSet.Length > 0 ) sLink += "&Toolbar=" + this.ToolbarSet ; // Render the linked hidden field. writer.Write( "<input type=\"hidden\" id=\"{0}\" name=\"{0}\" value=\"{1}\">", this.UniqueID, System.Web.HttpUtility.HtmlEncode( this.Value ) ) ; // Render the configurations hidden field. writer.Write( "<input type=\"hidden\" id=\"{0}___Config\" value=\"{1}\">", this.UniqueID, this.Config.GetHiddenFieldString() ) ; // Render the editor IFRAME. writer.Write( "<iframe id=\"{0}___Frame\" src=\"{1}\" width=\"{2}\" height=\"{3}\" frameborder=\"no\" scrolling=\"no\"></iframe>", this.UniqueID, sLink, this.Width, this.Height ) ; } else { writer.Write( "<textarea name=\"{0}\" rows=\"4\" cols=\"40\" style=\"width: {1}; height: {2}\" wrap=\"virtual\">{3}</textarea>", this.UniqueID, this.Width, this.Height, System.Web.HttpUtility.HtmlEncode( this.Value ) ) ; } writer.Write( "</div>" ) ; } public void RaisePostDataChangedEvent() { // Do nothing } private object IsNull( object valueToCheck, object replacementValue ) { return valueToCheck == null ? replacementValue : valueToCheck ; } } } --- NEW FILE: FCKeditorConfigurations.cs --- /* * 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: FCKeditorConfigurations.cs * Class that holds all editor configurations. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:17:23 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ using System ; using System.Collections ; namespace FredCK.FCKeditorV2 { public class FCKeditorConfigurations { private Hashtable colConfigs ; internal FCKeditorConfigurations() { colConfigs = new Hashtable() ; } public string this[ string configurationName ] { get { if ( colConfigs.ContainsKey( configurationName ) ) return (string)colConfigs[ configurationName ] ; else return null ; } set { colConfigs[ configurationName ] = value ; } } internal string GetHiddenFieldString() { System.Text.StringBuilder osParams = new System.Text.StringBuilder() ; foreach ( DictionaryEntry oEntry in colConfigs ) { if ( osParams.Length > 0 ) osParams.Append( '&' ) ; osParams.AppendFormat( "{0}={1}", System.Web.HttpUtility.HtmlEncode( oEntry.Key.ToString() ), System.Web.HttpUtility.HtmlEncode( oEntry.Value.ToString() ) ) ; } return osParams.ToString() ; } } } --- NEW FILE: FCKeditorDesigner.cs --- /* * 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: FCKeditorDesigner.cs * The EditorDesigner class defines the editor visualization at design * time. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:17:24 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ using System ; using System.Globalization ; namespace FredCK.FCKeditorV2 { public class FCKeditorDesigner : System.Web.UI.Design.ControlDesigner { public FCKeditorDesigner() { } public override string GetDesignTimeHtml() { FCKeditor oControl = (FCKeditor)Component ; return String.Format( CultureInfo.InvariantCulture, "<div><table width=\"{0}\" height=\"{1}\" bgcolor=\"#f5f5f5\" bordercolor=\"#c7c7c7\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\"><tr><td valign=\"middle\" align=\"center\">FCKeditor V2 - <b>{2}</b></td></tr></table></div>", oControl.Width, oControl.Height, oControl.ID ) ; } } } --- NEW FILE: FileBrowserConnector.cs --- /* * 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: FileBrowserConnector.cs * This is the code behind of the connector.aspx page used by the * File Browser. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:17:24 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ using System ; using System.Globalization ; using System.Xml ; using System.Web ; namespace FredCK.FCKeditorV2 { public class FileBrowserConnector : System.Web.UI.Page { private const string DEFAULT_USER_FILES_PATH = "/UserFiles/" ; private string sUserFilesPath ; private string sUserFilesDirectory ; protected override void OnLoad(EventArgs e) { // Get the main request informaiton. string sCommand = Request.QueryString["Command"] ; if ( sCommand == null ) return ; string sResourceType = Request.QueryString["Type"] ; if ( sResourceType == null ) return ; string sCurrentFolder = Request.QueryString["CurrentFolder"] ; if ( sCurrentFolder == null ) return ; // Check the current folder syntax (must begin and start with a slash). if ( ! sCurrentFolder.EndsWith( "/" ) ) sCurrentFolder += "/" ; if ( ! sCurrentFolder.StartsWith( "/" ) ) sCurrentFolder = "/" + sCurrentFolder ; // File Upload doesn't have to return XML, so it must be intercepted before anything. if ( sCommand == "FileUpload" ) { this.FileUpload( sResourceType, sCurrentFolder ) ; return ; } // Cleans the response buffer. Response.ClearHeaders() ; Response.Clear() ; // Prevent the browser from caching the result. Response.CacheControl = "no-cache" ; // Set the response format. Response.ContentEncoding = System.Text.UTF8Encoding.UTF8 ; Response.ContentType = "text/xml" ; XmlDocument oXML = new XmlDocument() ; XmlNode oConnectorNode = CreateBaseXml( oXML, sCommand, sResourceType, sCurrentFolder ) ; // Execute the required command. switch( sCommand ) { case "GetFolders" : this.GetFolders( oConnectorNode, sResourceType, sCurrentFolder ) ; break ; case "GetFoldersAndFiles" : this.GetFolders( oConnectorNode, sResourceType, sCurrentFolder ) ; this.GetFiles( oConnectorNode, sResourceType, sCurrentFolder ) ; break ; case "CreateFolder" : this.CreateFolder( oConnectorNode, sResourceType, sCurrentFolder ) ; break ; } // Output the resulting XML. Response.Write( oXML.OuterXml ) ; Response.End() ; } #region Base XML Creation private XmlNode CreateBaseXml( XmlDocument xml, string command, string resourceType, string currentFolder ) { // Create the XML document header. xml.AppendChild( xml.CreateXmlDeclaration( "1.0", "utf-8", null ) ) ; // Create the main "Connector" node. XmlNode oConnectorNode = XmlUtil.AppendElement( xml, "Connector" ) ; XmlUtil.SetAttribute( oConnectorNode, "command", command ) ; XmlUtil.SetAttribute( oConnectorNode, "resourceType", resourceType ) ; // Add the current folder node. XmlNode oCurrentNode = XmlUtil.AppendElement( oConnectorNode, "CurrentFolder" ) ; XmlUtil.SetAttribute( oCurrentNode, "path", currentFolder ) ; XmlUtil.SetAttribute( oCurrentNode, "url", GetUrlFromPath( resourceType, currentFolder) ) ; return oConnectorNode ; } #endregion #region Command Handlers private void GetFolders( XmlNode connectorNode, string resourceType, string currentFolder ) { // Map the virtual path to the local server path. string sServerDir = this.ServerMapFolder( resourceType, currentFolder ) ; // Create the "Folders" node. XmlNode oFoldersNode = XmlUtil.AppendElement( connectorNode, "Folders" ) ; System.IO.DirectoryInfo oDir = new System.IO.DirectoryInfo( sServerDir ) ; System.IO.DirectoryInfo[] aSubDirs = oDir.GetDirectories() ; for ( int i = 0 ; i < aSubDirs.Length ; i++ ) { // Create the "Folders" node. XmlNode oFolderNode = XmlUtil.AppendElement( oFoldersNode, "Folder" ) ; XmlUtil.SetAttribute( oFolderNode, "name", aSubDirs[i].Name ) ; } } private void GetFiles( XmlNode connectorNode, string resourceType, string currentFolder ) { // Map the virtual path to the local server path. string sServerDir = this.ServerMapFolder( resourceType, currentFolder ) ; // Create the "Files" node. XmlNode oFilesNode = XmlUtil.AppendElement( connectorNode, "Files" ) ; System.IO.DirectoryInfo oDir = new System.IO.DirectoryInfo( sServerDir ) ; System.IO.FileInfo[] aFiles = oDir.GetFiles() ; for ( int i = 0 ; i < aFiles.Length ; i++ ) { long iFileSize = ( aFiles[i].Length / 1024 ) ; if ( iFileSize < 1 ) iFileSize = 1 ; // Create the "Folders" node. XmlNode oFileNode = XmlUtil.AppendElement( oFilesNode, "File" ) ; XmlUtil.SetAttribute( oFileNode, "name", aFiles[i].Name ) ; XmlUtil.SetAttribute( oFileNode, "size", iFileSize.ToString( CultureInfo.InvariantCulture ) ) ; } } private void CreateFolder( XmlNode connectorNode, string resourceType, string currentFolder ) { string sErrorNumber = "0" ; string sNewFolderName = Request.QueryString["NewFolderName"] ; if ( sNewFolderName == null || sNewFolderName.Length == 0 ) sErrorNumber = "102" ; else { // Map the virtual path to the local server path of the current folder. string sServerDir = this.ServerMapFolder( resourceType, currentFolder ) ; System.IO.DirectoryInfo oDir = new System.IO.DirectoryInfo( sServerDir ) ; try { oDir.CreateSubdirectory( sNewFolderName ) ; } catch ( ArgumentException ) { sErrorNumber = "102" ; } catch ( System.IO.PathTooLongException ) { sErrorNumber = "102" ; } catch ( System.IO.IOException ) { sErrorNumber = "101" ; } catch ( System.Security.SecurityException ) { sErrorNumber = "103" ; } catch ( Exception ) { sErrorNumber = "110" ; } } // Create the "Error" node. XmlNode oErrorNode = XmlUtil.AppendElement( connectorNode, "Error" ) ; XmlUtil.SetAttribute( oErrorNode, "number", sErrorNumber ) ; } private void FileUpload( string resourceType, string currentFolder ) { HttpPostedFile oFile = Request.Files["NewFile"] ; string sErrorNumber = "0" ; string sFileName = "" ; if ( oFile != null ) { // Map the virtual path to the local server path. string sServerDir = this.ServerMapFolder( resourceType, currentFolder ) ; // Get the uploaded file name. sFileName = System.IO.Path.GetFileName( oFile.FileName ) ; int iCounter = 0 ; while ( true ) { string sFilePath = System.IO.Path.Combine( sServerDir, sFileName ) ; if ( System.IO.File.Exists( sFilePath ) ) { iCounter++ ; sFileName = System.IO.Path.GetFileNameWithoutExtension( oFile.FileName ) + "(" + iCounter + ")" + System.IO.Path.GetExtension( oFile.FileName ) ; sErrorNumber = "201" ; } else { oFile.SaveAs( sFilePath ) ; break ; } } } else sErrorNumber = "202" ; Response.Clear() ; Response.Write( "<script type=\"text/javascript\">" ) ; Response.Write( "window.parent.frames['frmUpload'].OnUploadCompleted(" + sErrorNumber + ",'" + sFileName.Replace( "'", "\\'" ) + "') ;" ) ; Response.Write( "</script>" ) ; Response.End() ; } #endregion #region Directory Mapping private string ServerMapFolder( string resourceType, string folderPath ) { // Get the resource type directory. string sResourceTypePath = System.IO.Path.Combine( this.UserFilesDirectory, resourceType ) ; // Ensure that the directory exists. System.IO.Directory.CreateDirectory( sResourceTypePath ) ; // Return the resource type directory combined with the required path. return System.IO.Path.Combine( sResourceTypePath, folderPath.TrimStart('/') ) ; } private string GetUrlFromPath( string resourceType, string folderPath ) { return this.UserFilesPath + resourceType + folderPath ; } private string UserFilesPath { get { if ( sUserFilesPath == null ) { // Try to get the User Files path from the Web.config file. sUserFilesPath = System.Configuration.ConfigurationSettings.AppSettings["FCKeditor:UserFilesPath"] ; // If it was not set in the Web.config file then use the default value. if ( sUserFilesPath == null || UserFilesPath.Length == 0 ) sUserFilesPath = DEFAULT_USER_FILES_PATH ; // Check that the user path ends with slash ("/") if ( ! sUserFilesPath.EndsWith("/") ) sUserFilesPath += "/" ; } return sUserFilesPath ; } } private string UserFilesDirectory { get { if ( sUserFilesDirectory == null ) { // Get the local (server) directory path translation. sUserFilesDirectory = Server.MapPath( this.UserFilesPath ) ; } return sUserFilesDirectory ; } } #endregion } } --- NEW FILE: FredCK.FCKeditorV2.FxCop --- <?xml version="1.0" encoding="utf-8"?> <FxCopProject Version="1.3" Name="FCKeditor V2"> <ProjectOptions> <SharedProject>False</SharedProject> <Stylesheet Apply="False">c:\program files\microsoft fxcop 1.21\Xml\FxCopReport.xsl</Stylesheet> <SaveMessages> <Project Status="Active, Excluded" NewOnly="False" /> <Report Status="Active" NewOnly="False" /> </SaveMessages> <ProjectFile Compress="True" DefaultTargetCheck="True" DefaultRuleCheck="True" SaveByRuleGroup="" Deterministic="False" /> <PermitAnalysis>True</PermitAnalysis> <SourceLookup>True</SourceLookup> <AnalysisExceptionsThreshold>100</AnalysisExceptionsThreshold> <RuleExceptionsThreshold>10</RuleExceptionsThreshold> <Spelling Locale="en-us" /> </ProjectOptions> <Targets> <Target Name="bin\Debug\FredCK.FCKeditorV2.dll" Analyze="True" AnalyzeAllChildren="True" /> </Targets> <Rules> <RuleFiles> <RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\ComRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\DesignRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\GlobalizationRules.dll" Enabled="True" AllRulesEnabled="True" /> <RuleFile Name="$(FxCopDir)\Rules\NamingRules.dll" Enabled="True" AllRulesEnabled="True" /> </RuleFiles> <Groups /> <Settings /> </Rules> <FxCopReport Version="1.3" LastAnalysis="2004-05-27 17:07:20Z"> <Namespaces> <Namespace Name="FredCK.FCKeditorV2"> <Messages> <Message ID="Keditor" Status="Excluded" Created="2004-01-14 00:37:50Z"> <Rule TypeName="NamespaceNamesShouldBeSpelledCorrectly" /> <Issues> <Issue Certainty="50" Level="CriticalWarning"> <Resolution> <Data> <Items> <Item>FredCK.FCKeditorV2</Item> <Item>Keditor</Item> </Items> </Data> </Resolution> </Issue> </Issues> <Notes> <User Name="fredck"> <Note ID="3" /> </User> </Notes> </Message> </Messages> </Namespace> </Namespaces> <Targets> <Target Name="bin\Debug\FredCK.FCKeditorV2.dll"> <Messages> <Message Status="Active" Created="2004-05-19 14:38:32Z"> <Rule TypeName="AssembliesHavePermissionRequests" /> <Issues> <Issue Certainty="99" Level="CriticalError"> <Resolution> <Data> <Items> <Item>FredCK.FCKeditorV2</Item> </Items> </Data> </Resolution> </Issue> </Issues> </Message> </Messages> <Modules> <Module Name="fredck.fckeditorv2.dll"> <Namespaces> <Namespace Name="FredCK.FCKeditorV2"> <Classes> <Class Name="Editor"> <Methods> <Method Name="Render(System.Web.UI.HtmlTextWriter):System.Void"> <Messages> <Message Status="Active" Created="2004-05-19 14:48:27Z"> <Rule TypeName="VirtualMethodsAndOverridesRequireSameLinkDemands" /> <Issues> <Issue Certainty="33" Level="CriticalError"> <SourceCode Path="D:\Work\FCKEditor\www\FCKeditor.V2\_aspnet\FredCK.FCKeditorV2" File="Editor.cs" Line="102" /> <Resolution> <Data> <Items> <Item>Render</Item> <Item>Render</Item> <Item>Control</Item> </Items> </Data> </Resolution> </Issue> </Issues> </Message> </Messages> </Method> <Method Name="RaisePostDataChangedEvent():System.Void"> <Messages> <Message Status="Active" Created="2004-05-19 14:48:27Z"> <Rule TypeName="EventsShouldBeUsed" /> <Issues> <Issue Certainty="75" Level="Warning"> <SourceCode Path="D:\Work\FCKEditor\www\FCKeditor.V2\_aspnet\FredCK.FCKeditorV2" File="Editor.cs" Line="141" /> <Resolution> <Data> <Items> <Item>RaisePostDataChangedEvent</Item> </Items> </Data> </Resolution> </Issue> </Issues> </Message> </Messages> </Method> </Methods> </Class> <Class Name="FileBrowserConnector"> <Methods> <Method Name="CreateFolder(System.Xml.XmlNode,System.String,System.String):System.Void"> <Messages> <Message Status="Excluded" Created="2004-05-27 17:07:20Z"> <Rule TypeName="ExceptionAndSystemExceptionTypesAreNotCaught" /> <Issues> <Issue Certainty="95" Level="CriticalError"> <SourceCode Path="D:\Work\FCKEditor\www\FCKeditor.V2\_aspnet\FredCK.FCKeditorV2" File="FileBrowserConnector.cs" Line="185" /> <Resolution> <Data> <Items> <Item>CreateFolder</Item> <Item>Exception</Item> </Items> </Data> </Resolution> </Issue> </Issues> <Notes> <User Name="fredck"> <Note ID="1" /> </User> </Notes> </Message> </Messages> </Method> </Methods> </Class> <Class Name="FCKeditorConfigurations"> <Messages> <Message ID="Keditor" Status="Excluded" Created="2004-05-27 17:05:04Z"> <Rule TypeName="TypeNamesShouldBeSpelledCorrectly" /> <Issues> <Issue Certainty="75" Level="CriticalWarning"> <Resolution> <Data> <Items> <Item>FCKeditorConfigurations</Item> <Item>Keditor</Item> </Items> </Data> </Resolution> </Issue> </Issues> <Notes> <User Name="fredck"> <Note ID="2" /> </User> </Notes> </Message> </Messages> </Class> </Classes> </Namespace> </Namespaces> </Module> </Modules> </Target> </Targets> <Notes> <User Name="fredck"> <Note ID="1" Modified="2004-05-27 17:08:08Z">The exception is handled in the right way in this case.</Note> <Note ID="2" Modified="2004-05-27 17:08:48Z">FxCop was confused with the editor name.</Note> <Note ID="3" Modified="2004-05-27 17:12:26Z">FxCop was confused with the editor name.</Note> </User> </Notes> <Rules> <Rule TypeName="AssembliesHavePermissionRequests"> <Name>Assemblies specify permission requests</Name> <Description>Permission requests prevent security exceptions from being thrown after code in an assembly has already begun executing. With permission requests, the assembly does not load if it has insufficient permissions. This rule will fire if you have specified a permission request incorrectly, or incompletely. If you have specified requests but FxCop reports a violation for this rule, use the PermView.exe tool to view the security permissions in the assembly. An unenforceable permission appears as an empty permission set.</Description> <LongDescription>You should add attributes specifying what permissions your assembly will demand, might demand, and what permissions it does not want granted. For example, the following attribute indicates that an assembly will, at minimum, require read access to the USERNAME environment variable: [assembly:EnvironmentPermissionAttribute(SecurityAction.RequestMinimum, Read="USERNAME")]. To specify permissions that the assembly might demand, use SecurityAction.RequestOptional. To specify permissions that the assembly must not be granted, use SecurityAction.RequestRefuse.</LongDescription> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/UsageRules/AssembliesPermissionRequests.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="99">CriticalError</MessageLevel> <File Name="UsageRules.dll" Version="1.30.0.0" /> </Rule> <Rule TypeName="EventsShouldBeUsed"> <Name>The .NET event model should be used whenever appropriate</Name> <Description>A method name suggestive of event functionality was encountered.</Description> <LongDescription /> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/DesignRules/EventsShouldBeUsed.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="75">Warning</MessageLevel> <File Name="DesignRules.dll" Version="1.30.0.0" /> </Rule> <Rule TypeName="ExceptionAndSystemExceptionTypesAreNotCaught"> <Name>System.Exception and System.SystemException are not caught</Name> <Description>You should not catch Exception or SystemException.</Description> <LongDescription>Catching generic exception types can hide run-time problems from the library user, and can complicate debugging. You should catch only those exceptions that you can handle gracefully.</LongDescription> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/DesignRules/ExceptionAndSystemException.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="95">CriticalError</MessageLevel> <File Name="DesignRules.dll" Version="1.30.0.0" /> </Rule> <Rule TypeName="NamespaceNamesShouldBeSpelledCorrectly"> <Name>Namespace names should consist of correctly spelled words</Name> <Description>The individual words that make up a namespace should not be abbreviated and should be spelled correctly.</Description> <LongDescription>If this rule generates a false positive on a term that should be recognized, add the word to the FxCop custom dictionary.</LongDescription> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/UsageRules/NamespaceSpelling.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="50">CriticalWarning</MessageLevel> <File Name="UsageRules.dll" Version="1.30.0.0" /> </Rule> <Rule TypeName="TypeNamesShouldBeSpelledCorrectly"> <Name>Type names should consist of correctly spelled words</Name> <Description>The individual words that make up a type name should not be abbreviated and should be spelled correctly.</Description> <LongDescription>If this rule generates a false positive on a term that should be recognized, add the word to the FxCop custom dictionary.</LongDescription> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/UsageRules/TypeSpelling.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="75">CriticalWarning</MessageLevel> <File Name="UsageRules.dll" Version="1.30.0.0" /> </Rule> <Rule TypeName="VirtualMethodsAndOverridesRequireSameLinkDemands"> <Name>Virtual methods and their overrides require the same LinkDemand status</Name> <Description>If a virtual method has a LinkDemand, in many cases, so should any override of it, and if an override has a LinkDemand, so should the overridden virtual method.</Description> <LongDescription>As it is possible to call any of the overrides of a virtual method explicitly, they should all have the same LinkDemand status or, if not, should be reviewed. This also applies to LinkDemand security checks for methods that part of an interface implementation, because the caller might use an interface-typed reference to access the method.</LongDescription> <GroupOwner>MS FxCopDev</GroupOwner> <DevOwner /> <Url>http://www.gotdotnet.com/team/fxcop/docs/rules/SecurityRules/VirtualMethodsAndOverrides.html</Url> <Email>ask...@mi...</Email> <MessageLevel Certainty="33">CriticalError</MessageLevel> <File Name="SecurityRules.dll" Version="1.30.0.0" /> </Rule> </Rules> </FxCopReport> </FxCopProject> --- NEW FILE: FredCK.FCKeditorV2.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{F6F32704-97E0-4006-A474-5A9729C6B1B4}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "FredCK.FCKeditorV2" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "FredCK.FCKeditorV2" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "System.Design" AssemblyName = "System.Design" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Design.dll" /> <Reference Name = "System.Drawing" AssemblyName = "System.Drawing" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" /> <Reference Name = "System.Web" AssemblyName = "System.Web" HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "FCKeditor.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "FCKeditorConfigurations.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "FCKeditorDesigner.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "FileBrowserConnector.cs" SubType = "ASPXCodeBehind" BuildAction = "Compile" /> <File RelPath = "FredCK.FCKeditorV2.FxCop" BuildAction = "None" /> <File RelPath = "FredCK.FCKeditorV2.snk" BuildAction = "None" /> <File RelPath = "XmlUtil.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: FredCK.FCKeditorV2.csproj.user --- <VisualStudioProject> <CSHARP LastOpenVersion = "7.10.3077" > <Build> <Settings ReferencePath = "" > <Config Name = "Debug" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "true" /> <Config Name = "Release" EnableASPDebugging = "false" EnableASPXDebugging = "false" EnableUnmanagedDebugging = "false" EnableSQLServerDebugging = "false" RemoteDebugEnabled = "false" RemoteDebugMachine = "" StartAction = "Project" StartArguments = "" StartPage = "" StartProgram = "" StartURL = "" StartWorkingDirectory = "" StartWithIE = "true" /> </Settings> </Build> <OtherProjectSettings CopyProjectDestinationFolder = "" CopyProjectUncPath = "" CopyProjectOption = "0" ProjectView = "ProjectFiles" ProjectTrust = "0" /> </CSHARP> </VisualStudioProject> --- NEW FILE: FredCK.FCKeditorV2.snk --- --- NEW FILE: XmlUtil.cs --- /* * 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: XmlUtil.cs * Useful tools. * * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:17:24 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ using System ; using System.Globalization ; using System.Xml ; namespace FredCK.FCKeditorV2 { internal sealed class XmlUtil { private XmlUtil() {} public static XmlNode AppendElement( XmlNode node, string newElementName ) { return AppendElement( node, newElementName, null ) ; } public static XmlNode AppendElement( XmlNode node, string newElementName, string innerValue ) { XmlNode oNode ; if ( node is XmlDocument ) oNode = node.AppendChild( ((XmlDocument)node).CreateElement( newElementName ) ) ; else oNode = node.AppendChild( node.OwnerDocument.CreateElement( newElementName ) ) ; if ( innerValue != null ) oNode.AppendChild( node.OwnerDocument.CreateTextNode( innerValue ) ) ; return oNode ; } public static XmlAttribute CreateAttribute( XmlDocument xmlDocument, string name, string value ) { XmlAttribute oAtt = xmlDocument.CreateAttribute( name ) ; oAtt.Value = value ; return oAtt ; } public static void SetAttribute( XmlNode node, string attributeName, string attributeValue ) { if ( node.Attributes[ attributeName ] != null ) node.Attributes[ attributeName ].Value = attributeValue ; else node.Attributes.Append( CreateAttribute( node.OwnerDocument, attributeName, attributeValue ) ) ; } } } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:12
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/css Added Files: common.css Log Message: complete fckeditor addition --- NEW FILE: common.css --- .ImagePreviewArea { border: #000000 1px solid; padding: 5px; overflow: auto; width: 100%; height: 170px; background-color: #ffffff; } .BtnReset { float: left; background-position: center center; background-image: url(../images/reset.gif); width: 16px; height: 16px; background-repeat: no-repeat; border: 1px none; font-size: 1px ; } .BtnLocked, .BtnUnlocked { float: left; background-position: center center; background-image: url(../images/locked.gif); width: 16px; height: 16px; background-repeat: no-repeat; border: 1px none; font-size: 1px ; } .BtnUnlocked { background-image: url(../images/unlocked.gif); } .BtnOver { border: 1px outset; cursor: pointer; cursor: hand; } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:12
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes Added Files: fckcolorpanel.js fckpanel_gecko.js fckpanel_ie.js fcktoolbarpanelbutton.js fcktoolbarpanelbutton_gecko.js fcktoolbarpanelbutton_ie.js Log Message: complete fckeditor addition --- NEW FILE: fckcolorpanel.js --- /* * 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: fckcolorpanel.js * FCKColorPanel Class: represents a Color Selection panel. * * Version: 2.0 Beta 2 * Modified: 2004-08-20 22:35:45 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKColorPanel = function( setColorFunction ) { // SetColorFunction is the function to be called when the user selects the // desired color (from the panel itself or from the "More Colors..." popup. this.SetColorFunction = setColorFunction ; } // Inherit from FCKPanel. FCKColorPanel.prototype = new FCKPanel ; FCKColorPanel.prototype.CreatePanelBody = function( targetDocument, targetDiv ) { function CreateSelectionDiv() { var oDiv = targetDocument.createElement( "DIV" ) ; oDiv.className = 'ColorDeselected' ; oDiv.onmouseover = function() { this.className='ColorSelected' ; } ; oDiv.onmouseout = function() { this.className='ColorDeselected' ; } ; return oDiv ; } // Create the Table that will hold all colors. var oTable = targetDocument.createElement( "TABLE" ) ; oTable.cellPadding = 0 ; oTable.cellSpacing = 0 ; oTable.border = 0 ; // Create the Button for the "Automatic" color selection. var oDiv = CreateSelectionDiv() ; oDiv.innerHTML = '<table cellspacing="0" cellpadding="0" width="100%" border="0">\ <tr>\ <td><div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #000000"></div></div></td>\ <td nowrap width="100%" align="center" unselectable="on">Automatic</td>\ </tr>\ </table>' ; oDiv.Panel = this ; oDiv.onclick = function() { this.className = 'ColorDeselected' ; this.Panel.SetColorFunction( '' ) ; this.Panel.Hide() ; } var oCell = oTable.insertRow(-1).insertCell(-1) ; oCell.colSpan = 8 ; oCell.appendChild( oDiv ) ; // Create an array of colors based on the configuration file. var aColors = FCKConfig.FontColors.split(',') ; // Create the colors table based on the array. var iCounter = 0 ; while ( iCounter < aColors.length ) { var oRow = oTable.insertRow(-1) ; for ( var i = 0 ; i < 8 && iCounter < aColors.length ; i++, iCounter++ ) { var oDiv = CreateSelectionDiv() ; oDiv.Color = aColors[iCounter] ; oDiv.innerHTML = '<div class="ColorBoxBorder"><div class="ColorBox" style="background-color: #' + aColors[iCounter] + '"></div></div>' ; oDiv.Panel = this ; oDiv.onclick = function() { this.className = 'ColorDeselected' ; this.Panel.SetColorFunction( '#' + this.Color ) ; this.Panel.Hide() ; } oCell = oRow.insertCell(-1) ; oCell.appendChild( oDiv ) ; } } // Create the Row and the Cell for the "More Colors..." button. var oDiv = CreateSelectionDiv() ; oDiv.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap align="center">More Colors...</td></tr></table>' ; oDiv.Panel = this ; oDiv.onclick = function() { this.className = 'ColorDeselected' ; this.Panel.Hide() ; FCKDialog.OpenDialog( 'FCKDialog_Color', 'Select a Color', 'dialog/fck_colorselector.html', 400, 330, this.Panel.SetColorFunction ) ; } var oCell = oTable.insertRow(-1).insertCell(-1) ; oCell.colSpan = 8 ; oCell.appendChild( oDiv ) ; // Append the resulting table to the target DIV. targetDiv.appendChild( oTable ) ; } --- NEW FILE: fckpanel_gecko.js --- /* * 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: fckpanel_gecko.js * FCKPanel Class: this is the IE version of the base class used to implement * "Panel" classes. * * Version: 2.0 Beta 2 * Modified: 2004-08-20 16:32:56 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ // The Panel Styles where already liaded in the parent window by the Context Menu scripts. // (They are included in the fck_contextmenu CSS) var FCKPanel = function() {} FCKPanel.prototype.Create = function() { // Create the main DIV that is used as the panel base. this.PanelDiv = window.parent.document.createElement('DIV') ; this.PanelDiv.style.visibility = 'hidden' ; this.PanelDiv.className = 'FCK_Panel' ; this.PanelDiv.style.zIndex = 10000 ; this.PanelDiv.oncontextmenu = function() { return false ; } // Put the main DIV inside the parent document. window.parent.document.body.appendChild( this.PanelDiv ); // It calls a method that must be defined on classes that inherit the // FCKPanel class. if ( this.CreatePanelBody ) this.CreatePanelBody( window.parent.document, this.PanelDiv ) ; this.Created = true ; } FCKPanel.prototype.Show = function( panelX, panelY ) { if ( ! this.Created ) this.Create() ; // Set the context menu DIV in the specified location. this.PanelDiv.style.left = panelX + 'px' ; this.PanelDiv.style.top = panelY + 'px' ; // Watch the "OnClick" event for all windows to close the Context Menu. var oActualWindow = FCK.EditorWindow ; while ( oActualWindow ) { oActualWindow.document.addEventListener( 'click', this._OnDocumentClick, false ) ; if ( oActualWindow != oActualWindow.parent ) oActualWindow = oActualWindow.parent ; else if ( oActualWindow.opener == null ) oActualWindow = oActualWindow.opener ; else break ; } // Show it. this.PanelDiv.style.visibility = '' ; FCK.ActivePanel = this ; } FCKPanel.prototype._OnDocumentClick = function( event ) { if ( ! FCK.ActivePanel ) return ; var e = event.target ; while ( e ) { if ( e == FCK.ActivePanel.PanelDiv ) return ; e = e.parentNode ; } FCK.ActivePanel.Hide() ; } FCKPanel.prototype.Hide = function() { this.PanelDiv.style.visibility = 'hidden' ; this.PanelDiv.style.left = this.PanelDiv.style.top = '1px' ; delete FCK.ActivePanel ; } --- NEW FILE: fckpanel_ie.js --- /* * 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: fckpanel_ie.js * FCKPanel Class: this is the IE version of the base class used to implement * "Panel" classes. * * Version: 2.0 Beta 2 * Modified: 2004-08-27 15:55:23 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKPanel = function() {} FCKPanel.prototype.Create = function() { // Create the Popup that will hold the panel. this._Popup = window.createPopup() ; this._Popup.document.createStyleSheet( FCKConfig.SkinPath + 'fck_contextmenu.css' ) ; this._Popup.document.oncontextmenu = function() { return false ; } // Create the main DIV that is used as the panel base. this.PanelDiv = this._Popup.document.createElement('DIV') ; this.PanelDiv.className = 'FCK_Panel' ; // Put the main DIV inside the Popup. this._Popup.document.body.appendChild(this.PanelDiv) ; // It calls a method that must be defined on classes that inherit the // FCKPanel class. if ( this.CreatePanelBody ) this.CreatePanelBody( this._Popup.document, this.PanelDiv ) ; this._Popup.document.close() ; this.Created = true ; } FCKPanel.prototype.Show = function( panelX, panelY ) { if ( ! this.Created ) this.Create() ; // The offsetWidth and offsetHeight properties are not available if the // element is not visible. So we must "show" the popup with no size to // be able to use that values in the second call. this._Popup.show( panelX, panelY, 0, 0 ) ; // Second call: Show the Popup at the specified location. this._Popup.show( panelX, panelY, this.PanelDiv.offsetWidth, this.PanelDiv.offsetHeight ) ; } FCKPanel.prototype.Hide = function() { if ( this._Popup ) this._Popup.hide() ; } --- NEW FILE: fcktoolbarpanelbutton.js --- /* * 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: fcktoolbarpanelbutton.js * FCKToolbarPanelButton Class: represents a special button in the toolbar * that shows a panel when pressed. * * Version: 2.0 Beta 2 * Modified: 2004-08-27 16:27:03 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKToolbarPanelButton = function( commandName, label, tooltip, style ) { this.Command = FCKCommands[ commandName ] ; this.Label = label ? label : commandName ; this.Tooltip = tooltip ? tooltip : ( label ? label : commandName) ; this.Style = style ? style : FCK_TOOLBARITEM_ONLYICON ; this.State = FCK_UNKNOWN ; if ( this.Command == null ) alert( 'Unknown command name "' + commandName + '"' ) ; } FCKToolbarPanelButton.prototype.CreateInstance = function( parentToolbar ) { /* <td title="Bold" class="TB_Button_Off" unselectable="on" onmouseover="Button_OnMouseOver(this);" onmouseout="Button_OnMouseOut(this);"> <table class="TB_ButtonType_Icon" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="TB_Icon"><img src="icons/button.redo.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = '';"></td> <td class="TB_Text" unselectable="on">Redo</td> <td class="TB_ButtonArrow"><img src="skin/images/toolbar_buttonarrow.gif" width="5" height="3"></td> </tr> </table> </td> */ this.DOMDiv = document.createElement( 'div' ) ; this.DOMDiv.className = 'TB_Button_Off' ; this.DOMDiv.FCKToolbarButton = this ; this.DOMDiv.onmouseover = function() { if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) { this.className = 'TB_Button_On' ; } } this.DOMDiv.onmouseout = function() { if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED && this.FCKToolbarButton.State != FCK_TRISTATE_ON ) { this.className = 'TB_Button_Off' ; } } this.DOMDiv.onclick = function( ev ) { // Call the OnClick event handler (it is different depending o the browser version. if ( this.FCKToolbarButton.State != FCK_TRISTATE_DISABLED ) this.FCKToolbarButton.HandleOnClick( this.FCKToolbarButton, ev ) ; // For Mozilla we must stop the event propagation to avoid it hiding // the panel because of a click outside of it. if ( ev ) ev.stopPropagation() ; return false ; } // Gets the correct CSS class to use for the specified style (param). var sClass ; switch ( this.Style ) { case FCK_TOOLBARITEM_ONLYICON : sClass = 'TB_ButtonType_Icon' ; break ; case FCK_TOOLBARITEM_ONLYTEXT : sClass = 'TB_ButtonType_Text' ; break ; case FCK_TOOLBARITEM_ICONTEXT : sClass = '' ; break ; } this.DOMDiv.innerHTML = '<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on"></td>' + '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '<td class="TB_ButtonArrow" unselectable="on"><img src="' + FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif" width="5" height="3"></td>' + '</tr>' + '</table>' ; var oCell = parentToolbar.DOMRow.insertCell(-1) ; oCell.appendChild( this.DOMDiv ) ; this.RefreshState() ; } // The Panel Button works like a normal button so the refresh state function // defined for the normal button can be reused here. FCKToolbarPanelButton.prototype.RefreshState = FCKToolbarButton.prototype.RefreshState ; --- NEW FILE: fcktoolbarpanelbutton_gecko.js --- FCKToolbarPanelButton.prototype.HandleOnClick = function( panelButton, ev ) { // The X and Y position of the Panel must be calculated based on // the button position. var e = panelButton.DOMDiv ; // Get the DIV and the editor frame positions. var oDivCoords = FCKTools.GetElementPosition( e ) ; var oFrmCoords = FCKTools.GetElementPosition( window.frameElement ) ; // Get the actual window (IFRAME) position on screen. var iPanelX = oDivCoords.X + oFrmCoords.X ; var iPanelY = oDivCoords.Y + oFrmCoords.Y + e.offsetHeight ; // The button height is added so the panel is aligned on its base line. panelButton.Command.Execute(iPanelX,iPanelY) ; } --- NEW FILE: fcktoolbarpanelbutton_ie.js --- FCKToolbarPanelButton.prototype.HandleOnClick = function( panelButton, ev ) { // The X and Y position of the Panel must be calculated based on // the button position. var e = panelButton.DOMDiv ; // Get the DIV position. var oDivCoords = FCKTools.GetElementPosition( e ) ; // Get the actual window (IFRAME) position on screen. var iPanX = oDivCoords.X + window.screenLeft ; var iPanY = oDivCoords.Y + window.screenTop + e.offsetHeight + 1 ; // The button height is added so the panel is aligned on its base line. panelButton.Command.Execute(iPanX,iPanY) ; } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:12
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/commandclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/_source/commandclasses Added Files: fck_othercommands.js fcknamedcommand.js fckpasteplaintextcommand.js fckpastewordcommand.js fcktablecommand.js fcktextcolorcommand.js Log Message: complete fckeditor addition --- NEW FILE: fck_othercommands.js --- /* * 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: fck_othercommands.js * Definition of other commands that are not available internaly in the * browser (see FCKNamedCommand). * * Version: 2.0 Beta 2 * Modified: 2004-09-01 00:12:43 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ // ### General Dialog Box Commands. var FCKDialogCommand = function( name, title, url, width, height, getStateFunction, getStateParam ) { this.Name = name ; this.Title = title ; this.Url = url ; this.Width = width ; this.Height = height ; this.GetStateFunction = getStateFunction ; this.GetStateParam = getStateParam ; } FCKDialogCommand.prototype.Execute = function() { FCKDialog.OpenDialog( 'FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height ) ; } FCKDialogCommand.prototype.GetState = function() { if ( this.GetStateFunction ) { return this.GetStateFunction( this.GetStateParam ) ; } else { return FCK_TRISTATE_OFF ; } } // Generic Undefined command (usually used when a command is under development). var FCKUndefinedCommand = function() { this.Name = 'Undefined' ; } FCKUndefinedCommand.prototype.Execute = function() { alert( 'Command not implemented.' ) ; } FCKUndefinedCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } // ### FontName var FCKFontNameCommand = function() { this.Name = 'FontName' ; } FCKFontNameCommand.prototype.Execute = function( fontName ) { if (fontName == null || fontName == "") { // TODO: Remove font name attribute. } else { FCK.ExecuteNamedCommand( 'FontName', fontName ) ; } } FCKFontNameCommand.prototype.GetState = function() { return FCK.GetNamedCommandValue( 'FontName' ) ; } // ### FontSize var FCKFontSizeCommand = function() { this.Name = 'FontSize' ; } FCKFontSizeCommand.prototype.Execute = function( fontSize ) { if ( typeof( fontSize ) == 'string' ) fontSize = parseInt(fontSize) ; if ( fontSize == null || fontSize == '' ) { // TODO: Remove font size attribute (Now it works with size 3. Will it work forever?) FCK.ExecuteNamedCommand( 'FontSize', 3 ) ; } else { FCK.ExecuteNamedCommand( 'FontSize', fontSize ) ; } } FCKFontSizeCommand.prototype.GetState = function() { return FCK.GetNamedCommandValue( 'FontSize' ) ; } // ### FormatBlock var FCKFormatBlockCommand = function() { this.Name = 'FormatBlock' ; } FCKFormatBlockCommand.prototype.Execute = function( formatName ) { if ( formatName == null || formatName == '' ) { FCK.ExecuteNamedCommand( 'FormatBlock', '<P>' ) ; } else { FCK.ExecuteNamedCommand( 'FormatBlock', formatName ) ; } } FCKFormatBlockCommand.prototype.GetState = function() { return FCK.GetNamedCommandValue( 'FormatBlock' ) ; } // ### Preview var FCKPreviewCommand = function() { this.Name = 'Preview' ; } FCKPreviewCommand.prototype.Execute = function() { FCK.Preview() ; } FCKPreviewCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } // ### Save var FCKSaveCommand = function() { this.Name = 'Save' ; } FCKSaveCommand.prototype.Execute = function() { // Get the linked field form. var oForm = FCK.LinkedField.form ; // Submit the form. oForm.submit() ; } FCKSaveCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } // ### NewPage var FCKNewPageCommand = function() { this.Name = 'NewPage' ; } FCKNewPageCommand.prototype.Execute = function() { FCK.SetHTML( '' ) ; } FCKNewPageCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } // ### Source button var FCKSourceCommand = function() { this.Name = "Source" ; } FCKSourceCommand.prototype.Execute = function() { FCK.SwitchEditMode() ; } FCKSourceCommand.prototype.GetState = function() { return ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ? FCK_TRISTATE_OFF : FCK_TRISTATE_ON ) ; } --- NEW FILE: fcknamedcommand.js --- /* * 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: fcknamedcommand.js * FCKNamedCommand Class: represents an internal browser command. * * Version: 2.0 Beta 2 * Modified: 2004-08-17 15:05:35 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKNamedCommand = function( commandName ) { this.Name = commandName ; } FCKNamedCommand.prototype.Execute = function() { FCK.ExecuteNamedCommand( this.Name ) ; } FCKNamedCommand.prototype.GetState = function() { return FCK.GetNamedCommandState( this.Name ) ; } --- NEW FILE: fckpasteplaintextcommand.js --- /* * 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: fckpasteplaintextcommand.js * FCKPastePlainTextCommand Class: represents the * "Paste as Plain Text" command. * * Version: 2.0 Beta 2 * Modified: 2004-08-20 23:08:23 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKPastePlainTextCommand = function() { this.Name = 'PasteText' ; } FCKPastePlainTextCommand.prototype.Execute = function() { FCK.PasteAsPlainText() ; } FCKPastePlainTextCommand.prototype.GetState = function() { return FCK.GetNamedCommandState( 'Paste' ) ; } --- NEW FILE: fckpastewordcommand.js --- /* * 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: fckpastewordcommand.js * FCKPasteWordCommand Class: represents the "Paste from Word" command. * * Version: 2.0 Beta 2 * Modified: 2004-08-30 23:20:46 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKPasteWordCommand = function() { this.Name = 'PasteWord' ; } FCKPasteWordCommand.prototype.Execute = function() { FCK.PasteFromWord() ; } FCKPasteWordCommand.prototype.GetState = function() { return FCK.GetNamedCommandState( 'Paste' ) ; } --- NEW FILE: fcktablecommand.js --- /* * 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: fcktablecommand.js * FCKPastePlainTextCommand Class: represents the * "Paste as Plain Text" command. * * Version: 2.0 Beta 2 * Modified: 2004-09-02 01:05:29 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ var FCKTableCommand = function( command ) { this.Name = command ; } FCKTableCommand.prototype.Execute = function() { switch ( this.Name ) { case 'TableInsertRow' : FCKTableHandler.InsertRow() ; break ; case 'TableDeleteRows' : FCKTableHandler.DeleteRows() ; break ; case 'TableInsertColumn' : FCKTableHandler.InsertColumn() ; break ; case 'TableDeleteColumns' : FCKTableHandler.DeleteColumns() ; break ; case 'TableInsertCell' : FCKTableHandler.InsertCell() ; break ; case 'TableDeleteCells' : FCKTableHandler.DeleteCells() ; break ; case 'TableMergeCells' : FCKTableHandler.MergeCells() ; break ; case 'TableSplitCell' : FCKTableHandler.SplitCell() ; break ; default : alert( 'Unknown command "' + this.Name + '".' ) ; } } FCKTableCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } --- NEW FILE: fcktextcolorcommand.js --- /* * 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: fcktextcolorcommand.js * FCKTextColorCommand Class: represents the text color comand. It shows the * color selection panel. * * Version: 2.0 Beta 2 * Modified: 2004-08-20 22:49:33 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) */ // FCKTextColorCommand Contructor // type: can be 'ForeColor' or 'BackColor'. var FCKTextColorCommand = function( type ) { this.Name = type == 'ForeColor' ? 'TextColor' : 'BGColor' ; this.Type = type ; // ### BEGIN: This code should be moved to the Execute method but it doesn't work // well if placed there. this._Panel = new FCKColorPanel( this.SetColor ) ; this._Panel.Create() ; // ### END } FCKTextColorCommand.prototype.Execute = function( panelX, panelY ) { /* It was commented because it is not working well if placed here. It has been moved to the constructor, but it is not the best solution because the Panel should be created only when called. // Create the Color Panel if needed. if ( ! this._Panel ) { this._Panel = new FCKColorPanel( this.SetColor ) ; this._Panel.Create() ; } */ // We must "cache" the actual panel type to be used in the SetColor method. FCK._ActiveColorPanelType = this.Type ; // Show the Color Panel at the desired position. this._Panel.Show( panelX, panelY ) ; } FCKTextColorCommand.prototype.SetColor = function( color ) { if ( FCK._ActiveColorPanelType == 'ForeColor' ) FCK.ExecuteNamedCommand( 'ForeColor', color ) ; else if ( FCKBrowserInfo.IsGecko ) FCK.ExecuteNamedCommand( 'hilitecolor', color ) ; else FCK.ExecuteNamedCommand( 'BackColor', color ) ; // Delete the "cached" active panel type. delete FCK._ActiveColorPanelType ; } FCKTextColorCommand.prototype.GetState = function() { return FCK_TRISTATE_OFF ; } |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:12
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/editor/dialog Added Files: fck_colorselector.html fck_paste.html fck_tablecell.html Log Message: complete fckeditor addition --- NEW FILE: fck_colorselector.html --- <!-- * 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: fck_colorselector.html * Color Selection dialog window. * * Version: 2.0 Beta 2 * Modified: 2004-09-01 00:02:08 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex, nofollow" /> <style TYPE="text/css"> #ColorTable { cursor: pointer ; cursor: hand ; } #hicolor { height: 74px ; width: 74px ; border-width: 1px ; border-style: solid ; } #hicolortext { width: 75px ; text-align: right ; margin-bottom: 7px ; } #selhicolor { height: 20px ; width: 74px ; border-width: 1px ; border-style: solid ; } #selcolor { width: 75px ; height: 20px ; margin-top: 0px ; margin-bottom: 7px ; } #btnClear { width: 75px ; height: 22px ; margin-bottom: 6px ; } .ColorCell { height: 15px ; width: 15px ; } </style> <script type="text/javascript"> var dialogArguments = window.parent.InnerDialogLoaded() ; // Sets the Skin CSS document.write( '<link href="' + dialogArguments.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; function OnLoad() { // First of all, translate the dialog box texts dialogArguments.FCKLanguageManager.TranslatePage(document) ; CreateColorTable() ; window.parent.SetOkButton( true ) ; window.parent.SetScrollBar( false ) ; } function CreateColorTable() { // Get the target table. var oTable = document.getElementById('ColorTable') ; // Create the base colors array. var aColors = ['00','33','66','99','cc','ff'] ; // This function combines two ranges of three values from the color array into a row. function AppendColorRow( rangeA, rangeB ) { for ( var i = rangeA ; i < rangeA + 3 ; i++ ) { var oRow = oTable.insertRow(-1) ; for ( var j = rangeB ; j < rangeB + 3 ; j++ ) { for ( var n = 0 ; n < 6 ; n++ ) { AppendColorCell( oRow, '#' + aColors[j] + aColors[n] + aColors[i] ) ; } } } } // This function create a single color cell in the color table. function AppendColorCell( targetRow, color ) { var oCell = targetRow.insertCell(-1) ; oCell.className = 'ColorCell' ; oCell.bgColor = color ; oCell.onmouseover = function() { document.getElementById('hicolor').style.backgroundColor = this.bgColor ; document.getElementById('hicolortext').innerHTML = this.bgColor ; } oCell.onclick = function() { document.getElementById('selhicolor').style.backgroundColor = this.bgColor ; document.getElementById('selcolor').value = this.bgColor ; } } AppendColorRow( 0, 0 ) ; AppendColorRow( 3, 0 ) ; AppendColorRow( 0, 3 ) ; AppendColorRow( 3, 3 ) ; // Create the last row. var oRow = oTable.insertRow(-1) ; // Create the gray scale colors cells. for ( var n = 0 ; n < 6 ; n++ ) { AppendColorCell( oRow, '#' + aColors[n] + aColors[n] + aColors[n] ) ; } // Fill the row with black cells. for ( var i = 0 ; i < 12 ; i++ ) { AppendColorCell( oRow, '#000000' ) ; } } function Clear() { document.getElementById('selhicolor').style.backgroundColor = '' ; document.getElementById('selcolor').value = '' ; } function ClearActual() { document.getElementById('hicolor').style.backgroundColor = '' ; document.getElementById('hicolortext').innerHTML = ' ' ; } function UpdateColor() { try { document.getElementById('selhicolor').style.backgroundColor = document.getElementById('selcolor').value ; } catch (e) { Clear() ; } } function Ok() { if ( typeof(window.parent.dialogArguments.CustomValue) == 'function' ) window.parent.dialogArguments.CustomValue( document.getElementById('selcolor').value ) ; return true ; } </script> </head> <body onload="OnLoad()" scroll="no"> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"> <tr> <td align="center" valign="middle"> <table border="0" cellspacing="5" cellpadding="0" width="100%"> <tr> <td valign="top" align="center" nowrap width="100%"> <table id="ColorTable" border="0" cellspacing="0" cellpadding="0" width="270" onmouseout="ClearActual();"> </table> </td> <td valign="top" align="left" nowrap> <span fckLang="DlgColorHighlight">Highlight</span> <div id="hicolor"></div> <div id="hicolortext"> </div> <span fckLang="DlgColorSelected">Selected</span> <div id="selhicolor"></div> <input id="selcolor" type="text" maxlength="20" onchange="UpdateColor();"> <br> <input id="btnClear" type="button" fckLang="DlgColorBtnClear" value="Clear" onclick="Clear();" /> </td> </tr> </table> </td> </tr> </table> </body> </html> --- NEW FILE: fck_paste.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * 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: fck_paste.html * This dialog is shown when, for some reason (usually security settings), * the user is not able to paste data from the clipboard to the editor using * the toolbar buttons or the context menu. * * Version: 2.0 Beta 2 * Modified: 2004-08-31 00:02:26 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex, nofollow"> <script language="javascript"> var dialogArguments = window.parent.InnerDialogLoaded() ; // Sets the Skin CSS document.write( '<link href="' + dialogArguments.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; function OnLoad() { if ( window.parent.dialogArguments.CustomValue == 'Word' ) { document.getElementById('frmData').style.display = '' ; document.getElementById('frmData').contentDocument.designMode = 'on' ; } else document.getElementById('txtData').style.display = '' ; // First of all, translate the dialog box texts dialogArguments.FCKLanguageManager.TranslatePage(document) ; window.parent.SetOkButton( true ) ; window.parent.SetScrollBar( false ) ; } function Ok() { if ( window.parent.dialogArguments.CustomValue == 'Word' ) { var sHtml = document.getElementById('frmData').contentDocument.body.innerHTML ; dialogArguments.FCK.CleanAndPaste( sHtml ) ; } else { var sText = dialogArguments.FCKTools.HTMLEncode( document.getElementById('txtData').value ) ; sText = sText.replace( /\n/g, '<BR>' ) ; dialogArguments.FCK.InsertHtml( sText ) ; } return true ; } </script> </head> <body onload="OnLoad()" scroll="no"> <table height="98%" cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td> The editor was not able to automaticaly execute pasting because of the <STRONG>secutiry settings</STRONG> of your browser. <BR> Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>. </td> </tr> <tr> <td valign="top" height="100%" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"> <textarea id="txtData" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; DISPLAY: none; BORDER-LEFT: #000000 1px; WIDTH: 99%; BORDER-BOTTOM: #000000 1px; HEIGHT: 98%"></textarea> <iframe id="frmData" height="98%" width="99%" frameborder="no" style="BORDER-RIGHT: #000000 1px; BORDER-TOP: #000000 1px; DISPLAY: none; BORDER-LEFT: #000000 1px; BORDER-BOTTOM: #000000 1px; BACKGROUND-COLOR: #ffffff"></iframe> </td> </tr> </table> </body> </html> --- NEW FILE: fck_tablecell.html --- <!-- * 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: fck_tablecell.html * Cell properties dialog window. * * Version: 2.0 Beta 2 * Modified: 2004-09-05 01:39:41 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) --> <html> <head> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <script type="text/javascript" src="../js/dhtmled.js"></script> <script type="text/javascript" src="../js/fck_events.js"></script> <script type="text/javascript" src="../js/fck_toolbar.js"></script> <script type="text/javascript"> <!-- var dialogArguments = window.parent.InnerDialogLoaded() ; // Sets the Skin CSS document.write( '<link href="' + dialogArguments.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; // Gets the document DOM var oDOM = dialogArguments.FCK.EditorDocument ; function OnLoad() { // First of all, translate the dialog box texts dialogArguments.FCKLanguageManager.TranslatePage(document) ; window.parent.SetOkButton( true ) ; } function IsDigit( e ) { e = e || event ; var iCode = ( e.keyCode || e.charCode ) ; return ( ( iCode >= 48 && iCode <= 57 ) // Numbers || (iCode >= 37 && iCode <= 40) // Arrows || iCode == 8 // Backspace || iCode == 46 // Delete ) ; } //////// TODO // Array of selected Cells var aTD = new Array() ; function setDefaults() { // Gets the document DOM var oDOM = dialogArguments.objContent.DOM ; var oRange = oDOM.selection.createRange() ; var oParent = oRange.parentElement() ; while (oParent && oParent.tagName != "td" && oParent.tagName != "TABLE") oParent = oParent.parentNode ; if ( oParent.tagName == "td" ) aTD[0] = oParent ; else if ( oParent.tagName == "TABLE" ) { // Loops throw all cells cheking if the selection, or part of it, is inside the cell // and then add it to the selectec cells collection for (i = 0 ; i < oParent.cells.length ; i++) { var oCellRange = oDOM.selection.createRange() ; oCellRange.moveToElementText(oParent.cells[i]) ; if ( oRange.inRange( oCellRange ) || ( oRange.compareEndPoints('StartToStart',oCellRange) >= 0 && oRange.compareEndPoints('StartToEnd',oCellRange) <= 0 ) || ( oRange.compareEndPoints('EndToStart',oCellRange) >= 0 && oRange.compareEndPoints('EndToEnd',oCellRange) <= 0 ) ) { aTD[aTD.length] = oParent.cells[i] ; } } } if (aTD[0]) { var iWidth = aTD[0].width ; if (iWidth.indexOf('%') >= 0) { iWidth = iWidth.substr(0,iWidth.length - 1) ; selWidthType.value = "percent" ; } txtWidth.value = iWidth ; txtHeight.value = aTD[0].height ; selWordWrap.value = ! aTD[0].noWrap ; selHAlign.value = aTD[0].align ; selVAlign.value = aTD[0].vAlign ; txtRowSpan.value = aTD[0].rowSpan ; txtCollSpan.value = aTD[0].colSpan ; txtBackColor.value = aTD[0].bgColor ; txtBorderColor.value = aTD[0].borderColor ; cmbFontStyle.value = aTD[0].className ; } } function ok() { for( i = 0 ; i < aTD.length ; i++ ) { if (txtWidth.value != "") aTD[i].width = txtWidth.value + (selWidthType.value == "percent" ? "%" : "") ; else aTD[i].removeAttribute("width") ; if (txtHeight.value != "") aTD[i].height = txtHeight.value ; else aTD[i].removeAttribute("height") ; if (selWordWrap.value != "") aTD[i].noWrap = selWordWrap.value == "false" ; else aTD[i].removeAttribute("noWrap") ; if (selHAlign.value != "") aTD[i].align = selHAlign.value ; else aTD[i].removeAttribute("align") ; if (selVAlign.value != "") aTD[i].vAlign = selVAlign.value ; else aTD[i].removeAttribute("vAlign") ; if (txtRowSpan.value != "") aTD[i].rowSpan = txtRowSpan.value ; else aTD[i].removeAttribute("rowSpan") ; if (txtCollSpan.value != "") aTD[i].colSpan = txtCollSpan.value ; else aTD[i].removeAttribute("colSpan") ; if (txtBackColor.value != "") aTD[i].bgColor = txtBackColor.value ; else aTD[i].removeAttribute("bgColor") ; if (txtBorderColor.value != "") aTD[i].borderColor = txtBorderColor.value ; else aTD[i].removeAttribute("borderColor") ; if (cmbFontStyle.value != "") aTD[i].className = cmbFontStyle.value ; else aTD[i].removeAttribute("className") ; } cancel() ; } function SelectBackColor() { var sColor = SelectColor() ; if (sColor) txtBackColor.value = sColor ; } function SelectBorderColor() { var sColor = SelectColor() ; if (sColor) txtBorderColor.value = sColor ; } function SelectColor() { return showModalDialog("fck_selcolor.html", dialogArguments, "dialogWidth:370px;dialogHeight:240px;help:no;scroll:no;status:no") ; } //--> </script> </head> <body bottommargin="5" leftmargin="5" topmargin="5" rightmargin="5" onload="OnLoad()"> <table cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%"> <tr> <td> <table cellSpacing="1" cellPadding="1" width="100%" border="0"> <tr> <td> <table cellSpacing="0" cellPadding="0" border="0"> <tr> <td nowrap><span fckLang="DlgCellWidth">Width</span>:</td> <td> <input onkeypress="event.returnValue=IsDigit();" id="txtWidth" type="text" maxLength="4" size="3" name="txtWidth"> <select id="selWidthType" name="selWidthType"> <option fckLang="DlgCellWidthPx" value="pixels" selected>pixels</option> <option fckLang="DlgCellWidthPc" value="percent">percent</option> </select></td> </tr> <tr> <td nowrap><span fckLang="DlgCellHeight">Height</span>:</td> <td> <INPUT id="txtHeight" type="text" maxLength="4" size="3" name="txtHeight" onkeypress="event.returnValue=IsDigit();"> <span fckLang="DlgCellWidthPx">pixels</span></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td nowrap><span fckLang="DlgCellWordWrap">Word Wrap</span>:</td> <td> <select id="selWordWrap" name="selAlignment"> <option fckLang="DlgCellWordWrapNotSet" value="" selected><Not set></option> <option fckLang="DlgCellWordWrapYes" value="true">Yes</option> <option fckLang="DlgCellWordWrapNo" value="false">No</option> </select></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td nowrap><span fckLang="DlgCellHorAlign">Horizontal Alignment</span>:</td> <td> <select id="selHAlign" name="selAlignment"> <option fckLang="DlgCellHorAlignNotSet" value="" selected><Not set></option> <option fckLang="DlgCellHorAlignLeft" value="left">Left</option> <option fckLang="DlgCellHorAlignCenter" value="center">Center</option> <option fckLang="DlgCellHorAlignRight" value="right">Right</option> </select></td> </tr> <tr> <td nowrap><span fckLang="DlgCellVerAlign">Vertival Alignement</span>:</td> <td> <select id="selVAlign" name="selAlignment"> <option fckLang="DlgCellVerAlignNotSet" value="" selected><Not set></option> <option fckLang="DlgCellVerAlignTop" value="top">Top</option> <option fckLang="DlgCellVerAlignMiddle" value="middle">Middle</option> <option fckLang="DlgCellVerAlignBottom" value="bottom">Bottom</option> <option fckLang="DlgCellVerAlignBaseline" value="baseline">Baseline</option> </select></td> </tr> </table> </td> <td> </td> <td align="right"> <table cellSpacing="0" cellPadding="0" border="0"> <tr> <td nowrap><span fckLang="DlgCellRowSpan">Rows Span</span>:</td> <td> <input onkeypress="event.returnValue=IsDigit();" id="txtRowSpan" type="text" maxLength="3" size="2" name="txtRows"></td> <td></td> </tr> <tr> <td nowrap><span fckLang="DlgCellCollSpan">Columns Span</span>:</td> <td> <input onkeypress="event.returnValue=IsDigit();" id="txtCollSpan" type="text" maxLength="2" size="2" name="txtColumns"></td> <td></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td nowrap><span fckLang="DlgCellBackColor">Background Color</span>:</td> <td> <input id="txtBackColor" type="text" size="8" name="txtCellSpacing"></td> <td> <input type="button" fckLang="DlgCellBtnSelect" value="Select..." onclick="SelectBackColor()"></td> </tr> <tr> <td nowrap><span fckLang="DlgCellBorderColor">Border Color</span>:</td> <td> <input id="txtBorderColor" type="text" size="8" name="txtCellPadding"></td> <td> <input type="button" fckLang="DlgCellBtnSelect" value="Select..." onclick="SelectBorderColor()"></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><span fckLang="DlgStyle">Style</span>:</td> <td> <script type="text/javascript"> var tbstyles = new TBCombo( "FontStyle" , "null" , "", dialogArguments.config.StyleNames, dialogArguments.config.StyleValues, 'CheckStyle("cmbFontStyle")'); document.write(tbstyles.GetHTML()); </script></td> <td> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center"><BR> <input type="button" fckLang="DlgBtnOK" value="OK" onclick="ok();" style="WIDTH: 100px"> <input type="button" fckLang="DlgBtnCancel" value="Cancel" onclick="cancel();"> </td> </tr> </table> </body> </html> |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:10
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Release In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Release Added Files: FredCK.FCKeditorV2.dll Log Message: complete fckeditor addition --- NEW FILE: FredCK.FCKeditorV2.dll --- MZ $ s r r r * r r r * r! r7 r! * rG rS ( rG * r] rk ( r] * ( ,o ( o o o rw ,-o" /o" 3o# # o$ ,*o o o% r} o' ,o( ( () £1þþ**0 ( (, ( 1ró r ( o/ rs ( rÛ ¢¢( +Fr¨ ¢( ¢o0 ru * s6 } ,{ t# * { +Qo< y6 1 &o> &r o@ (. (A o@ (. oB &oC -§Þu7 ÜoE * * t ( r ¢(I * oJ r6 -*( oJ rF -*( oJ rP -*rl -rl rl -rl rp , ( oO (N oP (N r (N (R oS (N r sU ( rª ( oW oX (N oY *0 o[ &r r( rd o] +(rt (' r o_ +\ o` (' (a (' ( oJ r° ,o- -rÌ +G( ob &Þ-&rÌ Þ$&rÌ Þ&rÔ Þ&rÜ Þ &rä Þ I R [ d m oc r r¬ (f (g (h ,YX (i ¢r (j ¢(k r +r& oP (N r. (N # ¢rè oX (N rò (N oY *0 (o &K (g * * r } -r6 -%{ } ( } * * o[ +ov ou o[ ,ov ow o[ &*0 oy * o{ ,oz o{ oy *oz ov (& &* © ) Ê Ê Ê Ñ Ñ1 $ :Y Y 'é$ 5ñî :·z\V4à Appearence 1- ñ ---- ±-õý - õ õ- |
From: Joe S. <joe...@us...> - 2004-10-30 14:19:10
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12486/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Debug Added Files: FredCK.FCKeditorV2.dll FredCK.FCKeditorV2.pdb Log Message: complete fckeditor addition --- NEW FILE: FredCK.FCKeditorV2.dll --- MZ $ s + r r + r * r r + r * r! r7 + r! * rG rS ( + rG * r] rk ( + r] * ( ,o ( + + o o o! rw ,/o# /o# 3o$ # ,+Co o o& r} o( ,o) ( (* £1þþ++ ( (- ( 1ró r ( o0 rs ( rÛ ¢¢( +Fr¨ ¢( ¢o1 ru * + s7 } ,{ t$ + + * { +Q o= y7 1 &o? &r oA (/ (B oA (/ oC & oD -§Þ u8 ÜoF + * t ( r ¢(J + oK r6 -8g oK rF -8I oK rP -8+ -rl rl -rl rp , ( oP (O oQ (O r (O (S oT (O r sV ( rª oX oY (O oZ * o\ &r r( rd o^ +(rt (' r o` +\ oa (' (b (' ( oK r° ,o. -rÌ +G( oc &Þ-&rÌ Þ$&rÌ Þ&rÔ Þ&rÜ Þ &rä Þ I R [ d m od r r¬ (g +u (h (i ,YX (j ¢r (k ¢(l r om +++r& oQ (O r. (O $ ¢rè oY (O rò (O oZ * (p &L (h + + r } -r6 -%{ } + ( } + * * + o\ +ow ov o\ ,ow ox o\ &+ oz + o| ,o{ o| oz +o{ ow (& &* Ð ) ñ QÙ $ WÙD ]ÙX $ dY wY ñ$ ù ISXw 5=dos§¬²ÇØÞè $6=Ldqx :·z\V4à Appearence 1-1- õ ----- µ-ù - ù ù- ² ²? --- NEW FILE: FredCK.FCKeditorV2.pdb --- Microsoft C/C++ MSF 7.00 DS |
From: Joe S. <joe...@us...> - 2004-10-30 14:16:49
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Release In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12049/Release Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Release added to the repository |
From: Joe S. <joe...@us...> - 2004-10-30 14:16:49
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12049/Debug Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin/Debug added to the repository |
From: Joe S. <joe...@us...> - 2004-10-30 14:15:59
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11885/bin Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_aspnet/FredCK.FCKeditorV2/bin added to the repository |
From: Joe S. <joe...@us...> - 2004-10-30 14:09:58
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/commandclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10629/commandclasses Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/commandclasses added to the repository |
From: Joe S. <joe...@us...> - 2004-10-30 14:01:26
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/connectors/aspx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8807/aspx Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/connectors/aspx added to the repository |
From: Joe S. <joe...@us...> - 2004-10-30 13:59:28
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8352/css Log Message: Directory /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/css added to the repository |
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals Modified Files: fck.js fck_1.js fck_1_gecko.js fck_1_ie.js fck_2.js fck_2_gecko.js fck_2_ie.js fck_last.js fck_onload.js fckbrowserinfo.js fckcommands.js fckconfig.js fckcontextmenu.js fckcontextmenu_gecko.js fckcontextmenu_ie.js fckdebug.js fckdialog.js fckdialog_gecko.js fckdialog_ie.js fcklanguagemanager.js fckscriptloader.js fckselection.js fckselection_gecko.js fckselection_ie.js fcktoolbaritems.js fcktoolbarset.js fcktools.js fcktools_gecko.js fcktools_ie.js fckurlparams.js fckxhtml.js Log Message: complete fckeditor addition Index: fck.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * that represents an editor instance. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:48 * --- 13,17 ---- * that represents an editor instance. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:48 * Index: fck_1.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_1.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_1.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_1.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,18 **** * object that represents an editor instance. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:48 * * File Authors: --- 13,18 ---- * object that represents an editor instance. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-05 02:19:46 * * File Authors: *************** *** 29,32 **** --- 29,36 ---- if ( newStatus == FCK_STATUS_ACTIVE ) { + // Force the focus in the editor. + if ( FCKConfig.StartupFocus ) + FCK.Focus() ; + *************** *** 53,59 **** this.EditorDocument.body.innerHTML = html ; - // On Gecko we must set the desingMode on again after setting the innerHTML. if ( FCKBrowserInfo.IsGecko ) FCK.EditorDocument.designMode = "on" ; } else --- 57,68 ---- this.EditorDocument.body.innerHTML = html ; if ( FCKBrowserInfo.IsGecko ) + { + // On Gecko we must set the desingMode on again after setting the innerHTML. FCK.EditorDocument.designMode = "on" ; + + // Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline. + FCK.EditorDocument.execCommand( "useCSS", false, !FCKConfig.GeckoUseSPAN ) ; + } } else *************** *** 92,103 **** } - FCK.Focus = function() - { - if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) - FCK.EditorDocument.body.focus() ; - else - document.getElementById('eSource').focus() ; - } - FCK.ShowContextMenu = function( x, y ) { --- 101,104 ---- Index: fck_1_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_1_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_1_gecko.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_1_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 14,19 **** * (Gecko specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:48 * * File Authors: --- 14,19 ---- * (Gecko specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 22:47:52 * * File Authors: *************** *** 124,131 **** this.EditorDocument.addEventListener( 'keyup', oOnSelectionChange, false ) ; - //Enable editing - this.EditorDocument.designMode = "on" ; - this.SetStatus( FCK_STATUS_ACTIVE ) ; } --- 124,133 ---- this.EditorDocument.addEventListener( 'keyup', oOnSelectionChange, false ) ; this.SetStatus( FCK_STATUS_ACTIVE ) ; } + FCK.Focus = function() + { + this.EditorWindow.focus() ; + } + Index: fck_1_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_1_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_1_ie.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_1_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 14,19 **** * (IE specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:48 * * File Authors: --- 14,19 ---- * (IE specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 22:48:10 * * File Authors: *************** *** 34,37 **** --- 34,47 ---- // Attach the editor to the form onsubmit event FCKTools.AttachToLinkedFieldFormSubmit( this.UpdateLinkedField ) ; + + // Set the focus to the editable area when clicking in the document area. + // TODO: The cursor must be positioned at the end. + this.EditorDocument.onmousedown = this.EditorDocument.onmouseup = function() + { + FCK.Focus() ; + + FCK.EditorWindow.event.cancelBubble = true ; + FCK.EditorWindow.event.returnValue = false ; + } // Intercept pasting operations *************** *** 64,65 **** --- 74,83 ---- } + FCK.Focus = function() + { + if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) + FCK.EditorDocument.body.focus() ; + else + document.getElementById('eSource').focus() ; + } + Index: fck_2.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_2.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_2.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_2.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,18 **** * object that represents an editor instance. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 13,18 ---- * object that represents an editor instance. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-07 01:11:37 * * File Authors: *************** *** 22,27 **** FCK.ExecuteNamedCommand = function( commandName, commandParameter ) { ! this.EditorDocument.execCommand( commandName, false, commandParameter ) ; ! this.Events.FireEvent( 'OnSelectionChange' ) ; } --- 22,28 ---- FCK.ExecuteNamedCommand = function( commandName, commandParameter ) { ! FCK.Focus() ; ! FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ; ! FCK.Events.FireEvent( 'OnSelectionChange' ) ; } *************** *** 61,68 **** { if ( url.length == 0 ) ! this.ExecuteNamedCommand( 'Unlink' ) ; else { ! this.ExecuteNamedCommand( 'CreateLink', "javascript:void(0);/*fckeditortemplink*/" ) ; var oLinks = this.EditorDocument.links ; --- 62,69 ---- { if ( url.length == 0 ) ! FCK.ExecuteNamedCommand( 'Unlink' ) ; else { ! FCK.ExecuteNamedCommand( 'CreateLink', "javascript:void(0);/*fckeditortemplink*/" ) ; var oLinks = this.EditorDocument.links ; *************** *** 98,102 **** html = html.replace( re, "<div$2</div>" ) ; ! this.InsertHtml( html ) ; } --- 99,103 ---- html = html.replace( re, "<div$2</div>" ) ; ! FCK.InsertHtml( html ) ; } *************** *** 104,110 **** { var oWindow = window.open( '', null, 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes' ) ; oWindow.document.write( FCK.GetHTML() ); oWindow.document.close(); ! // TODO: The CSS of the editor area must be configurable. // oWindow.document.createStyleSheet( config.EditorAreaCSS ); --- 105,112 ---- { var oWindow = window.open( '', null, 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes' ) ; + oWindow.document.write( FCK.GetHTML() ); oWindow.document.close(); ! // TODO: The CSS of the editor area must be configurable. // oWindow.document.createStyleSheet( config.EditorAreaCSS ); Index: fck_2_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_2_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_2_gecko.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_2_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 14,19 **** * (Gecko specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 14,19 ---- * (Gecko specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:17:33 * * File Authors: *************** *** 41,45 **** { case 'Print' : ! FCK.EditorWindow.print(); default : FCK._BaseExecuteNamedCommand( commandName, commandParameter ) ; --- 41,58 ---- { case 'Print' : ! FCK.EditorWindow.print() ; ! break ; ! case 'Paste' : ! try { if ( FCK.Paste() ) FCK._BaseExecuteNamedCommand( 'Paste' ) ; } ! catch (e) { alert( "Your browser security settings don't permit the editor to automaticaly execute pasting operations. Please use the keyboard for that (Ctrl+V)." ) ; } ! break ; ! case 'Cut' : ! try { FCK._BaseExecuteNamedCommand( 'Cut' ) ; } ! catch (e) { alert( "Your browser security settings don't permit the editor to automaticaly execute cutting operations. Please use the keyboard for that (Ctrl+X)." ) ; } ! break ; ! case 'Copy' : ! try { FCK._BaseExecuteNamedCommand( 'Copy' ) ; } ! catch (e) { alert( "Your browser security settings don't permit the editor to automaticaly execute copying operations. Please use the keyboard for that (Ctrl+C)." ) ; } ! break ; default : FCK._BaseExecuteNamedCommand( commandName, commandParameter ) ; *************** *** 47,55 **** } - FCK.Focus = function() - { - this.EditorWindow.focus() ; - } - FCK.AttachToOnSelectionChange = function( functionPointer ) { --- 60,63 ---- *************** *** 59,64 **** FCK.Paste = function() { - FCKDebug.Output( 'FCK.Paste' ) ; - if ( FCKConfig.ForcePasteAsPlainText ) { --- 67,70 ---- *************** *** 141,149 **** FCK.PasteAsPlainText = function() { /* var sText = FCKTools.HTMLEncode( clipboardData.getData("Text") ) ; - - FCKDebug.Output( 'FCK.PasteAsPlainText: ' + sText ) ; - sText = sText.replace( /\n/g, '<BR>' ) ; this.InsertHtml( sText ) ; --- 147,156 ---- FCK.PasteAsPlainText = function() { + // TODO: Implement the "Paste as Plain Text" code. + + FCKDialog.OpenDialog( 'FCKDialog_Paste', 'Paste as Plain Text', 'dialog/fck_paste.html', 400, 330, 'PlainText' ) ; + /* var sText = FCKTools.HTMLEncode( clipboardData.getData("Text") ) ; sText = sText.replace( /\n/g, '<BR>' ) ; this.InsertHtml( sText ) ; *************** *** 151,154 **** --- 158,170 ---- } + FCK.PasteFromWord = function() + { + // TODO: Implement the "Paste as Plain Text" code. + + FCKDialog.OpenDialog( 'FCKDialog_Paste', 'Paste from Word', 'dialog/fck_paste.html', 400, 330, 'Word' ) ; + + // FCK.CleanAndPaste( FCK.GetClipboardHTML() ) ; + } + FCK.GetClipboardHTML = function() { Index: fck_2_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_2_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_2_ie.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_2_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 14,19 **** * (IE specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 14,19 ---- * (IE specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-02 11:40:29 * * File Authors: *************** *** 23,27 **** FCK.Paste = function() { - if ( FCKConfig.ForcePasteAsPlainText ) { --- 23,26 ---- *************** *** 48,69 **** FCK.PasteAsPlainText = function() { var sText = FCKTools.HTMLEncode( clipboardData.getData("Text") ) ; ! FCKDebug.Output( 'FCK.PasteAsPlainText: ' + sText ) ; ! sText = sText.replace( /\n/g, '<BR>' ) ; this.InsertHtml( sText ) ; } FCK.InsertHtml = function( html ) { var oSel = FCKSelection.Delete() ; oSel.createRange().pasteHTML( html ) ; ! this.Focus() ; } FCK.InsertElement = function( element ) { ! this.InsertHtml( element.outerHTML ) ; } --- 47,76 ---- FCK.PasteAsPlainText = function() { + // Get the data available in the clipboard and encodes it in HTML. var sText = FCKTools.HTMLEncode( clipboardData.getData("Text") ) ; ! // Replace the carriage returns with <BR> sText = sText.replace( /\n/g, '<BR>' ) ; + + // Insert the resulting data in the editor. this.InsertHtml( sText ) ; } + FCK.PasteFromWord = function() + { + FCK.CleanAndPaste( FCK.GetClipboardHTML() ) ; + } + FCK.InsertHtml = function( html ) { + FCK.Focus() ; var oSel = FCKSelection.Delete() ; oSel.createRange().pasteHTML( html ) ; ! } FCK.InsertElement = function( element ) { ! FCK.InsertHtml( element.outerHTML ) ; } *************** *** 75,80 **** { var oDiv = document.createElement( 'DIV' ) ; ! divEdit.id = '___FCKHiddenDiv' ; ! oDiv.style.display = 'none' ; oDiv.style.visibility = 'hidden' ; oDiv.style.overflow = 'hidden' ; --- 82,86 ---- { var oDiv = document.createElement( 'DIV' ) ; ! oDiv.id = '___FCKHiddenDiv' ; oDiv.style.visibility = 'hidden' ; oDiv.style.overflow = 'hidden' ; *************** *** 84,92 **** document.body.appendChild( oDiv ) ; - - // Get the element again (must be done to work) - oDiv = document.getElementById( '___FCKHiddenDiv' ) ; } var oTextRange = document.body.createTextRange() ; oTextRange.moveToElementText( oDiv ) ; --- 90,97 ---- document.body.appendChild( oDiv ) ; } + oDiv.innerHTML = '' ; + var oTextRange = document.body.createTextRange() ; oTextRange.moveToElementText( oDiv ) ; *************** *** 101,105 **** FCK.AttachToOnSelectionChange = function( functionPointer ) { ! this.EditorDocument.attachEvent( 'onselectionchange', functionPointer ) ; } --- 106,110 ---- FCK.AttachToOnSelectionChange = function( functionPointer ) { ! FCK.EditorDocument.attachEvent( 'onselectionchange', functionPointer ) ; } Index: fck_last.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_last.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_last.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_last.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * These are the last script lines executed in the editor loading process. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:49 * --- 12,16 ---- * These are the last script lines executed in the editor loading process. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:49 * Index: fck_onload.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fck_onload.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_onload.js 28 Oct 2004 20:17:42 -0000 1.1 --- fck_onload.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,18 **** * its IFRAME. It's the editor startup. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 13,18 ---- * its IFRAME. It's the editor startup. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-10 01:48:31 * * File Authors: *************** *** 71,74 **** --- 71,85 ---- function LoadScripts() { + FCKScriptLoader.OnEmpty = null ; + + + if ( FCKBrowserInfo.IsIE ) + FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_1.js' ) ; + else + FCKScriptLoader.AddScript( 'js/fckeditorcode_gecko_1.js' ) ; + } + + function LoadLanguageFile() + { FCKScriptLoader.OnEmpty = function() { *************** *** 83,90 **** } ! ! if ( FCKBrowserInfo.IsIE ) ! FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_1.js' ) ; ! else ! FCKScriptLoader.AddScript( 'js/fckeditorcode_gecko_1.js' ) ; ! } --- 94,97 ---- } ! FCKScriptLoader.AddScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; ! } \ No newline at end of file Index: fckbrowserinfo.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckbrowserinfo.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckbrowserinfo.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckbrowserinfo.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Defines the FCKBrowserInfo object that hold some browser informations. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:49 * --- 12,16 ---- * Defines the FCKBrowserInfo object that hold some browser informations. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:49 * Index: fckcommands.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckcommands.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcommands.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcommands.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Define all commands available in the editor. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 12,17 ---- * Define all commands available in the editor. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-02 00:56:46 * * File Authors: *************** *** 57,60 **** --- 57,75 ---- FCKCommands['NewPage'] = new FCKNewPageCommand() ; + FCKCommands['TextColor'] = new FCKTextColorCommand('ForeColor') ; + FCKCommands['BGColor'] = new FCKTextColorCommand('BackColor') ; + + FCKCommands['PasteText'] = new FCKPastePlainTextCommand() ; + FCKCommands['PasteWord'] = new FCKPasteWordCommand() ; + + FCKCommands['TableInsertRow'] = new FCKTableCommand('TableInsertRow') ; + FCKCommands['TableDeleteRows'] = new FCKTableCommand('TableDeleteRows') ; + FCKCommands['TableInsertColumn'] = new FCKTableCommand('TableInsertColumn') ; + FCKCommands['TableDeleteColumns'] = new FCKTableCommand('TableDeleteColumns') ; + FCKCommands['TableInsertCell'] = new FCKTableCommand('TableInsertCell') ; + FCKCommands['TableDeleteCells'] = new FCKTableCommand('TableDeleteCells') ; + FCKCommands['TableMergeCells'] = new FCKTableCommand('TableMergeCells') ; + FCKCommands['TableSplitCell'] = new FCKTableCommand('TableSplitCell') ; + // Generic Undefined command (usually used when a command is under development). FCKCommands['Undefined'] = new FCKUndefinedCommand() ; Index: fckconfig.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckconfig.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckconfig.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckconfig.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Creates and initializes the FCKConfig object. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:49 * --- 12,16 ---- * Creates and initializes the FCKConfig object. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:49 * Index: fckcontextmenu.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckcontextmenu.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenu.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenu.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,18 **** * Context Menu operations. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 13,18 ---- * Context Menu operations. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-07 01:01:03 * * File Authors: *************** *** 69,84 **** { Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["InsertRow"] ) ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["DeleteRows"] ) ) ; Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["InsertColumn"] ) ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["DeleteColumns"] ) ) ; Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["InsertCell"] ) ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["DeleteCells"] ) ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["MergeCells"] ) ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["SplitCell"] ) ) ; Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["CellProperties"] ) ) ; Add( new FCKContextMenuItem( this, 'TableProp', FCKLang["TableProperties"], true ) ) ; } --- 69,84 ---- { Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'TableInsertRow', FCKLang["InsertRow"], true ) ) ; ! Add( new FCKContextMenuItem( this, 'TableDeleteRows', FCKLang["DeleteRows"], true ) ) ; Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'TableInsertColumn', FCKLang["InsertColumn"], true ) ) ; ! Add( new FCKContextMenuItem( this, 'TableDeleteColumns', FCKLang["DeleteColumns"], true ) ) ; Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'TableInsertCell', FCKLang["InsertCell"], true ) ) ; ! Add( new FCKContextMenuItem( this, 'TableDeleteCells', FCKLang["DeleteCells"], true ) ) ; ! // Add( new FCKContextMenuItem( this, 'TableMergeCells', FCKLang["MergeCells"], true ) ) ; ! // Add( new FCKContextMenuItem( this, 'TableSplitCell', FCKLang["SplitCell"], true ) ) ; Add( new FCKContextMenuSeparator() ) ; ! // Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["CellProperties"] ) ) ; Add( new FCKContextMenuItem( this, 'TableProp', FCKLang["TableProperties"], true ) ) ; } *************** *** 97,102 **** { Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Undefined', FCKLang["ImageProperties"] ) ) ; ! // Add( new FCKContextMenuItem( this, 'Image', FCKLang["ImageProperties"], true ) ) ; } --- 97,101 ---- { Add( new FCKContextMenuSeparator() ) ; ! Add( new FCKContextMenuItem( this, 'Image', FCKLang["ImageProperties"], true ) ) ; } *************** *** 134,143 **** if ( oTag ) { ! sTagName = oTag.tagName.toUpperCase() ; } // Set items visibility. this.Groups['Link'].SetVisible( FCK.GetNamedCommandState( 'Unlink' ) != FCK_TRISTATE_DISABLED ) ; ! this.Groups['TableCell'].SetVisible( FCKSelection.HasAncestorNode('TD') ) ; // TODO: Table Cell operations are not yet available. this.Groups['Table'].SetVisible( sTagName == 'TABLE' ) ; this.Groups['Image'].SetVisible( sTagName == 'IMG' ) ; --- 133,142 ---- if ( oTag ) { ! sTagName = oTag.tagName ; } // Set items visibility. this.Groups['Link'].SetVisible( FCK.GetNamedCommandState( 'Unlink' ) != FCK_TRISTATE_DISABLED ) ; ! this.Groups['TableCell'].SetVisible( sTagName != 'TABLE' && FCKSelection.HasAncestorNode('TABLE') ) ; this.Groups['Table'].SetVisible( sTagName == 'TABLE' ) ; this.Groups['Image'].SetVisible( sTagName == 'IMG' ) ; Index: fckcontextmenu_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckcontextmenu_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenu_gecko.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenu_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Context Menu operations. (Gecko specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 12,17 ---- * Context Menu operations. (Gecko specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-27 16:58:07 * * File Authors: *************** *** 38,55 **** this.RefreshState() ; ! // The x and y parameters for Gecko are relative to the client ! var oFrames = [ FCK.EditorWindow.frameElement, window.frameElement ] ; ! for ( var i = 0 ; i < oFrames.length ; i++ ) ! { ! var oParent = oFrames[i] ; ! while ( oParent ) ! { ! x += oParent.offsetLeft ; ! y += oParent.offsetTop ; ! ! oParent = oParent.offsetParent ; ! } ! } // Verifies if the context menu is completely visible. --- 38,48 ---- this.RefreshState() ; + + // Get the editor area and editor frames positions. + var oCoordsA = FCKTools.GetElementPosition( FCK.EditorWindow.frameElement ) ; + var oCoordsB = FCKTools.GetElementPosition( window.frameElement ) ; ! x += oCoordsA.X + oCoordsB.X ; ! y += oCoordsA.Y + oCoordsB.Y ; // Verifies if the context menu is completely visible. Index: fckcontextmenu_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckcontextmenu_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenu_ie.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenu_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Context Menu operations. (IE specific implementations) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:49 * * File Authors: --- 12,17 ---- * Context Menu operations. (IE specific implementations) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-20 22:58:12 * * File Authors: *************** *** 38,44 **** this.RefreshState() ; ! // IE doenst get the offsetWidth and offsetHeight values if the element is not visible. // So a temporary element is created to get this for us. if ( !this._DivCopy ) { --- 38,49 ---- this.RefreshState() ; + + // IE doens't get the offsetWidth and offsetHeight values if the element is not visible. + // So the Popup must be "shown" with no size to be able to get these values. + this._Popup.show( x, y, 0, 0 ) ; ! // This was the previous solution. It works well to. // So a temporary element is created to get this for us. + /* if ( !this._DivCopy ) { *************** *** 51,57 **** this._DivCopy.innerHTML = this._Div.innerHTML ; // Show the Popup at the specified location. ! this._Popup.show( x, y, this._DivCopy.offsetWidth, this._DivCopy.offsetHeight ) ; } --- 56,63 ---- this._DivCopy.innerHTML = this._Div.innerHTML ; + */ // Show the Popup at the specified location. ! this._Popup.show( x, y, this._Div.offsetWidth, this._Div.offsetHeight ) ; } Index: fckdebug.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckdebug.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdebug.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckdebug.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Debug window control and operations. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:49 * --- 12,16 ---- * Debug window control and operations. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:49 * Index: fckdialog.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckdialog.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdialog.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckdialog.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Dialog windows operations. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 12,17 ---- * Dialog windows operations. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-20 01:46:34 * * File Authors: *************** *** 22,26 **** // This method opens a dialog window using the standard dialog template. ! FCKDialog.OpenDialog = function( dialogName, dialogTitle, dialogPage, width, height ) { // Setup the dialog info. --- 22,26 ---- // This method opens a dialog window using the standard dialog template. ! FCKDialog.OpenDialog = function( dialogName, dialogTitle, dialogPage, width, height, customValue ) { // Setup the dialog info. *************** *** 29,32 **** --- 29,33 ---- oDialogInfo.Page = dialogPage ; oDialogInfo.Editor = window ; + oDialogInfo.CustomValue = customValue ; // Optional var sUrl = FCKConfig.BasePath + 'fckdialog.html' ; Index: fckdialog_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckdialog_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdialog_gecko.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckdialog_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Dialog windows operations. (Gecko specific implementations) * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 12,16 ---- * Dialog windows operations. (Gecko specific implementations) * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fckdialog_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckdialog_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdialog_ie.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckdialog_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Dialog windows operations. (IE specific implementations) * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 12,16 ---- * Dialog windows operations. (IE specific implementations) * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fcklanguagemanager.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcklanguagemanager.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcklanguagemanager.js 28 Oct 2004 20:17:42 -0000 1.1 --- fcklanguagemanager.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,18 **** * operations. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 13,18 ---- * operations. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-10 01:48:58 * * File Authors: *************** *** 85,87 **** ! FCKScriptLoader.AddScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ; \ No newline at end of file --- 85,88 ---- ! // Load the language file and start the editor. ! LoadLanguageFile() ; \ No newline at end of file Index: fckscriptloader.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckscriptloader.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckscriptloader.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckscriptloader.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * scripts in the editor. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 13,17 ---- * scripts in the editor. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fckselection.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckselection.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckselection.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckselection.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Active selection functions. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 12,16 ---- * Active selection functions. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fckselection_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckselection_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckselection_gecko.js 28 Oct 2004 20:17:43 -0000 1.1 --- fckselection_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Active selection functions. (Gecko specific implementation) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 12,17 ---- * Active selection functions. (Gecko specific implementation) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-02 01:13:50 * * File Authors: *************** *** 39,52 **** { if ( i == 0 ) - { oSel.getRangeAt(i).selectNodeContents( node ) ; - } else - { oSel.removeRange( oSel.getRangeAt(i) ) ; - } } } FCKSelection.HasAncestorNode = function( nodeTagName ) { --- 39,49 ---- { if ( i == 0 ) oSel.getRangeAt(i).selectNodeContents( node ) ; else oSel.removeRange( oSel.getRangeAt(i) ) ; } } + // The "nodeTagName" parameter must be Upper Case. FCKSelection.HasAncestorNode = function( nodeTagName ) { *************** *** 57,61 **** catch(e){} } ! while ( oContainer ) { --- 54,58 ---- catch(e){} } ! while ( oContainer ) { *************** *** 67,70 **** --- 64,68 ---- } + // The "nodeTagName" parameter must be Upper Case. FCKSelection.MoveToAncestorNode = function( nodeTagName ) { *************** *** 73,80 **** var oContainer = this.GetSelectedElement() ; if ( ! oContainer ) - { oContainer = FCK.EditorWindow.getSelection().getRangeAt(0).startContainer ; ! } ! while ( oContainer ) { --- 71,76 ---- var oContainer = this.GetSelectedElement() ; if ( ! oContainer ) oContainer = FCK.EditorWindow.getSelection().getRangeAt(0).startContainer ; ! while ( oContainer ) { Index: fckselection_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckselection_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckselection_ie.js 28 Oct 2004 20:17:43 -0000 1.1 --- fckselection_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Active selection functions. (IE specific implementation) * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 12,17 ---- * Active selection functions. (IE specific implementation) * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-02 01:13:51 * * File Authors: *************** *** 38,41 **** --- 38,42 ---- } + // The "nodeTagName" parameter must be Upper Case. FCKSelection.HasAncestorNode = function( nodeTagName ) { *************** *** 61,64 **** --- 62,66 ---- } + // The "nodeTagName" parameter must be Upper Case. FCKSelection.MoveToAncestorNode = function( nodeTagName ) { Index: fcktoolbaritems.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcktoolbaritems.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbaritems.js 28 Oct 2004 20:17:43 -0000 1.1 --- fcktoolbaritems.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Toolbar items definitions. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 12,17 ---- * Toolbar items definitions. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:24:31 * * File Authors: *************** *** 30,33 **** --- 30,35 ---- FCKToolbarItems['Copy'] = new FCKToolbarButton( 'Copy', FCKLang.Copy, null, null, true ) ; FCKToolbarItems['Paste'] = new FCKToolbarButton( 'Paste', FCKLang.Paste, null, null, true ) ; + FCKToolbarItems['PasteText'] = new FCKToolbarButton( 'PasteText', FCKLang.PasteText ) ; + FCKToolbarItems['PasteWord'] = new FCKToolbarButton( 'PasteWord', FCKLang.PasteWord ) ; FCKToolbarItems['Print'] = new FCKToolbarButton( 'Print', null, null, null, true ) ; FCKToolbarItems['Undo'] = new FCKToolbarButton( 'Undo', null, null, null, true ) ; *************** *** 68,69 **** --- 70,74 ---- FCKToolbarItems['FontSize'] = new FCKToolbarCombo( 'FontSize', FCKLang['FontSize'], '1;2;3;4;5;6;7', 'xx-small;x-small;small;medium;large;x-large;xx-large' ) ; FCKToolbarItems['FontFormat'] = new FCKToolbarCombo( 'FontFormat', FCKLang['FontFormat'], '<P>;<DIV>;<H1>;<H2>', 'Normal (P);Normal (DIV);Heading 1;Heading 2' ) ; + + FCKToolbarItems['TextColor'] = new FCKToolbarPanelButton( 'TextColor' ) ; + FCKToolbarItems['BGColor'] = new FCKToolbarPanelButton( 'BGColor' ) ; Index: fcktoolbarset.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcktoolbarset.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbarset.js 28 Oct 2004 20:17:43 -0000 1.1 --- fcktoolbarset.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * toolbar. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 13,17 ---- * toolbar. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fcktools.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcktools.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktools.js 28 Oct 2004 20:17:43 -0000 1.1 --- fcktools.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Utility functions. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:50 * * File Authors: --- 12,17 ---- * Utility functions. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-02 02:11:14 * * File Authors: *************** *** 159,160 **** --- 159,191 ---- } + FCKTools.GetElementPosition = function( el ) + { + // Initializes the Coordinates object that will be returned by the function. + var c = { X:0, Y:0 } ; + + // Loop throw the offset chain. + while ( el ) + { + c.X += el.offsetLeft ; + c.Y += el.offsetTop ; + + el = el.offsetParent ; + } + + // Return the Coordinates object + return c ; + } + + FCKTools.GetElementAscensor = function( element, ascensorTagName ) + { + var e = element.parentNode ; + + while ( e ) + { + if ( e.nodeName == ascensorTagName ) + return e ; + + e = e.parentNode ; + } + } + Index: fcktools_gecko.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcktools_gecko.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktools_gecko.js 28 Oct 2004 20:17:43 -0000 1.1 --- fcktools_gecko.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Utility functions. (Gecko version). * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 12,16 ---- * Utility functions. (Gecko version). * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fcktools_ie.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fcktools_ie.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktools_ie.js 28 Oct 2004 20:17:43 -0000 1.1 --- fcktools_ie.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Utility functions. (IE version). * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:50 * --- 12,16 ---- * Utility functions. (IE version). * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:50 * Index: fckurlparams.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckurlparams.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckurlparams.js 28 Oct 2004 20:17:43 -0000 1.1 --- fckurlparams.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * passed by the URL QueryString (after the "?"). * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:51 * --- 13,17 ---- * passed by the URL QueryString (after the "?"). * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:51 * Index: fckxhtml.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/internals/fckxhtml.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckxhtml.js 28 Oct 2004 20:17:43 -0000 1.1 --- fckxhtml.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Defines the FCKXHtml object, responsible for the XHTML operations. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:51 * * File Authors: --- 12,17 ---- * Defines the FCKXHtml object, responsible for the XHTML operations. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-18 01:08:15 * * File Authors: *************** *** 27,36 **** this.XML = new ActiveXObject( 'Msxml2.DOMDocument' ) ; else // Gecko - { this.XML = document.implementation.createDocument( '', '', null ) ; - - // Gecko doesn't have the "xml" property for XML Nodes, so we must do it manually. - Node.prototype.__defineGetter__( 'xml', FCKXHtml._Node_getXML ) ; - } // Add a root element that holds all child nodes. --- 27,31 ---- *************** *** 39,45 **** // Start recursivelly calling the _AppendNode function. this._AppendChildNodes( this.MainNode, node ) ; ! // Get the resulting XHTML as a string. ! var sXHTML = this.MainNode.xml ; // Strip the "XHTML" root node. --- 34,40 ---- // Start recursivelly calling the _AppendNode function. this._AppendChildNodes( this.MainNode, node ) ; ! // Get the resulting XHTML as a string. ! var sXHTML = document.all ? this.MainNode.xml : FCKXHtml._GetGeckoNodeXml( this.MainNode ) ; // Strip the "XHTML" root node. *************** *** 47,51 **** } ! FCKXHtml._Node_getXML = function() { // Create the XMLSerializer. --- 42,46 ---- } ! FCKXHtml._GetGeckoNodeXml = function( node ) { // Create the XMLSerializer. *************** *** 53,61 **** // Return the serialized XML as a string. ! return oSerializer.serializeToString( this ) ; } FCKXHtml._AppendAttribute = function( xmlNode, attributeName, attributeValue ) { // Create the attribute. var oXmlAtt = this.XML.createAttribute( attributeName ) ; --- 48,60 ---- // Return the serialized XML as a string. ! return oSerializer.serializeToString( node ) ; } FCKXHtml._AppendAttribute = function( xmlNode, attributeName, attributeValue ) { + // There is a bug in Mozilla that returns the '_moz_dirty' as specified. + if ( attributeName == '_moz_dirty' ) + return ; + // Create the attribute. var oXmlAtt = this.XML.createAttribute( attributeName ) ; *************** *** 101,105 **** var oAttribute = oAttributes[n] ; if ( oAttribute.specified ) ! this._AppendAttribute( oNode, oAttribute.nodeName.toLowerCase(), oAttribute.nodeValue ) ; } --- 100,114 ---- var oAttribute = oAttributes[n] ; if ( oAttribute.specified ) ! { ! var sAttName = oAttribute.nodeName.toLowerCase() ; ! var sAttValue = oAttribute.nodeValue ; ! ! // The following must be done because of a bug on IE regarding the style ! // attribute. It returns "null" for the nodeValue. ! if ( sAttName == 'style' && document.all ) ! sAttValue = htmlNode.style.cssText ; ! ! this._AppendAttribute( oNode, sAttName, sAttValue ) ; ! } } |
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/_samples/html Modified Files: sample01.html sample02.html sample03.html sample04.html sample05.html sampleposteddata.asp sampleposteddata.html Log Message: complete fckeditor addition Index: sample01.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sample01.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample01.html 28 Oct 2004 20:17:41 -0000 1.1 --- sample01.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:35:28 * --- 12,16 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:35:28 * Index: sample02.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sample02.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample02.html 28 Oct 2004 20:17:41 -0000 1.1 --- sample02.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:12:46 * --- 12,16 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:12:46 * Index: sample03.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sample03.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample03.html 28 Oct 2004 20:17:41 -0000 1.1 --- sample03.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:12:46 * --- 12,16 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:12:46 * Index: sample04.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sample04.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample04.html 28 Oct 2004 20:17:41 -0000 1.1 --- sample04.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:12:46 * --- 12,16 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:12:46 * Index: sample05.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sample05.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample05.html 28 Oct 2004 20:17:41 -0000 1.1 --- sample05.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:12:46 * --- 12,16 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:12:46 * Index: sampleposteddata.asp =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sampleposteddata.asp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sampleposteddata.asp 28 Oct 2004 20:17:41 -0000 1.1 --- sampleposteddata.asp 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * This page lists the data posted by a form. * ! * Version: 2.0 Beta 1 * Modified: 2004-06-01 00:15:05 * --- 12,16 ---- * This page lists the data posted by a form. * ! * Version: 2.0 Beta 2 * Modified: 2004-06-01 00:15:05 * Index: sampleposteddata.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/html/sampleposteddata.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sampleposteddata.html 28 Oct 2004 20:17:41 -0000 1.1 --- sampleposteddata.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * so it's limited to 2KB of data. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:30:49 * --- 13,17 ---- * so it's limited to 2KB of data. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:30:49 * |
From: Joe S. <joe...@us...> - 2004-10-30 13:54:01
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes Modified Files: fckcontextmenugroup.js fckcontextmenuitem.js fckcontextmenuseparator.js fckevents.js fcktoolbar.js fcktoolbarbutton.js fcktoolbarcombo.js Log Message: complete fckeditor addition Index: fckcontextmenugroup.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fckcontextmenugroup.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenugroup.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenugroup.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * menu. Generaly a group of items is directly dependent of the same rules. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 13,17 ---- * menu. Generaly a group of items is directly dependent of the same rules. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fckcontextmenuitem.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fckcontextmenuitem.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenuitem.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenuitem.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * FCKContextMenuItem Class: represents a item in the context menu. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * FCKContextMenuItem Class: represents a item in the context menu. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fckcontextmenuseparator.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fckcontextmenuseparator.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcontextmenuseparator.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckcontextmenuseparator.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * FCKContextMenuSeparator Class: represents a separator in the toolbar. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * FCKContextMenuSeparator Class: represents a separator in the toolbar. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fckevents.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fckevents.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckevents.js 28 Oct 2004 20:17:42 -0000 1.1 --- fckevents.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * FCKEvents Class: used to handle events is a advanced way. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * FCKEvents Class: used to handle events is a advanced way. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fcktoolbar.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fcktoolbar.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbar.js 28 Oct 2004 20:17:42 -0000 1.1 --- fcktoolbar.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * toolbar set visible, but just a strip on it... a group of items. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 13,17 ---- * toolbar set visible, but just a strip on it... a group of items. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fcktoolbarbutton.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fcktoolbarbutton.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbarbutton.js 28 Oct 2004 20:17:42 -0000 1.1 --- fcktoolbarbutton.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * FCKToolbarButton Class: represents a button in the toolbar. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * FCKToolbarButton Class: represents a button in the toolbar. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: fcktoolbarcombo.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/_source/classes/fcktoolbarcombo.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcktoolbarcombo.js 28 Oct 2004 20:17:42 -0000 1.1 --- fcktoolbarcombo.js 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,16 **** * FCKToolbarCombo Class: represents a combo in the toolbar. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:48 * --- 12,16 ---- * FCKToolbarCombo Class: represents a combo in the toolbar. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:48 * |
From: Joe S. <joe...@us...> - 2004-10-30 13:54:01
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/lang Modified Files: ar.js en.js it.js Log Message: complete fckeditor addition Index: ar.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/lang/ar.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ar.js 28 Oct 2004 20:17:48 -0000 1.1 --- ar.js 30 Oct 2004 13:53:14 -0000 1.2 *************** *** 12,16 **** * Arabic language file. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-27 14:04:07 * --- 12,16 ---- * Arabic language file. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-27 14:04:07 * Index: en.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/lang/en.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** en.js 28 Oct 2004 20:17:48 -0000 1.1 --- en.js 30 Oct 2004 13:53:14 -0000 1.2 *************** *** 12,16 **** * English language file. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:54 * --- 12,16 ---- * English language file. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:54 * Index: it.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/lang/it.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** it.js 28 Oct 2004 20:17:48 -0000 1.1 --- it.js 30 Oct 2004 13:53:14 -0000 1.2 *************** *** 12,16 **** * Italian language file. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-27 19:26:03 * --- 12,16 ---- * Italian language file. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-27 19:26:03 * |
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/dialog Modified Files: fck_about.html fck_image.html fck_link.html fck_smiley.html fck_specialchar.html fck_table.html Log Message: complete fckeditor addition Index: fck_about.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_about.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_about.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_about.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * About dialog window. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:51 * --- 12,16 ---- * About dialog window. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:51 * *************** *** 64,68 **** <span fckLang="DlgAboutVersion">version</span> <br> ! <b>2.0 Beta 1</b></td> </tr> </table> --- 64,68 ---- <span fckLang="DlgAboutVersion">version</span> <br> ! <b>2.0 Beta 2</b></td> </tr> </table> Index: fck_image.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_image.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_image.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_image.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 10,453 **** * * File Name: fck_image.html ! * Image dialog window. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:51 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <html> ! <head> ! <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> ! <script type="text/javascript"> ! var dialogArguments = window.parent.InnerDialogLoaded() ; ! var FCK = dialogArguments.FCK ; ! ! // Sets the Skin CSS ! document.write( '<link href="' + dialogArguments.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; ! ! var FCKConfig = dialogArguments.FCKConfig ; ! ! // Get browsing configuration ! var bCanBrowse = FCKConfig.ImageBrowser ; ! var sBrowseURL = FCKConfig.ImageBrowserURL ; ! var iBrowseWindowWidth = FCKConfig.ImageBrowserWindowWidth ; ! var iBrowseWindowHeight = FCKConfig.ImageBrowserWindowHeight ; ! ! // Get upload configuration ! var bCanUpload = FCKConfig.ImageUpload && dialogArguments.BrowserInfo.IsIE55OrMore ; ! var sUploadURL = FCKConfig.ImageUploadURL ; ! var iUploadWindowWidth = FCKConfig.ImageUploadWindowWidth ; ! var iUploadWindowHeight = FCKConfig.ImageUploadWindowHeight ; ! var sUploadAllowedExtensions = FCKConfig.ImageUploadAllowedExtensions ; ! ! // Gets the document DOM ! var oDOM = dialogArguments.FCK.EditorDocument ; ! ! // Gets the image if there is one selected. ! var image ; ! var e = FCK.Selection.GetSelectedElement( 'A' ) ; ! if ( e && e.tagName == 'IMG' ) ! image = e ; ! ! // this var is used to update the existing image ! var imageSource = image ; ! ! // Gets a copy of the image (for image size purposes) ! var imageOriginal ; ! if (image != null) ! { ! imageOriginal = new Image() ; ! imageOriginal.src = image.src ; ! } ! else ! imageOriginal = null ; ! ! // Get the IMG tag. ! function getImageHtml() ! { ! return '<IMG' ! + attr("src", document.getElementById('txtURL').value) ! + attr("alt", document.getElementById('txtAlt').value) ! + attr("align", document.getElementById('cmbAlign')[document.getElementById('cmbAlign').selectedIndex].value) ! + ((txtWidth.value) ? attr("width" , document.getElementById('txtWidth').value) : "") ! + ((txtHeight.value) ? attr("height", document.getElementById('txtHeight').value) : "") ! + ((txtVSpace.value) ? attr("vspace", document.getElementById('txtVSpace').value) : "") ! + ((txtHSpace.value) ? attr("hspace", document.getElementById('txtHSpace').value) : "") ! + ((txtBorder.value) ? attr("border", document.getElementById('txtBorder').value) : attr("border",0)) ! + '/>' ; ! } ! ! // Returns a formatted image attribute. Used by getImageHtml(). ! function attr(name, value) ! { ! if (!value || value == "") return "" ; ! return ' ' + name + '="' + value + '"' ; ! } ! ! // Update any image (the selected or preview one) ! function updateImage(imgTarget) ! { ! if ( document.getElementById('txtURL').value.length == 0 ) ! imgTarget.style.display = "none" ; ! else ! { ! imgTarget.style.removeAttribute("display") ; ! imgTarget.style.removeAttribute("height") ; ! imgTarget.style.removeAttribute("width") ; ! ! imgTarget.src = document.getElementById('txtURL').value ; ! setAttribute(imgTarget, "alt" , document.getElementById('txtAlt').value) ; ! setAttribute(imgTarget, "width" , document.getElementById('txtWidth').value) ; ! setAttribute(imgTarget, "height", document.getElementById('txtHeight').value) ; ! setAttribute(imgTarget, "vspace", document.getElementById('txtVSpace').value) ; ! setAttribute(imgTarget, "hspace", document.getElementById('txtHSpace').value) ; ! setAttribute(imgTarget, "border", document.getElementById('txtBorder').value) ; ! setAttribute(imgTarget, "align" , document.getElementById('cmbAlign').options[ document.getElementById('cmbAlign').selectedIndex ].value) ; ! } ! } ! ! function setAttribute(element, attribute, value) ! { ! if (value == null || value == "") ! element.removeAttribute(attribute, 0) ; // 0 = case insensitive ! else ! element.setAttribute(attribute, value, 0) ; // 0 = overwrite ! } ! ! // Fired when any field change to update the preview image. ! function updatePreview() ! { ! updateImage(imgPreview) ; ! } ! ! // Fired when the user press the OK button ! function Ok() ! { ! if ( document.getElementById('txtURL').value.length == 0 ) ! { ! cancel() ; ! return ; ! } ! ! if ( imageSource == null ) ! window.returnValue = getImageHtml() ; ! else ! { ! updateImage( imageSource ) ; ! window.returnValue = null ; ! } ! window.close() ; ! } ! ! // Fired when the user load the window. It sets the fields with the ! // actual values if an image is selected in the editor. ! function setDefaults() ! { ! // First of all, translate the dialog box texts ! dialogArguments.FCKLanguageManager.TranslatePage(document) ; ! ! window.parent.AddTab( 'Info', 'Image Info' ) ; ! window.parent.AddTab( 'Upload', 'Upload' ) ; ! ! if (image == null) return ; ! ! if (image.getAttribute("src",2) != null) document.getElementById('txtURL').value = image.getAttribute("src",2) ; ! if (image.getAttribute("alt",2) != null) document.getElementById('txtAlt').value = image.getAttribute("alt",2) ; ! if (image.getAttribute("vspace",2) != null) document.getElementById('txtVSpace').value = image.getAttribute("vspace",2) > 0 ? image.getAttribute("vspace",2) : "" ; ! if (image.getAttribute("hspace",2) != null) document.getElementById('txtHSpace').value = image.getAttribute("hspace",2) > 0 ? image.getAttribute("hspace",2) : "" ; ! if (image.getAttribute("border",2) != null) document.getElementById('txtBorder').value = image.getAttribute("border",2) ; ! ! if ( image.style.getAttribute("pixelWidth") > 0 ) ! document.getElementById('txtWidth').value = image.style.getAttribute("pixelWidth") ; ! else if (image.getAttribute("width",2) != null) ! document.getElementById('txtWidth').value = image.getAttribute("width",2) ; ! ! if ( image.style.getAttribute("pixelHeight") > 0 ) ! document.getElementById('txtHeight').value = image.style.getAttribute("pixelHeight") ; ! else if (image.getAttribute("height",2) != null) ! document.getElementById('txtHeight').value = image.getAttribute("height",2) ; ! ! if (image.getAttribute("align") != null) ! document.getElementById('cmbAlign').value = image.getAttribute("align") ; ! ! updatePreview() ; ! } ! ! // Fired when the width or height input texts change ! function sizeChanged(axe) ! { ! // Verifies if the aspect ration has to be mantained ! if (imageOriginal && document.getElementById('chkLockRatio').checked) ! { ! if ((axe) == "Width") ! { ! if ( document.getElementById('txtWidth').value != "") ! { ! if (! isNaN(txtWidth.value)) ! document.getElementById('txtHeight').value = Math.round( imageOriginal.height * ( txtWidth.value / imageOriginal.width ) ) ; ! } ! else ! document.getElementById('txtHeight').value = "" ; ! } ! else ! if (txtHeight.value != "") ! { ! if (! isNaN(txtHeight.value)) ! document.getElementById('txtWidth').value = Math.round( imageOriginal.width * ( document.getElementById('txtHeight').value / imageOriginal.height ) ) ; ! } ! else ! document.getElementById('txtWidth').value = "" ; ! } ! ! updatePreview() ; ! } ! ! // Fired when the Lock Ratio checkbox is clicked ! function onLockRationClick() ! { ! sizeChanged("Width") ; ! } ! ! // Fired when the Reset Size button is clicked ! function resetSize() ! { ! if (! imageOriginal) return ; ! ! document.getElementById('txtWidth').value = imageOriginal.width ; ! document.getElementById('txtHeight').value = imageOriginal.height ; ! updatePreview() ; ! } ! ! // Fired when the user click in the "Sent it to the Server" button. ! function uploadFile() ! { ! var sFile = frmUpload.FCKeditor_File.value ; ! ! if (sFile == "") ! { ! alert( dialogArguments.FCKLang["DlgImgAlertSelect"] ) ; ! return ; ! } ! ! var sExt = sFile.match( /\.[^\.]*$/ ) ; ! sExt = sExt ? sExt[0].toLowerCase() : "." ; ! ! if ( sUploadAllowedExtensions.indexOf( sExt ) < 0 ) ! { ! alert( dialogArguments.FCKLang["DlgImgMsgWrongExt"] ) ; ! return ; ! } ! ! var oWindow = openNewWindow("", "UploadWindow", iUploadWindowWidth, iUploadWindowHeight) ; ! frmUpload.submit() ; ! oWindow.setImage = setImage ; ! } ! ! function browserServer() ! { ! var oWindow = openNewWindow(sBrowseURL, "BrowseWindow", iBrowseWindowWidth, iBrowseWindowHeight) ; ! oWindow.setImage = setImage ; ! } ! ! function openNewWindow(sURL, sName, iWidth, iHeight, bResizable, bScrollbars) ! { ! var iTop = (screen.height - iHeight) / 2 ; ! var iLeft = (screen.width - iWidth) / 2 ; ! ! var sOptions = "toolbar=no" ; ! sOptions += ",width=" + iWidth ; ! sOptions += ",height=" + iHeight ; ! sOptions += ",resizable=" + (bResizable ? "yes" : "no") ; ! sOptions += ",scrollbars=" + (bScrollbars ? "yes" : "no") ; ! sOptions += ",left=" + iLeft ; ! sOptions += ",top=" + iTop ; ! ! var oWindow = window.open(sURL, sName, sOptions) ! oWindow.focus(); ! ! return oWindow ; ! } ! ! function setImage(sImageURL) ! { ! if (image != null) ! { ! image = new Image() ; ! image.src = sImageURL ; ! } ! ! imageOriginal = new Image() ; ! imageOriginal.onload = resetSize ; ! imageOriginal.src = sImageURL ; ! ! document.getElementById('txtURL').value = sImageURL ; ! updatePreview() ; ! } ! </script> ! <style type="text/css"> ! .ImagePreviewArea ! { ! border-right: #000000 1px solid; ! padding-right: 5px; ! border-top: #000000 1px solid; ! padding-left: 5px; ! padding-bottom: 5px; ! overflow: auto; ! border-left: #000000 1px solid; ! width: 100%; ! padding-top: 5px; ! border-bottom: #000000 1px solid; ! height: 150px; ! background-color: #ffffff; ! } ! </style> ! </head> ! <body bottommargin="5" leftmargin="5" topmargin="5" rightmargin="5" onload="setDefaults()" scroll="no"> ! <table cellspacing="1" cellpadding="1" border="0" width="100%" class="dlg" height="100%"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" width="100%" border="0"> ! <tr> ! <td valign="top" colspan="2"> ! <span fckLang="DlgImgURL">URL</span><br> ! <input style="WIDTH: 100%" type="text" id="txtURL" onblur="updatePreview();"> ! </td> ! </tr> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" width="100%" border="0" style="DISPLAY: none" id="tableUpload"> ! <tr> ! <form id="frmUpload" enctype="multipart/form-data" method="post" target="UploadWindow"> ! <td><span fckLang="DlgImgUpload">Upload</span><br> ! <input style="WIDTH: 100%" type="file" name="FCKeditor_File" id="FCKeditor_File"> ! </td> ! </tr> ! <tr> ! <td align="right"> ! <input id="btnUpload" type="button" fckLang="DlgImgBtnUpload" value="Send it to the Server" ! onclick="uploadFile();"> ! </td> ! </form> ! </tr> ! </table> ! </td> ! <td valign="middle" width="100"> ! <input type="button" style="DISPLAY: none; WIDTH: 100%" fckLang="DlgImgBtnBrowse" value="Browse Server" ! onclick="browserServer();" id="btnBrowse"> ! </td> ! </tr> ! </table> ! <hr width="100%" color="#000000" size="2"> ! </td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgAlt">Alternative Text</span><BR> ! <input style="WIDTH: 100%" type="text" id="txtAlt" onkeyup="updatePreview();"> ! </td> ! </tr> ! <tr height="100%"> ! <td> ! <table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%"> ! <tr> ! <td valign="top"> ! <br> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td><span fckLang="DlgImgWidth">Width</span> </td> ! <td> ! <input type="text" size="3" id="txtWidth" onkeyup="sizeChanged('Width');"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgHeight">Height</span> </td> ! <td> ! <input type="text" size="3" id="txtHeight" onkeyup="sizeChanged('Height');"></td> ! </tr> ! </table> ! <input type="checkbox" class="CheckBox" checked id="chkLockRatio" onclick="onLockRationClick();"> ! <span fckLang="DlgImgLockRatio">Lock Ratio</span> ! <br> ! <input type="button" fckLang="DlgBtnResetSize" value="Reset Size" onclick="resetSize();"><br> ! <br> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td><span fckLang="DlgImgBorder">Border</span> </td> ! <td> ! <input type="text" size="2" value="0" id="txtBorder" onkeyup="updatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgHSpace">HSpace</span> </td> ! <td> ! <input type="text" size="2" id="txtHSpace" onkeyup="updatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgVSpace">VSpace</span> </td> ! <td> ! <input type="text" size="2" id="txtVSpace" onkeyup="updatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgAlign">Align</span> </td> ! <td><select id="cmbAlign" onchange="updatePreview();"> ! <option value="" selected></option> ! <option fckLang="DlgImgAlignLeft" value="left">Left</option> ! <option fckLang="DlgImgAlignAbsBottom" value="absBottom">Abs Bottom</option> ! <option fckLang="DlgImgAlignAbsMiddle" value="absMiddle">Abs Middle</option> ! <option fckLang="DlgImgAlignBaseline" value="baseline">Baseline</option> ! <option fckLang="DlgImgAlignBottom" value="bottom">Bottom</option> ! <option fckLang="DlgImgAlignMiddle" value="middle">Middle</option> ! <option fckLang="DlgImgAlignRight" value="right">Right</option> ! <option fckLang="DlgImgAlignTextTop" value="textTop">Text Top</option> ! <option fckLang="DlgImgAlignTop" value="top">Top</option> ! </select></td> ! </tr> ! </table> ! </td> ! <td> </td> ! <td width="100%"> ! <table cellpadding="0" cellspacing="0"> ! <tr> ! <td><span fckLang="DlgImgPreview">Preview</span></td> ! </tr> ! <tr> ! <td valign="top"> ! <div class="ImagePreviewArea"> ! <img id="imgPreview" style="DISPLAY: none">Magnus es, domine, et laudabilis ! valde: magna virtus tua, et sapientiae tuae non est numerus. et laudare te vult ! homo, aliqua portio creaturae tuae, et homo circumferens mortalitem suam, ! circumferens testimonium peccati sui et testimonium, quia superbis resistis: et ! tamen laudare te vult homo, aliqua portio creaturae tuae.tu excitas, ut laudare ! te delectet, quia fecisti nos ad te et inquietum est cor nostrum, donec ! requiescat in te. da mihi, domine, scire et intellegere, utrum sit prius ! invocare te an laudare te, et scire te prius sit an invocare te. sed quis te ! invocat nesciens te? aliud enim pro alio potest invocare nesciens. an potius ! invocaris, ut sciaris? quomodo autem invocabunt, in quem non crediderunt? aut ! quomodo credent sine praedicante? et laudabunt dominum qui requirunt eum. ! quaerentes enim inveniunt eum et invenientes laudabunt eum. quaeram te, domine, ! invocans te, et invocem te credens in te: praedicatus enim es nobis. invocat ! te, domine, fides mea, quam dedisti mihi, quam inspirasti mihi per humanitatem ! filii tui, per ministerium praedicatoris tui. ! </div> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <script type="text/javascript"> ! <!-- ! if (bCanUpload) ! { ! tableUpload.style.display = "block" ; ! frmUpload.action = sUploadURL ; ! } ! ! if (bCanBrowse) ! btnBrowse.style.display = "block" ; ! //--> ! </script> ! </body> ! </html> --- 10,204 ---- * * File Name: fck_image.html ! * Image Properties dialog window. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-19 00:24:56 * * File Authors: * Frederico Caldeira Knabben (fr...@fc...) ! --> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ! <html> ! <head> ! <title>Image Properties</title> ! <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ! <meta name="robots" content="noindex, nofollow"> ! <script src="js/fck_dialog_common.js" type="text/javascript"></script> ! <script src="js/fck_image.js" type="text/javascript"></script> ! <link href="css/common.css" rel="stylesheet" type="text/css" /> ! </head> ! <body scroll="no"> ! <div id="divInfo"> ! <table cellspacing="1" cellpadding="1" border="0" width="100%" height="100%"> ! <tr> ! <td> ! <table cellspacing="0" cellpadding="0" width="100%" border="0"> ! <tr> ! <td valign="top" width="100%"> ! <span fckLang="DlgImgURL">URL</span><br> ! <input id="txtURL" style="WIDTH: 100%" type="text" onblur="UpdatePreview();"> ! </td> ! <td id="tdBrowse" style="DISPLAY: none" nowrap> ! ! <input id="btnBrowse" onclick="BrowseServer();" type="button" ! value="Browse Server" fckLang="DlgImgBtnBrowse"> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr> ! <td> ! <span fckLang="DlgImgAlt">Short Description</span><br> ! <input id="txtAlt" style="WIDTH: 100%" type="text"><br> ! </td> ! </tr> ! <tr height="100%"> ! <td valign="top"> ! <table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%"> ! <tr> ! <td valign="top"> ! <br> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td><span fckLang="DlgImgWidth">Width</span> </td> ! <td> ! <input type="text" size="3" id="txtWidth" onkeyup="OnSizeChanged('Width',this.value);"></td> ! <td rowspan="2"> ! <div class="BtnLocked" onmouseover="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' ) + ' BtnOver';" onmouseout="this.className = (bLockRatio ? 'BtnLocked' : 'BtnUnlocked' );" ! title="Lock Sizes" onclick="SwitchLock(this);"></div> ! <div class="BtnReset" onmouseover="this.className='BtnReset BtnOver';" onmouseout="this.className='BtnReset';" ! title="Reset Size" onclick="ResetSizes();"></div> ! </td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgHeight">Height</span> </td> ! <td> ! <input type="text" size="3" id="txtHeight" onkeyup="OnSizeChanged('Height',this.value);"></td> ! </tr> ! </table> ! <br> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td><span fckLang="DlgImgBorder">Border</span> </td> ! <td> ! <input type="text" size="2" value="" id="txtBorder" onkeyup="UpdatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgHSpace">HSpace</span> </td> ! <td> ! <input type="text" size="2" id="txtHSpace" onkeyup="UpdatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgVSpace">VSpace</span> </td> ! <td> ! <input type="text" size="2" id="txtVSpace" onkeyup="UpdatePreview();"></td> ! </tr> ! <tr> ! <td><span fckLang="DlgImgAlign">Align</span> </td> ! <td><select id="cmbAlign" onchange="UpdatePreview();"> ! <option value="" selected></option> ! <option fckLang="DlgImgAlignLeft" value="left">Left</option> ! <option fckLang="DlgImgAlignAbsBottom" value="absBottom">Abs Bottom</option> ! <option fckLang="DlgImgAlignAbsMiddle" value="absMiddle">Abs Middle</option> ! <option fckLang="DlgImgAlignBaseline" value="baseline">Baseline</option> ! <option fckLang="DlgImgAlignBottom" value="bottom">Bottom</option> ! <option fckLang="DlgImgAlignMiddle" value="middle">Middle</option> ! <option fckLang="DlgImgAlignRight" value="right">Right</option> ! <option fckLang="DlgImgAlignTextTop" value="textTop">Text Top</option> ! <option fckLang="DlgImgAlignTop" value="top">Top</option> ! </select> ! </td> ! </tr> ! </table> ! </td> ! <td> </td> ! <td width="100%" valign="top"> ! <table cellpadding="0" cellspacing="0"> ! <tr> ! <td><span fckLang="DlgImgPreview">Preview</span></td> ! </tr> ! <tr> ! <td valign="top"> ! <div class="ImagePreviewArea"> ! <img id="imgPreview" style="DISPLAY: none">Magnus es, domine, et laudabilis ! valde: magna virtus tua, et sapientiae tuae non est numerus. et laudare te vult ! homo, aliqua portio creaturae tuae, et homo circumferens mortalitem suam, ! circumferens testimonium peccati sui et testimonium, quia superbis resistis: et ! tamen laudare te vult homo, aliqua portio creaturae tuae.tu excitas, ut laudare ! te delectet, quia fecisti nos ad te et inquietum est cor nostrum, donec ! requiescat in te. da mihi, domine, scire et intellegere, utrum sit prius ! invocare te an laudare te, et scire te prius sit an invocare te. sed quis te ! invocat nesciens te? aliud enim pro alio potest invocare nesciens. an potius ! invocaris, ut sciaris? quomodo autem invocabunt, in quem non crediderunt? aut ! quomodo credent sine praedicante? et laudabunt dominum qui requirunt eum. ! quaerentes enim inveniunt eum et invenientes laudabunt eum. quaeram te, domine, ! invocans te, et invocem te credens in te: praedicatus enim es nobis. invocat ! te, domine, fides mea, quam dedisti mihi, quam inspirasti mihi per humanitatem ! filii tui, per ministerium praedicatoris tui. ! </div> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </div> ! <div id="divAdvanced" style="DISPLAY: none"> ! <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> ! <tr> ! <td valign="top" width="50%"> ! Id<br> ! <input id="txtAttId" style="WIDTH: 100%" type="text"> ! </td> ! <td width="1"> </td> ! <td valign="top"> ! <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> ! <tr> ! <td width="60%"> ! Language Direction<br> ! <select id="cmbAttLangDir" style="WIDTH: 100%"> ! <option value="" selected><not set></option> ! <option value="ltr">Left to Right (LTR)</option> ! <option value="rtl">Right to Left (RTL)</option> ! </select> ! </td> ! <td width="1%"> </td> ! <td nowrap>Language Code<BR> ! <INPUT id="txtAttLangCode" style="WIDTH: 100%" type="text"> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <tr> ! <td colspan="3"> </td> ! </tr> ! <tr> ! <td colspan="3"> ! Long Description URL<br> ! <input id="txtLongDesc" style="WIDTH: 100%" type="text"> ! </td> ! </tr> ! <tr> ! <td colspan="3"> </td> ! </tr> ! <tr> ! <td valign="top"> ! Stylesheet Classes<br> ! <input id="txtAttClasses" style="WIDTH: 100%" type="text"> ! </td> ! <td></td> ! <td valign="top"> Advisory Title<BR> ! <INPUT id="txtAttTitle" style="WIDTH: 100%" type="text"> ! </td> ! </tr> ! </table> ! Style<br> ! <input id="txtAttStyle" style="WIDTH: 100%" type="text"> ! </div> ! </body> ! </html> Index: fck_link.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_link.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_link.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_link.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,17 **** * Link dialog window. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:51 * * File Authors: --- 12,17 ---- * Link dialog window. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-02 00:26:17 * * File Authors: *************** *** 27,31 **** <script src="js/fck_link.js" type="text/javascript"></script> </head> ! <body onload="OnLoad();" scroll="no"> <div id="divInfo" style="DISPLAY: none">Link Type<br /> <select id="cmbLinkType" onchange="SetLinkType(this.value);"> --- 27,31 ---- <script src="js/fck_link.js" type="text/javascript"></script> </head> ! <body scroll="no"> <div id="divInfo" style="DISPLAY: none">Link Type<br /> <select id="cmbLinkType" onchange="SetLinkType(this.value);"> *************** *** 55,59 **** --- 55,61 ---- </table> <br /> + <div id="divBrowseServer"> <input type="button" value="Browse Server" onclick="BrowseServer();" /> + </div> </div> <div id="divLinkTypeAnchor" style="DISPLAY: none" align="center"> Index: fck_smiley.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_smiley.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_smiley.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_smiley.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,17 **** * Smileys (emoticons) dialog window. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:51 * * File Authors: --- 12,17 ---- * Smileys (emoticons) dialog window. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-20 01:19:47 * * File Authors: *************** *** 34,37 **** --- 34,43 ---- document.write( '<link href="' + dialogArguments.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; + function setDefaults() + { + // First of all, translate the dialog box texts + dialogArguments.FCKLanguageManager.TranslatePage(document) ; + } + function insertChar(td) { *************** *** 49,59 **** td.className = 'DarkBackground HandIE HandMozilla' ; } - - function setDefaults() - { - // First of all, translate the dialog box texts - dialogArguments.FCKLanguageManager.TranslatePage(document) ; - } - </script> </head> --- 55,58 ---- Index: fck_specialchar.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_specialchar.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_specialchar.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_specialchar.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * Special Chars Selector dialog window. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:51 * --- 12,16 ---- * Special Chars Selector dialog window. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:51 * Index: fck_table.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/dialog/fck_table.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_table.html 28 Oct 2004 20:17:43 -0000 1.1 --- fck_table.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,17 **** * Table dialog window. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:51 * * File Authors: --- 12,17 ---- * Table dialog window. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-09-03 09:52:12 * * File Authors: *************** *** 22,26 **** <head> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> - <!-- Constants --> <script type="text/javascript"> <!-- --- 22,25 ---- |
From: Joe S. <joe...@us...> - 2004-10-30 13:54:00
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default Modified Files: Browser.css browser.html frmactualfolder.html frmcreatefolder.html frmfolders.html frmresourceslist.html frmresourcetype.html frmupload.html Log Message: complete fckeditor addition Index: Browser.css =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/Browser.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Browser.css 28 Oct 2004 20:17:44 -0000 1.1 --- Browser.css 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * CSS styles used by all pages that compose the File Browser. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:52 * --- 12,16 ---- * CSS styles used by all pages that compose the File Browser. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * Index: browser.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/browser.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** browser.html 28 Oct 2004 20:17:44 -0000 1.1 --- browser.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * This page compose the File Browser dialog frameset. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:52 * --- 12,16 ---- * This page compose the File Browser dialog frameset. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * Index: frmactualfolder.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmactualfolder.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmactualfolder.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmactualfolder.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * This page shows the actual folder path. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:52 * --- 12,16 ---- * This page shows the actual folder path. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * Index: frmcreatefolder.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmcreatefolder.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmcreatefolder.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * Page used to create new folders in the current folder. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:52 * --- 12,16 ---- * Page used to create new folders in the current folder. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * Index: frmfolders.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmfolders.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmfolders.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmfolders.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 13,18 **** * of the current folder. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:52 * * File Authors: --- 13,18 ---- * of the current folder. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-19 01:03:21 * * File Authors: *************** *** 178,182 **** { oListManager.Init() ; ! SetResourceType( 'File' ) ; } </script> --- 178,186 ---- { oListManager.Init() ; ! ! if ( oConnector.ResourceType.length = 0 ) ! SetResourceType( 'File' ) ; ! else ! LoadFolders( '/' ) ; } </script> Index: frmresourceslist.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmresourceslist.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmresourceslist.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,17 **** * This page shows all resources available in a folder in the File Browser. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:52 * * File Authors: --- 12,17 ---- * This page shows all resources available in a folder in the File Browser. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-19 01:01:50 * * File Authors: Index: frmresourcetype.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmresourcetype.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmresourcetype.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmresourcetype.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,17 **** * This page shows the list of available resource types. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:53 * * File Authors: --- 12,17 ---- * This page shows the list of available resource types. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-19 00:57:24 * * File Authors: *************** *** 24,27 **** --- 24,28 ---- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <link href="Browser.css" type="text/css" rel="stylesheet"> + <script type="text/javascript" src="js/common.js"></script> <script language="javascript"> *************** *** 31,34 **** --- 32,53 ---- } + var aTypes = [ + ['File','File'], + ['Image','Image'], + ['Flash','Flash'], + ['Media','Media'] + ] ; + + window.onload = function() + { + var bHasType = ( oConnector.ResourceType.length > 0 ) ; + + for ( var i = 0 ; i < aTypes.length ; i++ ) + { + if ( !bHasType || aTypes[i][0] == oConnector.ResourceType ) + AddSelectOption( cmbType, aTypes[i][1], aTypes[i][0] ) ; + } + } + </script> </head> *************** *** 38,46 **** <td nowrap> Resource Type<BR> ! <select style="WIDTH: 100%" onchange="SetResourceType(this.value);"> ! <option value="File" selected>File</option> ! <option value="Image">Image</option> ! <option value="Flash">Flash</option> ! <option value="Media">Media</option> </select> </td> --- 57,61 ---- <td nowrap> Resource Type<BR> ! <select id="cmbType" style="WIDTH: 100%" onchange="SetResourceType(this.value);"> </select> </td> Index: frmupload.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/frmupload.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** frmupload.html 28 Oct 2004 20:17:44 -0000 1.1 --- frmupload.html 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 12,16 **** * Page used to upload new files in the current folder. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:53 * --- 12,16 ---- * Page used to upload new files in the current folder. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:53 * |
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/js Modified Files: fck_startup.js fckeditorcode_gecko_1.js fckeditorcode_gecko_2.js fckeditorcode_ie_1.js fckeditorcode_ie_2.js Log Message: complete fckeditor addition Index: fck_startup.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fck_startup.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_startup.js 29 Oct 2004 17:20:16 -0000 1.1 --- fck_startup.js 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 11,16 **** * This file has been compacted for best loading performance. * ! * Version: 2.0 Beta 1 ! * Created: 2004-06-01 00:25:31 */ ! var FCKBrowserInfo=new Object();var sAgent=navigator.userAgent.toLowerCase();FCKBrowserInfo.IsIE=sAgent.indexOf("msie") != -1;FCKBrowserInfo.IsGecko=! FCKBrowserInfo.IsIE;if (FCKBrowserInfo.IsIE){FCKBrowserInfo.MajorVer=navigator.appVersion.match(/MSIE (.)/)[1];FCKBrowserInfo.MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1];}else{FCKBrowserInfo.MajorVer=0;FCKBrowserInfo.MinorVer=0;};FCKBrowserInfo.IsIE55OrMore=FCKBrowserInfo.IsIE && (FCKBrowserInfo.MajorVer > 5 || FCKBrowserInfo.MinorVer >=5);var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(scriptPath){FCKScriptLoader.Queue[ FCKScriptLoader.Queue.length ]=scriptPath;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length > 0){this.IsLoading=true;var sScriptPath=this.Queue[0];var oTempArray=new Array();for (i=1 ; i < this.Queue.length ; i++) oTempArray[ i - 1 ]=this.Queue[ i ];this.Queue=oTempArray;var e;if (sScriptPath.lastIndexOf( '.css' ) > 0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild( e);var oEvent=function(){if (this.tagName=='LINK' || !this.readyState || this.readyState == 'loaded') FCKScriptLoader.CheckQueue();};if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=oEvent;else FCKScriptLoader.CheckQueue();e.href=sScriptPath;}else{e.onload=e.onreadystatechange=oEvent;e.src=sScriptPath;};}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};};var FCKConfig=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi, '/');FCKConfig.BasePath='file://' + FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.LoadHiddenField=function(){var oConfigField=window.parent.document.getElementById(FCK.Name + '___Config');if (! oConfigField) return;var aCouples=oConfigField.value.split('&');for (var i=0 ; i < aCouples.length ; i++){var aConfig=aCouples[i].split('=');var sConfigName=aConfig[0];var sConfigValue=aConfig[1];if (sConfigValue=="true") FCKConfig[sConfigName]=true;else if (sConfigValue=="false") FCKConfig[sConfigName]=false;else if (! isNaN(sConfigValue)) FCKConfig[sConfigName]=parseInt(sConfigValue);else FCKConfig[sConfigName]=sConfigValue;};};window.document.oncontextmenu=function(e){if (e) e.preventDefault();return false;};if (! FCKBrowserInfo.IsIE){window.onresize=function(){var oFrame=document.getElementById("eEditorArea");oFrame.height=0;var oCell=document.getElementById("eWysiwygCell");var iHeight=oCell.offsetHeight;oFrame.height=iHeight - 2;};};window.onload=function(){FCKScriptLoader.OnEmpty=function(){FCKConfig.LoadHiddenField();LoadStyles();};FCKScriptLoader.AddScript('../fckconfig.js');};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=function(){this.OnEmpty=null;window.document.dir=FCKLang.Dir;FCK.StartEditor();};if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (i=0 ; i < aParams.length ; i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[ sParamName ]=sParamValue;};FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1;var FCK=new Object();FCK.Name=FCKURLParams[ 'InstanceName' ];FCK.LinkedField=window.parent.document.getElementById(FCK.Name);FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.PasteEnabled=false;var FCKeditorAPI;if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.0 Beta 1';FCKeditorAPI.GetInstance=function(instanceName){return this.__Instances[ instanceName ];};}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[ FCK.Name ]=FCK; \ No newline at end of file --- 11,23 ---- * This file has been compacted for best loading performance. * ! * Version: 2.0 Beta 2 ! * Created: 2004-09-10 02:40:05 */ ! var FCKBrowserInfo=new Object();var sAgent=navigator.userAgent.toLowerCase();FCKBrowserInfo.IsIE=sAgent.indexOf("msie") != -1;FCKBrowserInfo.IsGecko=! FCKBrowserInfo.IsIE;if (FCKBrowserInfo.IsIE){FCKBrowserInfo.MajorVer=navigator.appVersion.match(/MSIE (.)/)[1];FCKBrowserInfo.MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1];}else{FCKBrowserInfo.MajorVer=0;FCKBrowserInfo.MinorVer=0;};FCKBrowserInfo.IsIE55OrMore=FCKBrowserInfo.IsIE && (FCKBrowserInfo.MajorVer > 5 || FCKBrowserInfo.MinorVer >=5); ! var FCKScriptLoader=new Object();FCKScriptLoader.IsLoading=false;FCKScriptLoader.Queue=new Array();FCKScriptLoader.AddScript=function(scriptPath){FCKScriptLoader.Queue[ FCKScriptLoader.Queue.length ]=scriptPath;if (!this.IsLoading) this.CheckQueue();};FCKScriptLoader.CheckQueue=function(){if (this.Queue.length > 0){this.IsLoading=true;var sScriptPath=this.Queue[0];var oTempArray=new Array();for (i=1 ; i < this.Queue.length ; i++) oTempArray[ i - 1 ]=this.Queue[ i ];this.Queue=oTempArray;var e;if (sScriptPath.lastIndexOf( '.css' ) > 0){e=document.createElement('LINK');e.rel='stylesheet';e.type='text/css';}else{e=document.createElement("script");e.type="text/javascript";};document.getElementsByTagName("head")[0].appendChild( e);var oEvent=function(){if (this.tagName=='LINK' || !this.readyState || this.readyState == 'loaded') FCKScriptLoader.CheckQueue();};if (e.tagName=='LINK'){if (FCKBrowserInfo.IsIE) e.onload=oEvent;else FCKScriptLoader.CheckQueue();e.href=sScriptPath;}else{e.onload=e.onreadystatechange=oEvent;e.src=sScriptPath;};}else{this.IsLoading=false;if (this.OnEmpty) this.OnEmpty();};} ! var FCKConfig=new Object();if (document.location.protocol=='file:'){FCKConfig.BasePath=document.location.pathname.substr(1);FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi, '/');FCKConfig.BasePath='file://' + FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);}else FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.LoadHiddenField=function(){var oConfigField=window.parent.document.getElementById(FCK.Name + '___Config');if (! oConfigField) return;var aCouples=oConfigField.value.split('&');for (var i=0 ; i < aCouples.length ; i++){var aConfig=aCouples[i].split('=');var sConfigName=aConfig[0];var sConfigValue=aConfig[1];if (sConfigValue=="true") FCKConfig[sConfigName]=true;else if (sConfigValue=="false") FCKConfig[sConfigName]=false;else if (! isNaN(sConfigValue)) FCKConfig[sConfigName]=parseInt(sConfigValue);else FCKConfig[sConfigName]=sConfigValue;};} ! window.document.oncontextmenu=function(e){if (e) e.preventDefault();return false;};if (! FCKBrowserInfo.IsIE){window.onresize=function(){var oFrame=document.getElementById("eEditorArea");oFrame.height=0;var oCell=document.getElementById("eWysiwygCell");var iHeight=oCell.offsetHeight;oFrame.height=iHeight - 2;};};window.onload=function(){FCKScriptLoader.OnEmpty=function(){FCKConfig.LoadHiddenField();LoadStyles();};FCKScriptLoader.AddScript('../fckconfig.js');};function LoadStyles(){FCKScriptLoader.OnEmpty=LoadScripts;FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_editor.css');FCKScriptLoader.AddScript(FCKConfig.SkinPath + 'fck_contextmenu.css');};function LoadScripts(){FCKScriptLoader.OnEmpty=null;if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_1.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_1.js');};function LoadLanguageFile(){FCKScriptLoader.OnEmpty=function(){this.OnEmpty=null;window.document.dir=FCKLang.Dir;FCK.StartEditor();};FCKScriptLoader.AddScript('lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js');} ! var FCKURLParams=new Object();var aParams=document.location.search.substr(1).split('&');for (i=0 ; i < aParams.length ; i++){var aParam=aParams[i].split('=');var sParamName=aParam[0];var sParamValue=aParam[1];FCKURLParams[ sParamName ]=sParamValue;} ! FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-1000;FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYTEXT=0;FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=2;FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1; ! var FCK=new Object();FCK.Name=FCKURLParams[ 'InstanceName' ];FCK.LinkedField=window.parent.document.getElementById(FCK.Name);FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.PasteEnabled=false; ! var FCKeditorAPI;if (!window.parent.FCKeditorAPI){FCKeditorAPI=window.parent.FCKeditorAPI=new Object();FCKeditorAPI.__Instances=new Object();FCKeditorAPI.Version='2.0 Beta 2';FCKeditorAPI.GetInstance=function(instanceName){return this.__Instances[ instanceName ];};}else FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI.__Instances[ FCK.Name ]=FCK; Index: fckeditorcode_gecko_1.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fckeditorcode_gecko_1.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckeditorcode_gecko_1.js 29 Oct 2004 17:20:16 -0000 1.1 --- fckeditorcode_gecko_1.js 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 11,16 **** * This file has been compacted for best loading performance. * ! * Version: 2.0 Beta 1 ! * Created: 2004-06-01 00:25:31 */ ! var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message, color){if (! FCKConfig.Debug) return;if (message !=null && isNaN( message )){message=message.replace(/</g, "<");};if (!this.DebugWindow || this.DebugWindow.closed){this.DebugWindow=window.open('fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500', true);};if (this.DebugWindow.Output){this.DebugWindow.Output(message, color);};};}else{FCKDebug.Output=function() {};};var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit", functionPointer);else oForm.addEventListener('submit', functionPointer, true);if (! oForm.updateFCKEditor) oForm.updateFCKEditor=new Array();oForm.updateFCKEditor[oForm.updateFCKEditor.length]=functionPointer;if (! oForm.originalSubmit){oForm.originalSubmit=oForm.submit;oForm.submit=function(){if (this.updateFCKEditor){for (var i=0 ; i < this.updateFCKEditor.length ; i++) this.updateFCKEditor[i]();};this.originalSubmit();};};};FCKTools.AddSelectOption=function(targetDocument, selectElement, optionText, optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length - 1 ; i >=0 ; i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement, value, defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0 ; i < selectElement.options.length ; i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue !=null ) FCKTools.SelectNoCase( selectElement, defaultValue);};FCKTools.HTMLEncode=function(text){text=text.replace(/&/g, "&");text=text.replace(/"/g, """);text=text.replace(/</g, "<");text=text.replace(/>/g, ">");text=text.replace(/'/g, "’");return text;};FCKTools.GetResultingArray=function(arraySource, separator){switch (typeof( arraySource )){case "string" : return arraySource.split(separator);case "function" : return separator();default : if (isArray( arraySource )) return arraySource;else return new Array();};};FCKTools.AppendStyleSheet=function(documentElement, cssFileUrl){var e=documentElement.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=cssFileUrl;documentElement.getElementsByTagName("HEAD").item(0).appendChild( e);};FCKTools.ClearElementAttributes=function(element){for (var i=0 ; i < element.attributes.length ; i++){element.removeAttribute(element.attributes[i].name, 0);};};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();var fGetIds=function(parent){for (var i=0 ; i < parent.childNodes.length ; i++){var sId=parent.childNodes[i].id;if (sId && sId.length > 0) aIds[ aIds.length ]=sId;fGetIds(parent.childNodes[i]);};};fGetIds(parentElement);return aIds;};var FCKLanguageManager=new Object();FCKLanguageManager.AvailableLanguages={'ar' : 'Arabic', 'en' : 'English', 'it' : 'Italian'};FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang=navigator.language ? navigator.language.toLowerCase() : navigator.userLanguage.toLowerCase();FCKDebug.Output('Navigator Language = ' + sUserLang);if (sUserLang.length >=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length >=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return FCKConfig.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument, tag, propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0 ; i < aInputs.length ; i++){if (aInputs[i].attributes['fckLang']){var s=FCKLang[ aInputs[i].attributes["fckLang"].value ];eval('aInputs[i].' + propertyToSet + ' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument, 'INPUT', 'value');this.TranslateElements(targetDocument, 'SPAN', 'innerHTML');this.TranslateElements(targetDocument, 'OPTION', 'innerHTML');};FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[ FCKLanguageManager.ActiveLanguage.Code ];FCK.Language=FCKLanguageManager;FCKScriptLoader.AddScript('lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js');var FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName, functionPointer, params){if (! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ]=new Array();this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName, params){var bReturnValue=true;FCKDebug.Output('Firing event: ' + eventName, 'Fuchsia');var oCalls=this.RegisteredEvents[ eventName ];if (oCalls){for (i in oCalls){if (typeof( oCalls[ i ] )=="function"){bReturnValue=(bReturnValue && oCalls[ i ]( params ));}else{bReturnValue=(bReturnValue && eval( oCalls[ i ] ));};};};return bReturnValue;};var FCKXHtml=new Object();FCKXHtml.GetXHTML=function(node){if (window.ActiveXObject) this.XML=new ActiveXObject('Msxml2.DOMDocument');else{this.XML=document.implementation.createDocument('', '', null);Node.prototype.__defineGetter__('xml', FCKXHtml._Node_getXML);};this.MainNode=this.XML.appendChild(this.XML.createElement( 'XHTML' ));this._AppendChildNodes(this.MainNode, node);var sXHTML=this.MainNode.xml;return sXHTML.substr(7, sXHTML.length - 15);};FCKXHtml._Node_getXML=function(){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(this);};FCKXHtml._AppendAttribute=function(xmlNode, attributeName, attributeValue){var oXmlAtt=this.XML.createAttribute(attributeName);if (typeof( attributeValue )=='boolean' && attributeValue == true) oXmlAtt.value=attributeName;else oXmlAtt.value=attributeValue;xmlNode.attributes.setNamedItem(oXmlAtt);};FCKXHtml._AppendChildNodes=function(xmlNode, htmlNode){var oChildren=htmlNode.childNodes;var i=0;while (i < oChildren.length){i +=this._AppendNode(xmlNode, oChildren[i]);};};FCKXHtml._AppendNode=function(xmlNode, htmlNode){var iAddedNodes=1;switch (htmlNode.nodeType){case 1 : var sNodeName=htmlNode.nodeName.toLowerCase();var oNode=xmlNode.appendChild(this.XML.createElement( sNodeName ));var oAttributes=htmlNode.attributes;for (var n=0 ; n < oAttributes.length ; n++){var oAttribute=oAttributes[n];if (oAttribute.specified) this._AppendAttribute(oNode, oAttribute.nodeName.toLowerCase(), oAttribute.nodeValue);};switch (sNodeName){case "script" : case "style" : oNode.appendChild(this.XML.createCDATASection( htmlNode.text ));break;case "abbr" : if (document.all){var oNextNode=htmlNode.nextSibling;while (true){iAddedNodes++;if (oNextNode && oNextNode.nodeName !='/ABBR'){this._AppendNode(oNode, oNextNode);oNextNode=oNextNode.nextSibling;}else break;};break;};case "area" : if (document.all && ! oNode.attributes.getNamedItem( 'coords' )){var sCoords=htmlNode.getAttribute('coords', 2);if (sCoords && sCoords !='0,0,0') this._AppendAttribute(oNode, 'coords', sCoords);};case "img" : if (! oNode.attributes.getNamedItem( 'alt' )) this._AppendAttribute(oNode, 'alt', '');default : this._AppendChildNodes(oNode, htmlNode);break;};break;case 3 : xmlNode.appendChild(this.XML.createTextNode( htmlNode.nodeValue ));break;default : xmlNode.appendChild(this.XML.createComment( "Element not supported - Type: " + htmlNode.nodeType + " Name: " + htmlNode.nodeName ));break;};return iAddedNodes;};FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckedito rcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange', newStatus);if (this.OnStatusChange ) this.OnStatusChange( newStatus);};FCK.SetHTML=function(html, forceWYSIWYG){if (forceWYSIWYG || FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="off";this.EditorDocument.body.innerHTML=html;if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="on";}else document.getElementById('eSourceField').value = html;};FCK.GetHTML=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) return this.EditorDocument.body.innerHTML;else return document.getElementById('eSourceField').value;};FCK.GetXHTML=function(){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body);if (bSource) this.SwitchEditMode();return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML());else FCKTools.SetLinkedFieldValue(FCK.GetHTML());};FCK.Focus=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) FCK.EditorDocument.body.focus();else document.getElementById('eSource').focus();};FCK.ShowContextMenu=function(x, y){if (this.Status !=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x, y);this.Events.FireEvent("OnContextMenu");};FCK.Description="FCKeditor for Gecko Browsers";FCK.StartEditor=function(){this.EditorWindow=window.frames[ 'eEditorArea' ];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);var oOnContextMenu=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX, e.clientY);};this.EditorDocument.addEventListener('contextmenu', oOnContextMenu, true);var oOnKeyDown=function(e){if (e.ctrlKey && !e.shiftKey && !e.altKey){if (e.which==86 || e.which==118){if (FCK.Status==FCK_STATUS_COMPLETE){if (!FCK.Events.FireEvent( "OnPaste" )) e.preventDefault();}else e.preventDefault();};};};this.EditorDocument.addEventListener('keydown', oOnKeyDown, true);var oOnSelectionChange=function(e){FCK.Events.FireEvent("OnSelectionChange");};this.EditorDocument.addEventListener('mouseup', oOnSelectionChange, false);this.EditorDocument.addEventListener('keyup', oOnSelectionChange, false);this.EditorDocument.designMode="on";this.SetStatus(FCK_STATUS_ACTIVE);}; \ No newline at end of file --- 11,23 ---- * This file has been compacted for best loading performance. * ! * Version: 2.0 Beta 2 ! * Created: 2004-09-10 02:40:05 */ ! var FCKDebug=new Object();if (FCKConfig.Debug){FCKDebug.Output=function(message, color){if (! FCKConfig.Debug) return;if (message !=null && isNaN( message )){message=message.replace(/</g, "<");};if (!this.DebugWindow || this.DebugWindow.closed){this.DebugWindow=window.open('fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500', true);};if (this.DebugWindow.Output){this.DebugWindow.Output(message, color);};};}else{FCKDebug.Output=function() {};}; ! var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return FCK.LinkedField.value;};FCKTools.SetLinkedFieldValue=function(value){FCK.LinkedField.value=value;};FCKTools.AttachToLinkedFieldFormSubmit=function(functionPointer){var oForm=FCK.LinkedField.form;if (!oForm) return;if (FCKBrowserInfo.IsIE) oForm.attachEvent("onsubmit", functionPointer);else oForm.addEventListener('submit', functionPointer, true);if (! oForm.updateFCKEditor) oForm.updateFCKEditor=new Array();oForm.updateFCKEditor[oForm.updateFCKEditor.length]=functionPointer;if (! oForm.originalSubmit){oForm.originalSubmit=oForm.submit;oForm.submit=function(){if (this.updateFCKEditor){for (var i=0 ; i < this.updateFCKEditor.length ; i++) this.updateFCKEditor[i]();};this.originalSubmit();};};};FCKTools.AddSelectOption=function(targetDocument, selectElement, optionText, optionValue){var oOption=targetDocument.createElement("OPTION");oOption.text=optionText;oOption.value=optionValue;selectElement.options.add(oOption);return oOption;};FCKTools.RemoveAllSelectOptions=function(selectElement){for (var i=selectElement.options.length - 1 ; i >=0 ; i--){selectElement.options.remove(i);};};FCKTools.SelectNoCase=function(selectElement, value, defaultValue){var sNoCaseValue=value.toString().toLowerCase();for (var i=0 ; i < selectElement.options.length ; i++){if (sNoCaseValue==selectElement.options[i].value.toLowerCase()){selectElement.selectedIndex=i;return;};};if (defaultValue !=null ) FCKTools.SelectNoCase( selectElement, defaultValue);};FCKTools.HTMLEncode=function(text){text=text.replace(/&/g, "&");text=text.replace(/"/g, """);text=text.replace(/</g, "<");text=text.replace(/>/g, ">");text=text.replace(/'/g, "’");return text;};FCKTools.GetResultingArray=function(arraySource, separator){switch (typeof( arraySource )){case "string" : return arraySource.split(separator);case "function" : return separator();default : if (isArray( arraySource )) return arraySource;else return new Array();};};FCKTools.GetElementPosition=function(el){var c={ X:0, Y:0 };while (el){c.X +=el.offsetLeft;c.Y +=el.offsetTop;el=el.offsetParent;};return c;};FCKTools.GetElementAscensor=function(element, ascensorTagName){var e=element.parentNode;while (e){if (e.nodeName==ascensorTagName) return e;e=e.parentNode;};}; ! FCKTools.AppendStyleSheet=function(documentElement, cssFileUrl){var e=documentElement.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=cssFileUrl;documentElement.getElementsByTagName("HEAD").item(0).appendChild( e);};FCKTools.ClearElementAttributes=function(element){for (var i=0 ; i < element.attributes.length ; i++){element.removeAttribute(element.attributes[i].name, 0);};};FCKTools.GetAllChildrenIds=function(parentElement){var aIds=new Array();var fGetIds=function(parent){for (var i=0 ; i < parent.childNodes.length ; i++){var sId=parent.childNodes[i].id;if (sId && sId.length > 0) aIds[ aIds.length ]=sId;fGetIds(parent.childNodes[i]);};};fGetIds(parentElement);return aIds;} ! var FCKLanguageManager=new Object();FCKLanguageManager.AvailableLanguages={'ar' : 'Arabic', 'en' : 'English', 'it' : 'Italian'};FCKLanguageManager.GetActiveLanguage=function(){if (FCKConfig.AutoDetectLanguage){var sUserLang=navigator.language ? navigator.language.toLowerCase() : navigator.userLanguage.toLowerCase();FCKDebug.Output('Navigator Language = ' + sUserLang);if (sUserLang.length >=5){sUserLang=sUserLang.substr(0,5);if (this.AvailableLanguages[sUserLang]) return sUserLang;};if (sUserLang.length >=2){sUserLang=sUserLang.substr(0,2);if (this.AvailableLanguages[sUserLang]) return sUserLang;};};return FCKConfig.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(targetDocument, tag, propertyToSet){var aInputs=targetDocument.getElementsByTagName(tag);for (var i=0 ; i < aInputs.length ; i++){if (aInputs[i].attributes['fckLang']){var s=FCKLang[ aInputs[i].attributes["fckLang"].value ];eval('aInputs[i].' + propertyToSet + ' = s');};};};FCKLanguageManager.TranslatePage=function(targetDocument){this.TranslateElements(targetDocument, 'INPUT', 'value');this.TranslateElements(targetDocument, 'SPAN', 'innerHTML');this.TranslateElements(targetDocument, 'OPTION', 'innerHTML');};FCKLanguageManager.ActiveLanguage=new Object();FCKLanguageManager.ActiveLanguage.Code=FCKLanguageManager.GetActiveLanguage();FCKLanguageManager.ActiveLanguage.Name=FCKLanguageManager.AvailableLanguages[ FCKLanguageManager.ActiveLanguage.Code ];FCK.Language=FCKLanguageManager;LoadLanguageFile(); ! var FCKEvents=function(eventsOwner){this.Owner=eventsOwner;this.RegisteredEvents=new Object();};FCKEvents.prototype.AttachEvent=function(eventName, functionPointer, params){if (! this.RegisteredEvents[ eventName ] ) this.RegisteredEvents[ eventName ]=new Array();this.RegisteredEvents[ eventName ][ this.RegisteredEvents[ eventName ].length ]=functionPointer;};FCKEvents.prototype.FireEvent=function(eventName, params){var bReturnValue=true;FCKDebug.Output('Firing event: ' + eventName, 'Fuchsia');var oCalls=this.RegisteredEvents[ eventName ];if (oCalls){for (i in oCalls){if (typeof( oCalls[ i ] )=="function"){bReturnValue=(bReturnValue && oCalls[ i ]( params ));}else{bReturnValue=(bReturnValue && eval( oCalls[ i ] ));};};};return bReturnValue;}; ! var FCKXHtml=new Object();FCKXHtml.GetXHTML=function(node){if (window.ActiveXObject) this.XML=new ActiveXObject('Msxml2.DOMDocument');else this.XML=document.implementation.createDocument('', '', null);this.MainNode=this.XML.appendChild(this.XML.createElement( 'XHTML' ));this._AppendChildNodes(this.MainNode, node);var sXHTML=document.all ? this.MainNode.xml : FCKXHtml._GetGeckoNodeXml(this.MainNode);return sXHTML.substr(7, sXHTML.length - 15);};FCKXHtml._GetGeckoNodeXml=function(node){var oSerializer=new XMLSerializer();return oSerializer.serializeToString(node);};FCKXHtml._AppendAttribute=function(xmlNode, attributeName, attributeValue){if (attributeName=='_moz_dirty') return;var oXmlAtt=this.XML.createAttribute(attributeName);if (typeof( attributeValue )=='boolean' && attributeValue == true) oXmlAtt.value=attributeName;else oXmlAtt.value=attributeValue;xmlNode.attributes.setNamedItem(oXmlAtt);};FCKXHtml._AppendChildNodes=function(xmlNode, htmlNode){var oChildren=htmlNode.childNodes;var i=0;while (i < oChildren.length){i +=this._AppendNode(xmlNode, oChildren[i]);};};FCKXHtml._AppendNode=function(xmlNode, htmlNode){var iAddedNodes=1;switch (htmlNode.nodeType){case 1 : var sNodeName=htmlNode.nodeName.toLowerCase();var oNode=xmlNode.appendChild(this.XML.createElement( sNodeName ));var oAttributes=htmlNode.attributes;for (var n=0 ; n < oAttributes.length ; n++){var oAttribute=oAttributes[n];if (oAttribute.specified){var sAttName=oAttribute.nodeName.toLowerCase();var sAttValue=oAttribute.nodeValue;if (sAttName=='style' && document.all) sAttValue=htmlNode.style.cssText;this._AppendAttribute(oNode, sAttName, sAttValue);};};switch (sNodeName){case "script" : case "style" : oNode.appendChild(this.XML.createCDATASection( htmlNode.text ));break;case "abbr" : if (document.all){var oNextNode=htmlNode.nextSibling;while (true){iAddedNodes++;if (oNextNode && oNextNode.nodeName !='/ABBR'){this._AppendNode(oNode, oNextNode);oNextNode=oNextNode.nextSibling;}else break;};break;};case "area" : if (document.all && ! oNode.attributes.getNamedItem( 'coords' )){var sCoords=htmlNode.getAttribute('coords', 2);if (sCoords && sCoords !='0,0,0') this._AppendAttribute(oNode, 'coords', sCoords);};case "img" : if (! oNode.attributes.getNamedItem( 'alt' )) this._AppendAttribute(oNode, 'alt', '');default : this._AppendChildNodes(oNode, htmlNode);break;};break;case 3 : xmlNode.appendChild(this.XML.createTextNode( htmlNode.nodeValue ));break;default : xmlNode.appendChild(this.XML.createComment( "Element not supported - Type: " + htmlNode.nodeType + " Name: " + htmlNode.nodeName ));break;};return iAddedNodes;}; ! FCK.Events=new FCKEvents(FCK);FCK.Toolbar=null;FCK.SetStatus=function(newStatus){this.Status=newStatus;if (newStatus==FCK_STATUS_ACTIVE){if (FCKConfig.StartupFocus) FCK.Focus();if (FCKBrowserInfo.IsIE) FCKScriptLoader.AddScript('js/fckeditorcode_ie_2.js');else FCKScriptLoader.AddScript('js/fckeditorcode_gecko_2.js');};this.Events.FireEvent('OnStatusChange', newStatus);if (this.OnStatusChange ) this.OnStatusChange( newStatus);};FCK.SetHTML=function(html, forceWYSIWYG){if (forceWYSIWYG || FCK.EditMode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsGecko) FCK.EditorDocument.designMode="off";this.EditorDocument.body.innerHTML=html;if (FCKBrowserInfo.IsGecko){FCK.EditorDocument.designMode="on";FCK.EditorDocument.execCommand("useCSS", false, !FCKConfig.GeckoUseSPAN);};}else document.getElementById('eSourceField').value = html;};FCK.GetHTML=function(){if (FCK.EditMode==FCK_EDITMODE_WYSIWYG) return this.EditorDocument.body.innerHTML;else return document.getElementById('eSourceField').value;};FCK.GetXHTML=function(){var bSource=(FCK.EditMode==FCK_EDITMODE_SOURCE);if (bSource) this.SwitchEditMode();var sXHTML=FCKXHtml.GetXHTML(this.EditorDocument.body);if (bSource) this.SwitchEditMode();return sXHTML;};FCK.UpdateLinkedField=function(){if (FCKConfig.EnableXHTML) FCKTools.SetLinkedFieldValue(FCK.GetXHTML());else FCKTools.SetLinkedFieldValue(FCK.GetHTML());};FCK.ShowContextMenu=function(x, y){if (this.Status !=FCK_STATUS_COMPLETE) return;FCKContextMenu.Show(x, y);this.Events.FireEvent("OnContextMenu");}; ! FCK.Description="FCKeditor for Gecko Browsers";FCK.StartEditor=function(){this.EditorWindow=window.frames[ 'eEditorArea' ];this.EditorDocument=this.EditorWindow.document;this.SetHTML(FCKTools.GetLinkedFieldValue());FCKTools.AttachToLinkedFieldFormSubmit(this.UpdateLinkedField);var oOnContextMenu=function(e){e.preventDefault();FCK.ShowContextMenu(e.clientX, e.clientY);};this.EditorDocument.addEventListener('contextmenu', oOnContextMenu, true);var oOnKeyDown=function(e){if (e.ctrlKey && !e.shiftKey && !e.altKey){if (e.which==86 || e.which==118){if (FCK.Status==FCK_STATUS_COMPLETE){if (!FCK.Events.FireEvent( "OnPaste" )) e.preventDefault();}else e.preventDefault();};};};this.EditorDocument.addEventListener('keydown', oOnKeyDown, true);var oOnSelectionChange=function(e){FCK.Events.FireEvent("OnSelectionChange");};this.EditorDocument.addEventListener('mouseup', oOnSelectionChange, false);this.EditorDocument.addEventListener('keyup', oOnSelectionChange, false);this.SetStatus(FCK_STATUS_ACTIVE);};FCK.Focus=function(){this.EditorWindow.focus();}; Index: fckeditorcode_gecko_2.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/js/fckeditorcode_gecko_2.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckeditorcode_gecko_2.js 29 Oct 2004 17:20:16 -0000 1.1 --- fckeditorcode_gecko_2.js 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 11,16 **** * This file has been compacted for best loading performance. * ! * Version: 2.0 Beta 1 ! * Created: 2004-06-01 00:25:33 */ ! FCK.ExecuteNamedCommand=function(commandName, commandParameter){this.EditorDocument.execCommand(commandName, false, commandParameter);this.Events.FireEvent('OnSelectionChange');};FCK.GetNamedCommandState=function(commandName){try{if (!FCK.EditorDocument.queryCommandEnabled( commandName )) return FCK_TRISTATE_DISABLED;else return FCK.EditorDocument.queryCommandState(commandName) ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF;}catch (e){return FCK_TRISTATE_OFF;};};FCK.GetNamedCommandValue=function(commandName){var sValue='';var eState=FCK.GetNamedCommandState(commandName);if (eState==FCK_TRISTATE_DISABLED) return null;try{sValue=this.EditorDocument.queryCommandValue(commandName);}catch(e) {};return sValue ? sValue : '';};FCK.CreateLink=function(url){if (url.length==0) this.ExecuteNamedCommand('Unlink');else{this.ExecuteNamedCommand('CreateLink', "javascript:void(0);/*fckeditortemplink*/");var oLinks=this.EditorDocument.links;for (i=0 ; i < oLinks.length ; i++){if (oLinks[i].href=="javascript:void(0);/*fckeditortemplink*/"){oLinks[i].href=url;return oLinks[i];};};};};FCK.CleanAndPaste=function(html){html=html.replace(/<\/?SPAN[^>]*>/gi, "");html=html.replace(/<(\w[^>]*) class=([^ |>]*)([^>]*)/gi, "<$1$3");html=html.replace(/<(\w[^>]*) style="([^"]*)"([^>]*)/gi, "<$1$3");html=html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");html=html.replace(/<\\?\?xml[^>]*>/gi, "");html=html.replace(/<\/?\w+:[^>]*>/gi, "");html=html.replace(/ /, " ");var re=new RegExp("(<P)([^>]*>.*?)(<\/P>)","gi");html=html.replace(re, "<div$2</div>");this.InsertHtml(html);};FCK.Preview=function(){var oWindow=window.open('', null, 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');oWindow.document.write(FCK.GetHTML());oWindow.document.close();};FCK.SwitchEditMode=function(){var bWYSIWYG=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);document.getElementById('eWysiwyg').style.display = bWYSIWYG ? "none" : "";document.getElementById('eSource').style.display = bWYSIWYG ? "" : "none";if (bWYSIWYG) document.getElementById('eSourceField').value = ( FCKConfig.EnableXHTML && FCKConfig.EnableSourceXHTML ? FCK.GetXHTML() : FCK.GetHTML());else FCK.SetHTML(FCK.GetHTML(), true);FCK.EditMode=bWYSIWYG ? FCK_EDITMODE_SOURCE : FCK_EDITMODE_WYSIWYG;FCK.Focus();FCKToolbarSet.RefreshItemsState();};FCK._BaseGetNamedCommandState=FCK.GetNamedCommandState;FCK.GetNamedCommandState=function(commandName){switch (commandName){case 'Unlink' : return FCKSelection.HasAncestorNode('A') ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED;default : return FCK._BaseGetNamedCommandState(commandName);};};FCK._BaseExecuteNamedCommand=FCK.ExecuteNamedCommand;FCK.ExecuteNamedCommand=function(commandName, commandParameter){switch (commandName){case 'Print' : FCK.EditorWindow.print();default : FCK._BaseExecuteNamedCommand(commandName, commandParameter);};};FCK.Focus=function(){this.EditorWindow.focus();};FCK.AttachToOnSelectionChange=function(functionPointer){this.Events.AttachEvent('OnSelectionChange', functionPointer);};FCK.Paste=function(){FCKDebug.Output('FCK.Paste');if (FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else if (FCKConfig.AutoDetectPasteFromWord && FCKBrowserInfo.IsIE55OrMore){var sHTML=FCK.GetClipboardHTML();var re=/<\w[^>]* class="?MsoNormal"?/gi;if (re.test( sHTML )){if (confirm( FCKLang["PasteWordConfirm"] )){FCK.CleanAndPaste(sHTML);return false;};};}else return true;};FCK.InsertHtml=function(html){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);var oFragment=oRange.createContextualFragment(html);var oLastNode=oFragment.lastChild;oRange.insertNode(oFragment);oRange.setEndAfter(oLastNode);oRange.setStartAfter(oLastNode);oSel.removeAllRanges();oSel=FCK.EditorWindow.getSelection();oSel.addRange(oRange);this.Focus();};FCK.InsertElement=function(element){var oSel=FCKSelection.Delete();var oRange=oSel.getRangeAt(0);oRange.insertNode(element);oRange.setEndAfter(element);oRange.setStartAfter(element);this.Focus();};FCK.PasteAsPlainText=function(){};FCK.GetClipboardHTML=function(){return '';};var FCKSelection=new Object();FCK.Selection=FCKSelection;FCKSelection.GetSelectedElement=function(){var oSel=FCK.EditorWindow.getSelection();if (oSel.rangeCount==1){var oRange=oSel.getRangeAt(0);if (oRange.startContainer==oRange.endContainer && (oRange.endOffset - oRange.startOffset)==1) return oSel.anchorNode.childNodes[ oSel.anchorOffset ];};};FCKSelection.MoveToNode=function(node){var oSel=FCK.EditorWindow.getSelection();for (i=oSel.rangeCount - 1 ; i >=0 ; i--){if (i==0){oSel.getRangeAt(i).selectNodeContents( node);}else{oSel.removeRange(oSel.getRangeAt(i));};};};FCKSelection.HasAncestorNode=function(nodeTagName){var oContainer=this.GetSelectedElement();if (! oContainer && FCK.EditorWindow){try { oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer ; }catch(e){};};while (oContainer){if (oContainer.tagName==nodeTagName) return true;oContainer=oContainer.parentNode;};return false;};FCKSelection.MoveToAncestorNode=function(nodeTagName){var oNode;var oContainer=this.GetSelectedElement();if (! oContainer){oContainer=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;};while (oContainer){if (oContainer.tagName==nodeTagName) return oContainer;oContainer=oContainer.parentNode;};};FCKSelection.Delete=function(){var oSel=FCK.EditorWindow.getSelection();for (var i=0 ; i < oSel.rangeCount ; i++){oSel.getRangeAt(i).deleteContents();};return oSel;};var FCKNamedCommand=function(commandName){this.Name=commandName;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return FCK.GetNamedCommandState(this.Name);};var FCKDialogCommand=function(name, title, url, width, height, getStateFunction, getStateParam){this.Name=name;this.Title=title;this.Url=url;this.Width=width;this.Height=height;this.GetStateFunction=getStateFunction;this.GetStateParam=getStateParam;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height);};FCKDialogCommand.prototype.GetState=function(){if (this.GetStateFunction){return this.GetStateFunction(this.GetStateParam);}else{return FCK_TRISTATE_OFF;};};var FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert('Undefined command');};FCKUndefinedCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(fontName){if (fontName==null || fontName==""){}else{FCK.ExecuteNamedCommand('FontName', fontName);};};FCKFontNameCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontName');};var FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(fontSize){if (typeof( fontSize )=='string' ) fontSize = parseInt(fontSize);if (fontSize==null || fontSize==''){FCK.ExecuteNamedCommand('FontSize', 3);}else{FCK.ExecuteNamedCommand('FontSize', fontSize);};};FCKFontSizeCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FontSize');};var FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(formatName){if (formatName==null || formatName==''){FCK.ExecuteNamedCommand('FormatBlock', '<P>');}else{FCK.ExecuteNamedCommand('FormatBlock', formatName);};};FCKFormatBlockCommand.prototype.GetState=function(){return FCK.GetNamedCommandValue('FormatBlock');};var FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var oForm=FCK.LinkedField.form;oForm.submit();};FCKSaveCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCK.SetHTML('');};FCKNewPageCommand.prototype.GetState=function(){return FCK_TRISTATE_OFF;};var FCKSourceCommand=function(){this.Name="Source";};FCKSourceComm and.prototype.Execute=function(){FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return (FCK.EditMode==FCK_EDITMODE_WYSIWYG ? FCK_TRISTATE_OFF : FCK_TRISTATE_ON);};var FCKCommands=new Object();var sNamedCommands=[ 'Cut','Copy','Paste','Print','Find','SelectAll','RemoveFormat','Unlink','Undo','Redo', 'Bold','Italic','Underline','StrikeThrough','Subscript','Superscript', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','Outdent','Indent', 'InsertOrderedList','InsertUnorderedList','InsertHorizontalRule'];for (i=0 ; i < sNamedCommands.length ; i++){FCKCommands[ sNamedCommands[i] ]=new FCKNamedCommand(sNamedCommands[i]);};FCKCommands['Link'] = new FCKDialogCommand( 'Link' , FCKLang.DlgLnkWindowTitle, 'dialog/fck_link.html' , 400, 330, FCK.GetNamedCommandState, 'CreateLink' );FCKCommands['About'] = new FCKDialogCommand( 'About' , FCKLang.About, 'dialog/fck_about.html' , 400, 330 );FCKCommands['Image'] = new FCKDialogCommand( 'Image' , 'Image Properties', 'dialog/fck_image.html' , 450, 400, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['Table'] = new FCKDialogCommand( 'Table' , 'Table Properties', 'dialog/fck_table.html' , 400, 250 );FCKCommands['TableProp'] = new FCKDialogCommand( 'Table' , 'Table Properties', 'dialog/fck_table.html?Parent', 400, 250 );FCKCommands['SpecialChar'] = new FCKDialogCommand( 'SpecialChar' , 'Select Character', 'dialog/fck_specialchar.html' , 400, 300, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['Smiley'] = new FCKDialogCommand( 'Smiley' , FCKLang.DlgSmileyTitle, 'dialog/fck_smiley.html' , FCKConfig.SmileyWindowWidth, FCKConfig.SmileyWindowHeight, FCK.GetNamedCommandState, 'InsertImage' );FCKCommands['FontName'] = new FCKFontNameCommand();FCKCommands['FontSize'] = new FCKFontSizeCommand();FCKCommands['FontFormat'] = new FCKFormatBlockCommand();FCKCommands['Source'] = new FCKSourceCommand();FCKCommands['Preview'] = new FCKPreviewCommand();FCKCommands['Save'] = new FCKSaveCommand();FCKCommands['NewPage'] = new FCKNewPageCommand();FCKCommands['Undefined'] = new FCKUndefinedCommand();var FCKToolbarButton=function(commandName, label, tooltip, style, sourceView){this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.Tooltip=tooltip ? tooltip : (label ? label : commandName);this.Style=style ? style : FCK_TOOLBARITEM_ONLYICON;this.SourceView=sourceView ? true : false;this.State=FCK_UNKNOWN;};FCKToolbarButton.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Button_Off';this.DOMDiv.FCKToolbarButton=this;this.DOMDiv.onmouseover=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED){this.className='TB_Button_On';};};this.DOMDiv.onmouseout=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED && this.FCKToolbarButton.State !=FCK_TRISTATE_ON){this.className='TB_Button_Off';};};this.DOMDiv.onclick=function(){if (this.FCKToolbarButton.State !=FCK_TRISTATE_DISABLED) this.FCKToolbarButton.Command.Execute();return false;};var sClass;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON : sClass='TB_ButtonType_Icon';break;case FCK_TOOLBARITEM_ONLYTEXT : sClass='TB_ButtonType_Text';break;case FCK_TOOLBARITEM_ICONTEXT : sClass='';break;};this.DOMDiv.innerHTML='<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + '<td class="TB_Icon" unselectable="on"><img src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on"></td>' + '<td class="TB_Text" unselectable="on">' + this.Label + '</td>' + '</tr>' + '</table>';var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshState();};FCKToolbarButton.prototype.RefreshState=function(){var eState;if (FCK.EditMode==FCK_EDITMODE_SOURCE && ! this.SourceView) eState=FCK_TRISTATE_DISABLED;else eState=this.Command.GetState();if (eState==this.State) return;this.State=eState;switch (this.State){case FCK_TRISTATE_ON : this.DOMDiv.className='TB_Button_On';break;case FCK_TRISTATE_OFF : this.DOMDiv.className='TB_Button_Off';break;default : this.DOMDiv.className='TB_Button_Disabled';break;};};var FCKToolbarCombo=function(commandName, label, itemsValues, itemsNames, tooltip, style, firstIsBlank, itemsSeparator, sourceView){this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.Tooltip=tooltip ? tooltip : (label ? label : commandName);this.Style=style ? style : FCK_TOOLBARITEM_ICONTEXT;this.SourceView=sourceView ? true : false;this.State=FCK_UNKNOWN;this.ItemsValues=itemsValues;this.ItemsNames=itemsNames ? itemsNames : itemsValues;this.ItemsSeparator=itemsSeparator ? itemsSeparator : ';';this.FirstIsBlank=firstIsBlank !=null ? firstIsBlank : true;};FCKToolbarCombo.prototype.CreateInstance=function(parentToolbar){this.DOMDiv=document.createElement('div');this.DOMDiv.className='TB_Combo_Off';var sClass;switch (this.Style){case FCK_TOOLBARITEM_ONLYICON : sClass='TB_ButtonType_Icon';break;case FCK_TOOLBARITEM_ONLYTEXT : sClass='TB_ButtonType_Text';break;case FCK_TOOLBARITEM_ICONTEXT : sClass='';break;};this.DOMDiv.innerHTML='<table class="' + sClass + '" cellspacing="0" cellpadding="0" border="0" unselectable="on">' + '<tr>' + '<td class="TB_Text" unselectable="on" nowrap>' + this.Label + '</td>' + '<td unselectable="on"><select title="' + this.Tooltip + '"></select></td>' + '</tr>' + '</table>';this.SelectElement=this.DOMDiv.firstChild.firstChild.firstChild.childNodes.item(1).firstChild;this.SelectElement.FCKToolbarCombo=this;this.SelectElement.onchange=function(){this.FCKToolbarCombo.Command.Execute(this.value);return false;};var oCell=parentToolbar.DOMRow.insertCell(-1);oCell.appendChild(this.DOMDiv);this.RefreshItems();this.RefreshState();};FCKToolbarCombo.prototype.RefreshItems=function(){var aNames=FCKTools.GetResultingArray(this.ItemsNames, this.ItemsSeparator);var aValues=FCKTools.GetResultingArray(this.ItemsValues, this.ItemsSeparator);FCKTools.RemoveAllSelectOptions(this.SelectElement);if (this.FirstIsBlank) FCKTools.AddSelectOption(document, this.SelectElement, '', '');for (var i=0 ; i < aValues.length ; i++){FCKTools.AddSelectOption(document, this.SelectElement, aNames[i], aValues[i]);};};FCKToolbarCombo.prototype.RefreshState=function(){var eState;if (FCK.EditMode==FCK_EDITMODE_SOURCE && ! this.SourceView){eState=FCK_TRISTATE_DISABLED;this.SelectElement.value='';}else{var sValue=this.Command.GetState();FCKTools.SelectNoCase(this.SelectElement, sValue ? sValue : '', '');eState=sValue==null ? FCK_TRISTATE_DISABLED : FCK_TRISTATE_ON;};if (eState==this.State) return;this.State=eState;this.DOMDiv.className=(eState==FCK_TRISTATE_ON ? 'TB_Combo_Off' : 'TB_Combo_Disabled');this.SelectElement.disabled=(eState==FCK_TRISTATE_DISABLED);};var FCKToolbarItems=new Object();FCKToolbarItems['Source'] = new FCKToolbarButton( 'Source', 'Source', null, FCK_TOOLBARITEM_ICONTEXT, true );FCKToolbarItems['Save'] = new FCKToolbarButton( 'Save', null, null, null, true );FCKToolbarItems['NewPage'] = new FCKToolbarButton( 'NewPage', null, null, null, true );FCKToolbarItems['Preview'] = new FCKToolbarButton( 'Preview', null, null, null, true );FCKToolbarItems['About'] = new FCKToolbarButton( 'About', FCKLang.About );FCKToolbarItems['Cut'] = new FCKToolbarButton( 'Cut', FCKLang.Cut, null, null, true );FCKToolbarItems['Copy'] = new FCKToolbarButton( 'Copy', FCKLang.Copy, null, null, true );FCKToolbarItems['Paste'] = new FCKToolbarButton( 'Paste', FCKLang.Paste, null, null, true );FCKToolbarItems['Print'] = new FCKToolbarButton( 'Print', null, null, null, true );FCKToolbarItems['Undo'] = new FCKToolbarButton( 'Undo', null, null, null, true );FCKToolbarItems['Redo'] = new FCKToolbarButton( 'Redo', null, null, null, true );FCKToolbarItems['Find'] = new FCKToolbarButton( 'Find', null, null, null, true );FCKToolbarItems['SelectAll'] = new FCKToolbarButton( 'SelectAll', 'Select All', null, null, true );FCKToolbarItems['RemoveFormat'] = new FCKToolbarButt on( 'RemoveFormat', 'Remove Format' );FCKToolbarItems['Unlink'] = new FCKToolbarButton( 'Unlink' );FCKToolbarItems['Bold'] = new FCKToolbarButton( 'Bold' );FCKToolbarItems['Italic'] = new FCKToolbarButton( 'Italic' );FCKToolbarItems['Underline'] = new FCKToolbarButton( 'Underline' );FCKToolbarItems['StrikeThrough']= new FCKToolbarButton( 'StrikeThrough', 'Strike Through' );FCKToolbarItems['Subscript'] = new FCKToolbarButton( 'Subscript' );FCKToolbarItems['Superscript'] = new FCKToolbarButton( 'Superscript' );FCKToolbarItems['OrderedList'] = new FCKToolbarButton( 'InsertOrderedList', 'Ordered List', 'Insert/Remove Ordered List' );FCKToolbarItems['UnorderedList']= new FCKToolbarButton( 'InsertUnorderedList', 'Unordered List', 'Insert/Remove Unordered List' );FCKToolbarItems['Outdent'] = new FCKToolbarButton( 'Outdent' );FCKToolbarItems['Indent'] = new FCKToolbarButton( 'Indent' );FCKToolbarItems['Link'] = new FCKToolbarButton( 'Link', 'Link', 'Create/Edit Link' );FCKToolbarItems['Unlink'] = new FCKToolbarButton( 'Unlink', 'Remove Link' );FCKToolbarItems['Image'] = new FCKToolbarButton( 'Image', 'Image', 'Insert/Edit Image' );FCKToolbarItems['Table'] = new FCKToolbarButton( 'Table', 'Table', 'Create/Edit Table' );FCKToolbarItems['SpecialChar'] = new FCKToolbarButton( 'SpecialChar', 'Special Character', 'Insert Special Character' );FCKToolbarItems['Smiley'] = new FCKToolbarButton( 'Smiley', 'Smiley', 'Insert Smiley' );FCKToolbarItems['Rule'] = new FCKToolbarButton( 'InsertHorizontalRule', 'Horizontal Rule', 'Insert Horizontal Rule' );FCKToolbarItems['JustifyLeft'] = new FCKToolbarButton( 'JustifyLeft', 'Align Left' );FCKToolbarItems['JustifyCenter']= new FCKToolbarButton( 'JustifyCenter', 'Center' );FCKToolbarItems['JustifyRight'] = new FCKToolbarButton( 'JustifyRight', 'Align Right' );FCKToolbarItems['JustifyFull'] = new FCKToolbarButton( 'JustifyFull', 'Justify' );FCKToolbarItems['FontName'] = new FCKToolbarCombo( 'FontName', FCKLang['Font'], FCKConfig.FontNames, FCKConfig.FontNames );FCKToolbarItems['FontSize'] = new FCKToolbarCombo( 'FontSize', FCKLang['FontSize'], '1;2;3;4;5;6;7', 'xx-small;x-small;small;medium;large;x-large;xx-large' );FCKToolbarItems['FontFormat'] = new FCKToolbarCombo( 'FontFormat', FCKLang['FontFormat'], '<P>;<DIV>;<H1>;<H2>', 'Normal (P);Normal (DIV);Heading 1;Heading 2' );var FCKToolbar=function(){this.Items=new Array();this.DOMTable=document.createElement('table');this.DOMTable.className='TB_Toolbar';with (this.DOMTable){style.styleFloat=style.cssFloat=FCKLang.Dir=='rtl' ? 'right' : 'left';cellPadding=0;cellSpacing=0;border=0;};this.DOMRow=this.DOMTable.insertRow(-1);var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_Start';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';FCKToolbarSet.DOMElement.appendChild(this.DOMTable);};FCKToolbar.prototype.AddItem=function(toolbarItem){this.Items[ this.Items.length ]=toolbarItem;toolbarItem.CreateInstance(this);};FCKToolbar.prototype.AddSeparator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.unselectable='on';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};FCKToolbar.prototype.AddTerminator=function(){var oCell=this.DOMRow.insertCell(-1);oCell.className='TB_End';oCell.innerHTML='<img src="' + FCKConfig.SkinPath + 'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';" unselectable="on">';};var FCKToolbarSet=new Object();FCKToolbarSet.Toolbars=new Array();FCKToolbarSet.Expand=function(){document.getElementById('Collapsed').style.display = 'none';document.getElementById('Expanded').style.display = '';if (! FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()", 1);};};FCKToolbarSet.Collapse=function(){document.getElementById('Collapsed').style.display = '';document.getElementById('Expanded').style.display = 'none';if (! FCKBrowserInfo.IsIE){window.setTimeout("window.onresize()", 1);};};FCKToolbarSet.Restart=function(){if (!FCKConfig.ToolbarCanCollapse || FCKConfig.ToolbarStartExpanded) this.Expand();else this.Collapse();document.getElementById('CollapseHandle').style.display = FCKConfig.ToolbarCanCollapse ? '' : 'none';};FCKToolbarSet.Load=function(toolbarSetName){this.DOMElement=document.getElementById('eToolbar');var ToolbarSet=FCKConfig.ToolbarSets[toolbarSetName];if (! ToolbarSet){alert('Toolbar set "' + toolbarSetName + '" doesn\'t exist.');return;};this.Toolbars=new Array();for (var x=0 ; x < ToolbarSet.length ; x++){var oToolbar=new FCKToolbar();for (var j=0 ; j < ToolbarSet[x].length ; j++){var sItem=ToolbarSet[x][j];if (sItem=='-') oToolbar.AddSeparator();else{var oItem=FCKToolbarItems[sItem];if (oItem) oToolbar.AddItem(oItem);else alert('Unknown toolbar item name "' + sItem + "'");};};oToolbar.AddTerminator();this.Toolbars[ this.Toolbars.length ]=oToolbar;};this.Redraw();};FCKToolbarSet.Redraw=function(){};FCKToolbarSet.RefreshItemsState=function(){for (var i=0 ; i < FCKToolbarSet.Toolbars.length ; i++){var oToolbar=FCKToolbarSet.Toolbars[i];for (var j=0 ; j < oToolbar.Items.length ; j++){oToolbar.Items[j].RefreshState();};};};var FCKDialog=new Object();FCKDialog.OpenDialog=function(dialogName, dialogTitle, dialogPage, width, height){var oDialogInfo=new Object();oDialogInfo.Title=dialogTitle;oDialogInfo.Page=dialogPage;oDialogInfo.Editor=window;var sUrl=FCKConfig.BasePath + 'fckdialog.html';this.Show(oDialogInfo, dialogName, sUrl, width, height);};FCKDialog.Show=function(dialogInfo, dialogName, pageUrl, dialogWidth, dialogHeight){var iTop=(screen.height - dialogHeight) / 2;var iLeft=(screen.width - dialogWidth) / 2;var sOption="location=no,menubar=no,resizable=no,toolbar=no,dependent=yes" + ",width=" + dialogWidth + ",height=" + dialogHeight + ",top=" + iTop + ",left=" + iLeft;var oWindow=window.open('', 'FCKEditorDialog', sOption, true);oWindow.moveTo(iLeft, iTop);oWindow.resizeTo(dialogWidth, dialogHeight);oWindow.focus();oWindow.location.href=pageUrl;oWindow.dialogArguments=dialogInfo;this.Window=oWindow;window.top.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS);window.top.parent.addEventListener('mousedown', this.CheckFocus, true);window.top.parent.addEventListener('mouseup', this.CheckFocus, true);window.top.parent.addEventListener('click', this.CheckFocus, true);window.top.parent.addEventListener('focus', this.CheckFocus, true);};FCKDialog.CheckFocus=function(){if (FCKDialog.Window && !FCKDialog.Window.closed){FCKDialog.Window.focus();return false;}else{window.top.releaseEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS);window.top.parent.removeEventListener('onmousedown', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('mouseup', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('click', FCKDialog.CheckFocus, true);window.top.parent.removeEventListener('onfocus', FCKDialog.CheckFocus, true);};};var FCKContextMenuItem=function(contextMenu, commandName, label, hasIcon){this.ContextMenu=contextMenu;this.Command=FCKCommands[ commandName ];this.Label=label ? label : commandName;this.HasIcon=hasIcon ? true : false;};FCKContextMenuItem.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Disabled';this._Row.FCKContextMenuItem=this;this._Row.onmouseover=function(){if (this.className !='CM_Disabled') this.className='CM_Over';};this._Row.onmouseout=function(){if (this.className !='CM_Disabled') this.className='CM_Option';};this._Row.onclick=function(){this.FCKContextMenuItem.ContextMenu.Hide();this.FCKContextMenuItem.Command.Execute();return false;};var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';if (this.HasIcon ) oCell.innerHTML='<img alt="" src="' + FCKConfig.SkinPath + 'toolbar/button.' + this.Command.Name.toLowerCase() + '.gif" width="21" height="20" unselectable="on">';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.unselectable='o n';oCell.noWrap=true;oCell.innerHTML=this.Label;};FCKContextMenuItem.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible ? '' : 'none';};FCKContextMenuItem.prototype.RefreshState=function(){switch (this.Command.GetState()){case FCK_TRISTATE_ON : case FCK_TRISTATE_OFF : this._Row.className='CM_Option';break;default : this._Row.className='CM_Disabled';break;};};var FCKContextMenuSeparator=function(){};FCKContextMenuSeparator.prototype.CreateTableRow=function(targetTable){this._Row=targetTable.insertRow(-1);this._Row.className='CM_Separator';var oCell=this._Row.insertCell(-1);oCell.className='CM_Icon';oCell=this._Row.insertCell(-1);oCell.className='CM_Label';oCell.innerHTML='<div></div>';};FCKContextMenuSeparator.prototype.SetVisible=function(isVisible){this._Row.style.display=isVisible ? '' : 'none';};FCKContextMenuSeparator.prototype.RefreshState=function(){};var FCKContextMenuGroup=function(){this.IsVisible=true;this.Items=new Array();this.ValidationFunction=null;};FCKContextMenuGroup.prototype.Add=function(contextMenuItem){this.Items[ this.Items.length ]=contextMenuItem;};FCKContextMenuGroup.prototype.CreateTableRows=function(table){for (var i=0 ; i < this.Items.length ; i++){this.Items[i].CreateTableRow(table);};};FCKContextMenuGroup.prototype.SetVisible=function(isVisible){for (var i=0 ; i < this.Items.length ; i++){this.Items[i].SetVisible(isVisible);};this.IsVisible=isVisible;};FCKContextMenuGroup.prototype.RefreshState=function(){if (! this.IsVisible) return;for (var i=0 ; i < this.Items.length ; i++){this.Items[i].RefreshState();};};var FCKContextMenu=new Object();FCKContextMenu._IsLoaded=false;FCKContextMenu.Reload=function(){this._Div=this._Document.createElement('DIV');this._Div.className='CM_ContextMenu';this._Div.style.position='absolute';this._Div.style.visibility='hidden';this._Document.body.appendChild(this._Div);var oTable=this._Document.createElement('TABLE');oTable.cellSpacing=0;oTable.cellPadding=0;oTable.border=0;this._Div.appendChild(oTable);this.... [truncated message content] |
From: Joe S. <joe...@us...> - 2004-10-30 13:53:56
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx Modified Files: sample01.aspx sampleposteddata.aspx Log Message: complete fckeditor addition Index: sample01.aspx =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx/sample01.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample01.aspx 28 Oct 2004 20:17:41 -0000 1.1 --- sample01.aspx 30 Oct 2004 13:53:11 -0000 1.2 *************** *** 14,18 **** * Sample page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:28:37 * --- 14,18 ---- * Sample page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:28:37 * Index: sampleposteddata.aspx =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/aspx/sampleposteddata.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sampleposteddata.aspx 28 Oct 2004 20:17:41 -0000 1.1 --- sampleposteddata.aspx 30 Oct 2004 13:53:11 -0000 1.2 *************** *** 13,17 **** * This page lists the data posted by a form. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:46 * --- 13,17 ---- * This page lists the data posted by a form. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:46 * |
From: Joe S. <joe...@us...> - 2004-10-30 13:53:56
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/js Modified Files: common.js fckxml.js Log Message: complete fckeditor addition Index: common.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/js/common.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** common.js 28 Oct 2004 20:17:46 -0000 1.1 --- common.js 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 13,18 **** * File Browser dialog window. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:53 * * File Authors: --- 13,18 ---- * File Browser dialog window. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-06-19 00:51:22 * * File Authors: *************** *** 20,30 **** */ ! var oConnector = new Object() ; ! oConnector.ResourceType = '' ; ! oConnector.CurrentFolder = '/' ; ! // Get the connector path from the URL. ! oConnector.Regex = new RegExp( '[\?&]Connector=([^&]+)', 'i' ) ; ! oConnector.ConnectorUrl = oConnector.Regex.exec( window.top.location.search )[1] ; oConnector.SendCommand = function( command, params, callBackFunction ) --- 20,50 ---- */ ! function AddSelectOption( selectElement, optionText, optionValue ) ! { ! var oOption = document.createElement("OPTION") ; ! oOption.text = optionText ; ! oOption.value = optionValue ; ! ! selectElement.options.add(oOption) ; ! ! return oOption ; ! } ! ! function GetUrlParam( paramName ) ! { ! var oRegex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ; ! var oMatch = oRegex.exec( window.top.location.search ) ; ! ! if ( oMatch && oMatch.length > 1 ) ! return oMatch[1] ; ! else ! return '' ; ! } ! ! var oConnector = new Object() ; ! oConnector.CurrentFolder = '/' ; ! oConnector.ConnectorUrl = GetUrlParam( 'Connector' ) ; ! oConnector.ResourceType = GetUrlParam( 'Type' ) ; oConnector.SendCommand = function( command, params, callBackFunction ) Index: fckxml.js =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/filemanager/browser/default/js/fckxml.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckxml.js 28 Oct 2004 20:17:46 -0000 1.1 --- fckxml.js 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 15,19 **** * File Browser frameset. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:53 * --- 15,19 ---- * File Browser frameset. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:53 * |
From: Joe S. <joe...@us...> - 2004-10-30 13:53:56
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor Modified Files: fckdebug.html fckdialog.html fckeditor.html fckeditor.original.html Log Message: complete fckeditor addition Index: fckdebug.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/fckdebug.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdebug.html 28 Oct 2004 20:17:42 -0000 1.1 --- fckdebug.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 13,17 **** * It automatically popups if the Debug = true in the configuration file. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:52 * --- 13,17 ---- * It automatically popups if the Debug = true in the configuration file. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:52 * Index: fckdialog.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/fckdialog.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckdialog.html 28 Oct 2004 20:17:42 -0000 1.1 --- fckdialog.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * This page is used by all dialog box as the container. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:07:52 * * File Authors: --- 12,17 ---- * This page is used by all dialog box as the container. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:57:24 * * File Authors: *************** *** 56,59 **** --- 56,64 ---- } + function SetScrollBar( showIt ) + { + document.getElementById('frmMain').scrolling = showIt ? 'yes' : 'no' ; + } + function Ok() { Index: fckeditor.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/fckeditor.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckeditor.html 28 Oct 2004 20:17:42 -0000 1.1 --- fckeditor.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Main page that holds the editor. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:32:15 * * File Authors: --- 12,17 ---- * Main page that holds the editor. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 * * File Authors: *************** *** 27,31 **** <script type="text/javascript" src="js/fck_startup.js"></script> </head> ! <body onfocus="FCK.Focus();"> <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> --- 27,31 ---- <script type="text/javascript" src="js/fck_startup.js"></script> </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> Index: fckeditor.original.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/fckeditor.original.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckeditor.original.html 28 Oct 2004 20:17:42 -0000 1.1 --- fckeditor.original.html 30 Oct 2004 13:53:12 -0000 1.2 *************** *** 12,17 **** * Main page that holds the editor. * ! * Version: 2.0 Beta 1 ! * Modified: 2004-05-31 23:32:15 * * File Authors: --- 12,17 ---- * Main page that holds the editor. * ! * Version: 2.0 Beta 2 ! * Modified: 2004-08-30 23:37:01 * * File Authors: *************** *** 42,46 **** @Packager.RemoveLine --> </head> ! <body onfocus="FCK.Focus();"> <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> --- 42,46 ---- @Packager.RemoveLine --> </head> ! <body onfocus="FCK.Focus();" onclick="FCK.Focus();"> <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> |
From: Joe S. <joe...@us...> - 2004-10-30 13:53:56
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/editor/css Modified Files: fck_editorarea.css Log Message: complete fckeditor addition Index: fck_editorarea.css =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/editor/css/fck_editorarea.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fck_editorarea.css 28 Oct 2004 20:17:43 -0000 1.1 --- fck_editorarea.css 30 Oct 2004 13:53:13 -0000 1.2 *************** *** 17,21 **** * file. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:51 * --- 17,21 ---- * file. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:51 * |
From: Joe S. <joe...@us...> - 2004-10-30 13:53:56
|
Update of /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6803/phpslash-dev/public_html/scripts/fckeditor/_samples Modified Files: default.html sample.css sampleslist.html Log Message: complete fckeditor addition Index: default.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/default.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** default.html 28 Oct 2004 20:17:40 -0000 1.1 --- default.html 30 Oct 2004 13:53:11 -0000 1.2 *************** *** 12,16 **** * Samples Frameset page. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:46 * --- 12,16 ---- * Samples Frameset page. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:46 * Index: sample.css =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/sample.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sample.css 28 Oct 2004 20:17:40 -0000 1.1 --- sample.css 30 Oct 2004 13:53:11 -0000 1.2 *************** *** 12,16 **** * Styles used in the samples pages. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * Styles used in the samples pages. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * Index: sampleslist.html =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/public_html/scripts/fckeditor/_samples/sampleslist.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sampleslist.html 28 Oct 2004 20:17:40 -0000 1.1 --- sampleslist.html 30 Oct 2004 13:53:11 -0000 1.2 *************** *** 12,16 **** * Page used to select the sample to view. * ! * Version: 2.0 Beta 1 * Modified: 2004-05-31 23:07:47 * --- 12,16 ---- * Page used to select the sample to view. * ! * Version: 2.0 Beta 2 * Modified: 2004-05-31 23:07:47 * |