Index: lams_central/web/fckeditor/fckconfig.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/Attic/fckconfig.js,v diff -u -r1.15 -r1.16 --- lams_central/web/fckeditor/fckconfig.js 4 Jan 2008 07:40:55 -0000 1.15 +++ lams_central/web/fckeditor/fckconfig.js 6 Feb 2009 02:42:23 -0000 1.16 @@ -1,306 +1,325 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Editor configuration settings. - * - * Follow this link for more information: - * http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_Settings - */ - -FCKConfig.CustomConfigurationsPath = '../../includes/javascript/fckconfig_custom.js' ; - -FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; -FCKConfig.EditorAreaStyles = '' ; -FCKConfig.ToolbarComboPreviewCSS = '' ; - -FCKConfig.DocType = '' ; - -FCKConfig.BaseHref = '' ; - -FCKConfig.FullPage = false ; - -// The following option determines whether the "Show Blocks" feature is enabled or not at startup. -FCKConfig.StartupShowBlocks = false ; - -FCKConfig.Debug = false ; -FCKConfig.AllowQueryStringDebug = true ; - -FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; -FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; - -FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; - -// FCKConfig.Plugins.Add( 'autogrow' ) ; -// FCKConfig.Plugins.Add( 'dragresizetable' ); -FCKConfig.AutoGrowMax = 400 ; - -// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code -// FCKConfig.ProtectedSource.Add( /(]+>[\s|\S]*?<\/asp:[^\>]+>)|(]+\/>)/gi ) ; // ASP.Net style tags - -FCKConfig.AutoDetectLanguage = true ; -FCKConfig.DefaultLanguage = 'en' ; -FCKConfig.ContentLangDirection = 'ltr' ; - -FCKConfig.ProcessHTMLEntities = true ; -FCKConfig.IncludeLatinEntities = true ; -FCKConfig.IncludeGreekEntities = true ; - -FCKConfig.ProcessNumericEntities = false ; - -FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'" - -FCKConfig.FillEmptyBlocks = true ; - -FCKConfig.FormatSource = true ; -FCKConfig.FormatOutput = true ; -FCKConfig.FormatIndentator = ' ' ; - -FCKConfig.StartupFocus = false ; -FCKConfig.ForcePasteAsPlainText = false ; -FCKConfig.AutoDetectPasteFromWord = true ; // IE only. -FCKConfig.ShowDropDialog = true ; -FCKConfig.ForceSimpleAmpersand = false ; -FCKConfig.TabSpaces = 0 ; -FCKConfig.ShowBorders = true ; -FCKConfig.SourcePopup = false ; -FCKConfig.ToolbarStartExpanded = true ; -FCKConfig.ToolbarCanCollapse = true ; -FCKConfig.IgnoreEmptyParagraphValue = true ; -FCKConfig.PreserveSessionOnFileBrowser = false ; -FCKConfig.FloatingPanelsZIndex = 10000 ; -FCKConfig.HtmlEncodeOutput = false ; - -FCKConfig.TemplateReplaceAll = true ; -FCKConfig.TemplateReplaceCheckbox = true ; - -FCKConfig.ToolbarLocation = 'In' ; - -FCKConfig.ToolbarSets["Default"] = [ - ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], - ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], - ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], - ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], - '/', - ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], - ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], - ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], - ['Link','Unlink','Anchor'], - ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], - '/', - ['Style','FontFormat','FontName','FontSize'], - ['TextColor','BGColor'], - ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. -] ; - -FCKConfig.ToolbarSets["Basic"] = [ - ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] -] ; - -FCKConfig.EnterMode = 'p' ; // p | div | br -FCKConfig.ShiftEnterMode = 'br' ; // p | div | br - -FCKConfig.Keystrokes = [ - [ CTRL + 65 /*A*/, true ], - [ CTRL + 67 /*C*/, true ], - [ CTRL + 70 /*F*/, true ], - [ CTRL + 83 /*S*/, true ], - [ CTRL + 88 /*X*/, true ], - [ CTRL + 86 /*V*/, 'Paste' ], - [ SHIFT + 45 /*INS*/, 'Paste' ], - [ CTRL + 88 /*X*/, 'Cut' ], - [ SHIFT + 46 /*DEL*/, 'Cut' ], - [ CTRL + 90 /*Z*/, 'Undo' ], - [ CTRL + 89 /*Y*/, 'Redo' ], - [ CTRL + SHIFT + 90 /*Z*/, 'Redo' ], - [ CTRL + 76 /*L*/, 'Link' ], - [ CTRL + 66 /*B*/, 'Bold' ], - [ CTRL + 73 /*I*/, 'Italic' ], - [ CTRL + 85 /*U*/, 'Underline' ], - [ CTRL + SHIFT + 83 /*S*/, 'Save' ], - [ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ], - [ CTRL + 9 /*TAB*/, 'Source' ] -] ; - -FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ; -FCKConfig.BrowserContextMenuOnCtrl = false ; - -FCKConfig.EnableMoreFontColors = true ; -FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; - -FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ; -FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; -FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ; - -FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; -FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; - -FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' -FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/download.php' ; -FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl -FCKConfig.FirefoxSpellChecker = false ; - -FCKConfig.MaxUndoLevels = 15 ; - -FCKConfig.DisableObjectResizing = false ; -FCKConfig.DisableFFTableHandles = true ; - -FCKConfig.LinkDlgHideTarget = false ; -FCKConfig.LinkDlgHideAdvanced = false ; - -FCKConfig.ImageDlgHideLink = false ; -FCKConfig.ImageDlgHideAdvanced = false ; - -FCKConfig.FlashDlgHideAdvanced = false ; - -FCKConfig.ProtectedTags = '' ; - -// This will be applied to the body element of the editor -FCKConfig.BodyId = '' ; -FCKConfig.BodyClass = '' ; - -FCKConfig.DefaultStyleLabel = '' ; -FCKConfig.DefaultFontFormatLabel = '' ; -FCKConfig.DefaultFontLabel = '' ; -FCKConfig.DefaultFontSizeLabel = '' ; - -FCKConfig.DefaultLinkTarget = '' ; - -// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word -FCKConfig.CleanWordKeepsStructure = false ; - -// Only inline elements are valid. -FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; - -FCKConfig.CustomStyles = -{ - 'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } } -}; - -// Do not add, rename or remove styles here. Only apply definition changes. -FCKConfig.CoreStyles = -{ - // Basic Inline Styles. - 'Bold' : { Element : 'b', Overrides : 'strong' }, - 'Italic' : { Element : 'i', Overrides : 'em' }, - 'Underline' : { Element : 'u' }, - 'StrikeThrough' : { Element : 'strike' }, - 'Subscript' : { Element : 'sub' }, - 'Superscript' : { Element : 'sup' }, - - // Basic Block Styles (Font Format Combo). - 'p' : { Element : 'p' }, - 'div' : { Element : 'div' }, - 'pre' : { Element : 'pre' }, - 'address' : { Element : 'address' }, - 'h1' : { Element : 'h1' }, - 'h2' : { Element : 'h2' }, - 'h3' : { Element : 'h3' }, - 'h4' : { Element : 'h4' }, - 'h5' : { Element : 'h5' }, - 'h6' : { Element : 'h6' }, - - // Other formatting features. - 'FontFace' : - { - Element : 'span', - Styles : { 'font-family' : '#("Font")' }, - Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ] - }, - - 'Size' : - { - Element : 'span', - Styles : { 'font-size' : '#("Size","fontSize")' }, - Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ] - }, - - 'Color' : - { - Element : 'span', - Styles : { 'color' : '#("Color","color")' }, - Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ] - }, - - 'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } } -}; - -// The distance of an indentation step. -FCKConfig.IndentLength = 40 ; -FCKConfig.IndentUnit = 'px' ; - -// Alternatively, FCKeditor allows the use of CSS classes for block indentation. -// This overrides the IndentLength/IndentUnit settings. -FCKConfig.IndentClasses = [] ; - -// [ Left, Center, Right, Justified ] -FCKConfig.JustifyClasses = [] ; - -// The following value defines which File Browser connector and Quick Upload -// "uploader" to use. It is valid for the default implementaion and it is here -// just to make this configuration file cleaner. -// It is not possible to change this value using an external file or even -// inline when creating the editor instance. In that cases you must set the -// values of LinkBrowserURL, ImageBrowserURL and so on. -// Custom implementations should just ignore it. -var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py -var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py - -// Don't care about the following two lines. It just calculates the correct connector -// extension to use for the default File Browser (Perl uses "cgi"). -var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; -var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; - -FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=../../connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% -FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% - -FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=../../connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; -FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; - -FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=../../connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; -FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; - -FCKConfig.LinkUpload = true ; -FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ; -FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all -FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one - -FCKConfig.ImageUpload = true ; -FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ; -FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all -FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one - -FCKConfig.FlashUpload = true ; -FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ; -FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all -FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one - -FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; -FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; -FCKConfig.SmileyColumns = 8 ; -FCKConfig.SmileyWindowWidth = 320 ; -FCKConfig.SmileyWindowHeight = 240 ; - +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Editor configuration settings. + * + * Follow this link for more information: + * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options + */ + +FCKConfig.CustomConfigurationsPath = '../../../includes/javascript/fckconfig_custom.js' ; + +FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; +FCKConfig.EditorAreaStyles = '' ; +FCKConfig.ToolbarComboPreviewCSS = '' ; + +FCKConfig.DocType = '' ; + +FCKConfig.BaseHref = '' ; + +FCKConfig.FullPage = false ; + +// The following option determines whether the "Show Blocks" feature is enabled or not at startup. +FCKConfig.StartupShowBlocks = false ; + +FCKConfig.Debug = false ; +FCKConfig.AllowQueryStringDebug = true ; + +FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; +FCKConfig.SkinEditorCSS = '' ; // FCKConfig.SkinPath + "|" ; +FCKConfig.SkinDialogCSS = '' ; // FCKConfig.SkinPath + "|" ; + +FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; + +FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; + +// FCKConfig.Plugins.Add( 'autogrow' ) ; +// FCKConfig.Plugins.Add( 'dragresizetable' ); +FCKConfig.AutoGrowMax = 400 ; + +// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code +// FCKConfig.ProtectedSource.Add( /(]+>[\s|\S]*?<\/asp:[^\>]+>)|(]+\/>)/gi ) ; // ASP.Net style tags + +FCKConfig.AutoDetectLanguage = true ; +FCKConfig.DefaultLanguage = 'en' ; +FCKConfig.ContentLangDirection = 'ltr' ; + +FCKConfig.ProcessHTMLEntities = true ; +FCKConfig.IncludeLatinEntities = true ; +FCKConfig.IncludeGreekEntities = true ; + +FCKConfig.ProcessNumericEntities = false ; + +FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'" + +FCKConfig.FillEmptyBlocks = true ; + +FCKConfig.FormatSource = true ; +FCKConfig.FormatOutput = true ; +FCKConfig.FormatIndentator = ' ' ; + +FCKConfig.EMailProtection = 'none' ; // none | encode | function +FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ; + +FCKConfig.StartupFocus = false ; +FCKConfig.ForcePasteAsPlainText = false ; +FCKConfig.AutoDetectPasteFromWord = true ; // IE only. +FCKConfig.ShowDropDialog = true ; +FCKConfig.ForceSimpleAmpersand = false ; +FCKConfig.TabSpaces = 0 ; +FCKConfig.ShowBorders = true ; +FCKConfig.SourcePopup = false ; +FCKConfig.ToolbarStartExpanded = true ; +FCKConfig.ToolbarCanCollapse = true ; +FCKConfig.IgnoreEmptyParagraphValue = true ; +FCKConfig.FloatingPanelsZIndex = 10000 ; +FCKConfig.HtmlEncodeOutput = false ; + +FCKConfig.TemplateReplaceAll = true ; +FCKConfig.TemplateReplaceCheckbox = true ; + +FCKConfig.ToolbarLocation = 'In' ; + +FCKConfig.ToolbarSets["Default"] = [ + ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], + ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], + ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], + ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], + '/', + ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], + ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'], + ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], + ['Link','Unlink','Anchor'], + ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], + '/', + ['Style','FontFormat','FontName','FontSize'], + ['TextColor','BGColor'], + ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. +] ; + +FCKConfig.ToolbarSets["Basic"] = [ + ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] +] ; + +FCKConfig.EnterMode = 'p' ; // p | div | br +FCKConfig.ShiftEnterMode = 'br' ; // p | div | br + +FCKConfig.Keystrokes = [ + [ CTRL + 65 /*A*/, true ], + [ CTRL + 67 /*C*/, true ], + [ CTRL + 70 /*F*/, true ], + [ CTRL + 83 /*S*/, true ], + [ CTRL + 84 /*T*/, true ], + [ CTRL + 88 /*X*/, true ], + [ CTRL + 86 /*V*/, 'Paste' ], + [ CTRL + 45 /*INS*/, true ], + [ SHIFT + 45 /*INS*/, 'Paste' ], + [ CTRL + 88 /*X*/, 'Cut' ], + [ SHIFT + 46 /*DEL*/, 'Cut' ], + [ CTRL + 90 /*Z*/, 'Undo' ], + [ CTRL + 89 /*Y*/, 'Redo' ], + [ CTRL + SHIFT + 90 /*Z*/, 'Redo' ], + [ CTRL + 76 /*L*/, 'Link' ], + [ CTRL + 66 /*B*/, 'Bold' ], + [ CTRL + 73 /*I*/, 'Italic' ], + [ CTRL + 85 /*U*/, 'Underline' ], + [ CTRL + SHIFT + 83 /*S*/, 'Save' ], + [ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ], + [ SHIFT + 32 /*SPACE*/, 'Nbsp' ] +] ; + +FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; +FCKConfig.BrowserContextMenuOnCtrl = false ; +FCKConfig.BrowserContextMenu = false ; + +FCKConfig.EnableMoreFontColors = true ; +FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; + +FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ; +FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; +FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ; + +FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; +FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; + +FCKConfig.SpellChecker = 'WSC' ; // 'WSC' | 'SpellerPages' | 'ieSpell' +FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/download.php' ; +FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl +FCKConfig.FirefoxSpellChecker = false ; + +FCKConfig.MaxUndoLevels = 15 ; + +FCKConfig.DisableObjectResizing = false ; +FCKConfig.DisableFFTableHandles = true ; + +FCKConfig.LinkDlgHideTarget = false ; +FCKConfig.LinkDlgHideAdvanced = false ; + +FCKConfig.ImageDlgHideLink = false ; +FCKConfig.ImageDlgHideAdvanced = false ; + +FCKConfig.FlashDlgHideAdvanced = false ; + +FCKConfig.ProtectedTags = '' ; + +// This will be applied to the body element of the editor +FCKConfig.BodyId = '' ; +FCKConfig.BodyClass = '' ; + +FCKConfig.DefaultStyleLabel = '' ; +FCKConfig.DefaultFontFormatLabel = '' ; +FCKConfig.DefaultFontLabel = '' ; +FCKConfig.DefaultFontSizeLabel = '' ; + +FCKConfig.DefaultLinkTarget = '' ; + +// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word +FCKConfig.CleanWordKeepsStructure = false ; + +// Only inline elements are valid. +FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ; + +// Attributes that will be removed +FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ; + +FCKConfig.CustomStyles = +{ + 'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } } +}; + +// Do not add, rename or remove styles here. Only apply definition changes. +FCKConfig.CoreStyles = +{ + // Basic Inline Styles. + 'Bold' : { Element : 'strong', Overrides : 'b' }, + 'Italic' : { Element : 'em', Overrides : 'i' }, + 'Underline' : { Element : 'u' }, + 'StrikeThrough' : { Element : 'strike' }, + 'Subscript' : { Element : 'sub' }, + 'Superscript' : { Element : 'sup' }, + + // Basic Block Styles (Font Format Combo). + 'p' : { Element : 'p' }, + 'div' : { Element : 'div' }, + 'pre' : { Element : 'pre' }, + 'address' : { Element : 'address' }, + 'h1' : { Element : 'h1' }, + 'h2' : { Element : 'h2' }, + 'h3' : { Element : 'h3' }, + 'h4' : { Element : 'h4' }, + 'h5' : { Element : 'h5' }, + 'h6' : { Element : 'h6' }, + + // Other formatting features. + 'FontFace' : + { + Element : 'span', + Styles : { 'font-family' : '#("Font")' }, + Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ] + }, + + 'Size' : + { + Element : 'span', + Styles : { 'font-size' : '#("Size","fontSize")' }, + Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ] + }, + + 'Color' : + { + Element : 'span', + Styles : { 'color' : '#("Color","color")' }, + Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ] + }, + + 'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } }, + + 'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } } +}; + +// The distance of an indentation step. +FCKConfig.IndentLength = 40 ; +FCKConfig.IndentUnit = 'px' ; + +// Alternatively, FCKeditor allows the use of CSS classes for block indentation. +// This overrides the IndentLength/IndentUnit settings. +FCKConfig.IndentClasses = [] ; + +// [ Left, Center, Right, Justified ] +FCKConfig.JustifyClasses = [] ; + +// The following value defines which File Browser connector and Quick Upload +// "uploader" to use. It is valid for the default implementaion and it is here +// just to make this configuration file cleaner. +// It is not possible to change this value using an external file or even +// inline when creating the editor instance. In that cases you must set the +// values of LinkBrowserURL, ImageBrowserURL and so on. +// Custom implementations should just ignore it. +var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py +var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py + +// Don't care about the following two lines. It just calculates the correct connector +// extension to use for the default File Browser (Perl uses "cgi"). +var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; +var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; + +FCKConfig.LinkBrowser = true ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( '../../connectors/' + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% +FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% + +FCKConfig.ImageBrowser = true ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( '../../connectors/' + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; +FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; + +FCKConfig.FlashBrowser = true ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( '../../connectors/' + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ; +FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; +FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; + +FCKConfig.LinkUpload = true ; +FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ; +FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all +FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one + +FCKConfig.ImageUpload = true ; +FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ; +FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all +FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one + +FCKConfig.FlashUpload = true ; +FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ; +FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all +FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one + +FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; +FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; +FCKConfig.SmileyColumns = 8 ; +FCKConfig.SmileyWindowWidth = 320 ; +FCKConfig.SmileyWindowHeight = 210 ; + +FCKConfig.BackgroundBlockerColor = '#ffffff' ; +FCKConfig.BackgroundBlockerOpacity = 0.50 ; + +FCKConfig.MsWebBrowserControlCompat = false ; + +FCKConfig.PreventSubmitHandler = false ; Index: lams_central/web/fckeditor/fckeditor.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/Attic/fckeditor.js,v diff -u -r1.7 -r1.8 --- lams_central/web/fckeditor/fckeditor.js 4 Jan 2008 07:40:55 -0000 1.7 +++ lams_central/web/fckeditor/fckeditor.js 6 Feb 2009 02:42:23 -0000 1.8 @@ -1,299 +1,332 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This is the integration file for JavaScript. - * - * It defines the FCKeditor class that can be used to create editor - * instances in a HTML page in the client side. For server side - * operations, use the specific integration system. - */ - -// FCKeditor Class -var FCKeditor = function( instanceName, width, height, toolbarSet, value ) -{ - // Properties - this.InstanceName = instanceName ; - this.Width = width || '100%' ; - this.Height = height || '200' ; - this.ToolbarSet = toolbarSet || 'Default' ; - this.Value = value || '' ; - this.BasePath = FCKeditor.BasePath ; - this.CheckBrowser = true ; - this.DisplayErrors = true ; - - this.Config = new Object() ; - - // Events - this.OnError = null ; // function( source, errorNumber, errorDescription ) -} - -/** - * This is the default BasePath used by all editor instances. - */ -FCKeditor.BasePath = '/fckeditor/' ; - -/** - * The minimum height used when replacing textareas. - */ -FCKeditor.MinHeight = 200 ; - -/** - * The minimum width used when replacing textareas. - */ -FCKeditor.MinWidth = 750 ; - -FCKeditor.prototype.Version = '2.5.1' ; -FCKeditor.prototype.VersionBuild = '17566' ; - -FCKeditor.prototype.Create = function() -{ - document.write( this.CreateHtml() ) ; -} - -FCKeditor.prototype.CreateHtml = function() -{ - // Check for errors - if ( !this.InstanceName || this.InstanceName.length == 0 ) - { - this._ThrowError( 701, 'You must specify an instance name.' ) ; - return '' ; - } - - var sHtml = '
' ; - - if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) - { - sHtml += '' ; - sHtml += this._GetConfigHtml() ; - sHtml += this._GetIFrameHtml() ; - } - else - { - var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; - var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; - sHtml += ' -
- Document Description
- -
- Author
-
-
- Copyright
- -
- - - - - Preview
- - - - - - + + + + + + + + + + + + + + + + + + +
+
+ Page Title
+ +
+ + + + + + +
+ Language Direction
+ +
+     + Language Code
+ +
+
+ + + + + + + + + + + + + + +
+ Character Set Encoding
+ +
+     + Other Character Set Encoding
+ +
+  
+ Document Type Heading
+ +
+ + Other Document Type Heading
+ +
+
+ + +
+ + + +
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_flash.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_flash.html,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/dialog/fck_flash.html 4 Jan 2008 07:40:55 -0000 1.5 +++ lams_central/web/fckeditor/editor/dialog/fck_flash.html 6 Feb 2009 02:42:24 -0000 1.6 @@ -1,146 +1,152 @@ - - - - - Flash Properties - - - - - - - -
- - - - - - - - - - -
- - - - - - - - -
URL -
-
-
- - - - - - -
- Width
- -
  - Height
- -
-
- - - - -
- - - - - - - -
Preview
-
-
-
- - - - + + + + + Flash Properties + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + +
URL +
+
+
+ + + + + + +
+ Width
+ +
  + Height
+ +
+
+ + + + +
+ + + + + + + +
Preview
+
+
+
+ + + + Index: lams_central/web/fckeditor/editor/dialog/fck_form.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_form.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_form.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_form.html 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,107 +1,109 @@ - - - - - - - - - - - - - - - -
- - - - - - - - - - -
- Name
- -
- Action
- -
- Method
- -
-
- - + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ Name
+ +
+ Action
+ +
+ Method
+ +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_hiddenfield.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_hiddenfield.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_hiddenfield.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_hiddenfield.html 6 Feb 2009 02:42:23 -0000 1.5 @@ -1,119 +1,115 @@ - - - - - Hidden Field Properties - - - - - - - - - - -
- - - - - - - -
- Name
- -
- Value
- -
-
- - + + + + + Hidden Field Properties + + + + + + + + + + +
+ + + + + + + +
+ Name
+ +
+ Value
+ +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_image.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_image.html,v diff -u -r1.7 -r1.8 --- lams_central/web/fckeditor/editor/dialog/fck_image.html 4 Jan 2008 07:40:55 -0000 1.7 +++ lams_central/web/fckeditor/editor/dialog/fck_image.html 6 Feb 2009 02:42:23 -0000 1.8 @@ -1,252 +1,258 @@ - - - - - Image Properties - - - - - - - -
- - - - - - - - - - -
- - - - - - - - -
- URL -
- -
-
- Short Description
-
-
- - - - - - -
-
- - - - - - - - - - - -
- Width  - -
-
-
-
-
-
- Height  -
-
- - - - - - - - - - - - - - - - - -
- Border  -
- HSpace  -
- VSpace  -
- Align  - -
-
-     - - - - - - - -
- Preview
- -
-
-
-
- - - - - + + + + + Image Properties + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + +
+ URL +
+ +
+
+ Short Description
+
+
+ + + + + + +
+
+ + + + + + + + + + + +
+ Width  + +
+
+
+
+
+
+ Height  +
+
+ + + + + + + + + + + + + + + + + +
+ Border  +
+ HSpace  +
+ VSpace  +
+ Align  + +
+
+     + + + + + + + +
+ Preview
+ +
+
+
+
+ + + + + Index: lams_central/web/fckeditor/editor/dialog/fck_link.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_link.html,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/fck_link.html 4 Jan 2008 07:40:55 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/fck_link.html 6 Feb 2009 02:42:23 -0000 1.7 @@ -1,293 +1,295 @@ - - - - - Link Properties - - - - - - - - - - - - + + + + + Link Properties + + + + + + + + + + + + Index: lams_central/web/fckeditor/editor/dialog/fck_listprop.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_listprop.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_listprop.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_listprop.html 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,117 +1,120 @@ - - - - - - - - - - - - - - - -
- - - - - -
- List Type
- - -   -
-
- - + + + + + + + + + + + + + + + +
+ + + + + +
+ List Type
+ + +   +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_paste.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_paste.html,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/fck_paste.html 4 Jan 2008 07:40:55 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/fck_paste.html 6 Feb 2009 02:42:23 -0000 1.7 @@ -1,340 +1,347 @@ - - - - - - - - - - - - - - - - - - - - - - -
- -
- Please paste inside the following box using the keyboard - (Ctrl+V) and hit OK.
-   -
-
- - -
- - - - - -
- - -
- - -
- -
-
- - + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ Please paste inside the following box using the keyboard + (Ctrl+V) and hit OK.
+   +
+
+ +
+ + + +
+ + + +
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_radiobutton.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_radiobutton.html,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/fck_radiobutton.html 4 Jan 2008 07:40:55 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/fck_radiobutton.html 6 Feb 2009 02:42:23 -0000 1.7 @@ -1,110 +1,104 @@ - - - - - Radio Button Properties - - - - - - - - - - -
- - - - - - - - - - -
- Name
- -
- Value
- -
-
- - + + + + + Radio Button Properties + + + + + + + + + + +
+ + + + + + + + + + +
+ Name
+ +
+ Value
+ +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_replace.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_replace.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_replace.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_replace.html 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,490 +1,650 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + Index: lams_central/web/fckeditor/editor/dialog/fck_select.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_select.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_select.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_select.html 6 Feb 2009 02:42:23 -0000 1.5 @@ -1,178 +1,180 @@ - - - - - Select Properties - - - - - - - - - - - -
- - - - - - - - - - - - - - -
Name 
Value 
Size  lines
-
-
-  Available - Options  - - - - - - - - - - - - - - - - - - -
Text
- -
Value
- -
- - -
-
- -
   -
-
- - + + + + + Select Properties + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
Name 
Value 
Size  lines
+
+
+  Available + Options  + + + + + + + + + + + + + + + + + + +
Text
+ +
Value
+ +
+ + +
+
+ +
   +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_smiley.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_smiley.html,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/dialog/fck_smiley.html 4 Jan 2008 07:40:55 -0000 1.5 +++ lams_central/web/fckeditor/editor/dialog/fck_smiley.html 6 Feb 2009 02:42:24 -0000 1.6 @@ -1,108 +1,111 @@ - - - - - - - - - - - - - -
- - + + + + + + + + + + + + + + +
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_source.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_source.html,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/dialog/fck_source.html 4 Jan 2008 07:40:55 -0000 1.5 +++ lams_central/web/fckeditor/editor/dialog/fck_source.html 6 Feb 2009 02:42:24 -0000 1.6 @@ -1,65 +1,68 @@ - - - - - Source - - - - - - - - - - -
- - + + + + + Source + + + + + + + + + + +
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_specialchar.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_specialchar.html,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/fck_specialchar.html 4 Jan 2008 07:40:55 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/fck_specialchar.html 6 Feb 2009 02:42:24 -0000 1.7 @@ -1,120 +1,121 @@ - - - - - - - - - - - - - - - - -
- - -
-
     - - - - -
 
-
- - + + + + + + + + + + + + + + + + + +
+ + +
+
     + + + + +
 
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_spellerpages.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_spellerpages.html,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/dialog/fck_spellerpages.html 4 Jan 2008 07:40:55 -0000 1.5 +++ lams_central/web/fckeditor/editor/dialog/fck_spellerpages.html 6 Feb 2009 02:42:23 -0000 1.6 @@ -1,64 +1,70 @@ - - - - - Spell Check - - - - - - - - - - + + + + + Spell Check + + + + + + + + + + + Index: lams_central/web/fckeditor/editor/dialog/fck_table.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_table.html,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/fck_table.html 4 Jan 2008 07:40:55 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/fck_table.html 6 Feb 2009 02:42:23 -0000 1.7 @@ -1,293 +1,439 @@ - - - - - Table Properties - - - - - - - - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- Rows: -  
- Columns: -  
-   -  
- Border size: -  
- Alignment: -  
-
-     - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Width: -   -  
- Height: -   -  pixels
-   -   -  
- Cell spacing: -   -  
- Cell padding: -   -  
-
- - - - - - - - - - - -
- Caption -   -
- Summary -   -
-
- - + + + + + Table Properties + + + + + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ Rows: +  
+ Columns: +  
Headers: +   +
+ Border size: +  
+ Alignment: +  
+
+     + + + + + + + + + + + + + + + + + + + + + + + + +
+ Width: +   +  
+ Height: +   +  pixels
 
+ Cell spacing: +   +  
+ Cell padding: +   +  
+
+ + + + + + + + + + + +
+ Caption +   +
+ Summary +   +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_tablecell.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_tablecell.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_tablecell.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_tablecell.html 6 Feb 2009 02:42:23 -0000 1.5 @@ -1,255 +1,293 @@ - - - - - Table Cell Properties - - - - - - - - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Width: -   
- Height: -   pixels
-   -  
- Word Wrap: -  
-   -  
- Horizontal Alignment: -  
- Vertical Alignment: -  
-
-     - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Rows Span: -   - -
- Columns Span: -   - -
-   -   -  
- Background Color: -   -   -
- Border Color: -   -   -
-
-
- - + + + + + Table Cell Properties + + + + + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Width: +   
+ Height: +   pixels
+   +  
+ Word Wrap: +  
+   +  
+ Horizontal Alignment: +  
+ Vertical Alignment: +  
+
+     + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Cell Type: +   +
+   +   +  
+ Rows Span: +   + +
+ Columns Span: +   + +
+   +   +  
+ Background Color: +   +   +
+ Border Color: +   +   +
+
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_template.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_template.html,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/dialog/fck_template.html 4 Jan 2008 07:40:55 -0000 1.5 +++ lams_central/web/fckeditor/editor/dialog/fck_template.html 6 Feb 2009 02:42:23 -0000 1.6 @@ -1,242 +1,242 @@ - - - - - - - - - - - - - - - - - - - - - - -
- Please select the template to open in the editor
- (the actual contents will be lost):
-
-
- - -
-
- - + + + + + + + + + + + + + + + + + + + + + + +
+ Please select the template to open in the editor
+ (the actual contents will be lost):
+
+
+ + +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_textarea.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_textarea.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_textarea.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_textarea.html 6 Feb 2009 02:42:23 -0000 1.5 @@ -1,96 +1,94 @@ - - - - - Text Area Properties - - - - - - - - - - -
- - - - -
- Name
- - Collumns
- -
- Rows
- -
-
- - + + + + + Text Area Properties + + + + + + + + + + +
+ + + + +
+ Name
+ + Collumns
+ +
+ Rows
+ +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/fck_textfield.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/Attic/fck_textfield.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/dialog/fck_textfield.html 4 Jan 2008 07:40:55 -0000 1.4 +++ lams_central/web/fckeditor/editor/dialog/fck_textfield.html 6 Feb 2009 02:42:23 -0000 1.5 @@ -1,141 +1,136 @@ - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -
- Name
- -
- - Value
- -
- Character Width
- -
- - Maximum Characters
- -
- Type
- -
-   -
-
- - + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
+ Name
+ +
+ + Value
+ +
+ Character Width
+ +
+ + Maximum Characters
+ +
+ Type
+ +
+   +
+
+ + Index: lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/common/Attic/fck_dialog_common.css,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.css 4 Jan 2008 07:41:04 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.css 6 Feb 2009 02:42:24 -0000 1.7 @@ -1,78 +1,85 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This is the CSS file used for interface details in some dialog - * windows. - */ - -.ImagePreviewArea -{ - border: #000000 1px solid; - overflow: auto; - width: 100%; - height: 170px; - background-color: #ffffff; -} - -.FlashPreviewArea -{ - 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: none 1px; - font-size: 1px ; -} - -.BtnUnlocked -{ - background-image: url(images/unlocked.gif); -} - -.BtnOver -{ - border: outset 1px; - cursor: pointer; - cursor: hand; -} +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * This is the CSS file used for interface details in some dialog + * windows. + */ + +/* ######### + * WARNING + * ######### + * When changing this file, the minified version of it must be updated in the + * fck_dialog_common.js file (see GetCommonDialogCss). + */ + +.ImagePreviewArea +{ + border: #000000 1px solid; + overflow: auto; + width: 100%; + height: 170px; + background-color: #ffffff; +} + +.FlashPreviewArea +{ + 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: none 1px; + font-size: 1px ; +} + +.BtnUnlocked +{ + background-image: url(images/unlocked.gif); +} + +.BtnOver +{ + border: outset 1px; + cursor: pointer; + cursor: hand; +} Index: lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/dialog/common/Attic/fck_dialog_common.js,v diff -u -r1.6 -r1.7 --- lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.js 4 Jan 2008 07:41:04 -0000 1.6 +++ lams_central/web/fckeditor/editor/dialog/common/fck_dialog_common.js 6 Feb 2009 02:42:24 -0000 1.7 @@ -1,165 +1,347 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Useful functions used by almost all dialog window pages. - */ - -// Gets a element by its Id. Used for shorter coding. -function GetE( elementId ) -{ - return document.getElementById( elementId ) ; -} - -function ShowE( element, isVisible ) -{ - if ( typeof( element ) == 'string' ) - element = GetE( element ) ; - element.style.display = isVisible ? '' : 'none' ; -} - -function SetAttribute( element, attName, attValue ) -{ - if ( attValue == null || attValue.length == 0 ) - element.removeAttribute( attName, 0 ) ; // 0 : Case Insensitive - else - element.setAttribute( attName, attValue, 0 ) ; // 0 : Case Insensitive -} - -function GetAttribute( element, attName, valueIfNull ) -{ - var oAtt = element.attributes[attName] ; - - if ( oAtt == null || !oAtt.specified ) - return valueIfNull ? valueIfNull : '' ; - - var oValue = element.getAttribute( attName, 2 ) ; - - if ( oValue == null ) - oValue = oAtt.nodeValue ; - - return ( oValue == null ? valueIfNull : oValue ) ; -} - -var KeyIdentifierMap = -{ - End : 35, - Home : 36, - Left : 37, - Right : 39, - 'U+00007F' : 46 // Delete -} - -// Functions used by text fields to accept numbers only. -function IsDigit( e ) -{ - if ( !e ) - e = event ; - - var iCode = ( e.keyCode || e.charCode ) ; - - if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) ) - iCode = KeyIdentifierMap[ e.keyIdentifier ] ; - - return ( - ( iCode >= 48 && iCode <= 57 ) // Numbers - || (iCode >= 35 && iCode <= 40) // Arrows, Home, End - || iCode == 8 // Backspace - || iCode == 46 // Delete - || iCode == 9 // Tab - ) ; -} - -String.prototype.Trim = function() -{ - return this.replace( /(^\s*)|(\s*$)/g, '' ) ; -} - -String.prototype.StartsWith = function( value ) -{ - return ( this.substr( 0, value.length ) == value ) ; -} - -String.prototype.Remove = function( start, length ) -{ - var s = '' ; - - if ( start > 0 ) - s = this.substring( 0, start ) ; - - if ( start + length < this.length ) - s += this.substring( start + length , this.length ) ; - - return s ; -} - -String.prototype.ReplaceAll = function( searchArray, replaceArray ) -{ - var replaced = this ; - - for ( var i = 0 ; i < searchArray.length ; i++ ) - { - replaced = replaced.replace( searchArray[i], replaceArray[i] ) ; - } - - return replaced ; -} - -function OpenFileBrowser( url, width, height ) -{ - // oEditor must be defined. - - var iLeft = ( oEditor.FCKConfig.ScreenWidth - width ) / 2 ; - var iTop = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ; - - var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ; - sOptions += ",width=" + width ; - sOptions += ",height=" + height ; - sOptions += ",left=" + iLeft ; - sOptions += ",top=" + iTop ; - - // The "PreserveSessionOnFileBrowser" because the above code could be - // blocked by popup blockers. - if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser && oEditor.FCKBrowserInfo.IsIE ) - { - // The following change has been made otherwise IE will open the file - // browser on a different server session (on some cases): - // http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 - // by Simone Chiaretta. - var oWindow = oEditor.window.open( url, 'FCKBrowseWindow', sOptions ) ; - - if ( oWindow ) - { - // Detect Yahoo popup blocker. - try - { - var sTest = oWindow.name ; // Yahoo returns "something", but we can't access it, so detect that and avoid strange errors for the user. - oWindow.opener = window ; - } - catch(e) - { - alert( oEditor.FCKLang.BrowseServerBlocked ) ; - } - } - else - alert( oEditor.FCKLang.BrowseServerBlocked ) ; - } - else - window.open( url, 'FCKBrowseWindow', sOptions ) ; -} +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Useful functions used by almost all dialog window pages. + * Dialogs should link to this file as the very first script on the page. + */ + +// Automatically detect the correct document.domain (#123). +(function() +{ + var d = document.domain ; + + while ( true ) + { + // Test if we can access a parent property. + try + { + var test = window.parent.document.domain ; + break ; + } + catch( e ) {} + + // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... + d = d.replace( /.*?(?:\.|$)/, '' ) ; + + if ( d.length == 0 ) + break ; // It was not able to detect the domain. + + try + { + document.domain = d ; + } + catch (e) + { + break ; + } + } +})() ; + +// Attention: FCKConfig must be available in the page. +function GetCommonDialogCss( prefix ) +{ + // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt). + return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.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:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ; +} + +// Gets a element by its Id. Used for shorter coding. +function GetE( elementId ) +{ + return document.getElementById( elementId ) ; +} + +function ShowE( element, isVisible ) +{ + if ( typeof( element ) == 'string' ) + element = GetE( element ) ; + element.style.display = isVisible ? '' : 'none' ; +} + +function SetAttribute( element, attName, attValue ) +{ + if ( attValue == null || attValue.length == 0 ) + element.removeAttribute( attName, 0 ) ; // 0 : Case Insensitive + else + element.setAttribute( attName, attValue, 0 ) ; // 0 : Case Insensitive +} + +function GetAttribute( element, attName, valueIfNull ) +{ + var oAtt = element.attributes[attName] ; + + if ( oAtt == null || !oAtt.specified ) + return valueIfNull ? valueIfNull : '' ; + + var oValue = element.getAttribute( attName, 2 ) ; + + if ( oValue == null ) + oValue = oAtt.nodeValue ; + + return ( oValue == null ? valueIfNull : oValue ) ; +} + +function SelectField( elementId ) +{ + var element = GetE( elementId ) ; + element.focus() ; + + // element.select may not be available for some fields (like - - - + + + + + FCKeditor - BBCode Sample + + + + + + +

+ FCKeditor - BBCode Sample

+

+ This is a sample of custom Data Processor implementation for (very) basic BBCode + syntax. Only [b], [i], [u] and + [url] may be used. It may be extended, but this is out of this + sample purpose. +

+

+ Note that the input and output of the editor is not HTML, but BBCode +

+
+
+ +
+ +
+ + Index: lams_central/web/fckeditor/editor/plugins/dragresizetable/fckplugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/dragresizetable/Attic/fckplugin.js,v diff -u -r1.1 -r1.2 --- lams_central/web/fckeditor/editor/plugins/dragresizetable/fckplugin.js 4 Jan 2008 07:40:56 -0000 1.1 +++ lams_central/web/fckeditor/editor/plugins/dragresizetable/fckplugin.js 6 Feb 2009 02:42:25 -0000 1.2 @@ -1,503 +1,529 @@ -var FCKDragTableHandler = -{ - "_DragState" : 0, - "_LeftCell" : null, - "_RightCell" : null, - "_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize - "_ResizeBar" : null, - "_OriginalX" : null, - "_MinimumX" : null, - "_MaximumX" : null, - "_LastX" : null, - "_TableMap" : null, - "_IsInsideNode" : function( w, domNode, pos ) - { - var myCoords = FCKTools.GetWindowPosition( w, domNode ) ; - var xMin = myCoords.x ; - var yMin = myCoords.y ; - var xMax = parseInt( xMin, 10 ) + parseInt( domNode.offsetWidth, 10 ) ; - var yMax = parseInt( yMin, 10 ) + parseInt( domNode.offsetHeight, 10 ) ; - if ( pos.x >= xMin && pos.x <= xMax && pos.y >= yMin && pos.y <= yMax ) - return true; - return false; - }, - "_GetBorderCells" : function( w, tableNode, tableMap, mouse ) - { - // Enumerate all the cells in the table. - var cells = [] ; - for ( var i = 0 ; i < tableNode.rows.length ; i++ ) - { - var r = tableNode.rows[i] ; - for ( var j = 0 ; j < r.cells.length ; j++ ) - cells.push( r.cells[j] ) ; - } - - if ( cells.length < 1 ) - return null ; - - // Get the cells whose right or left border is nearest to the mouse cursor's x coordinate. - var minRxDist = null ; - var lxDist = null ; - var minYDist = null ; - var rbCell = null ; - var lbCell = null ; - for ( var i = 0 ; i < cells.length ; i++ ) - { - var pos = FCKTools.GetWindowPosition( w, cells[i] ) ; - var rightX = pos.x + parseInt( cells[i].clientWidth, 10 ) ; - var rxDist = mouse.x - rightX ; - var yDist = mouse.y - ( pos.y + ( cells[i].clientHeight / 2 ) ) ; - if ( minRxDist == null || - ( Math.abs( rxDist ) <= Math.abs( minRxDist ) && - ( minYDist == null || Math.abs( yDist ) <= Math.abs( minYDist ) ) ) ) - { - minRxDist = rxDist ; - minYDist = yDist ; - rbCell = cells[i] ; - } - } - /* - var rowNode = FCKTools.GetElementAscensor( rbCell, "tr" ) ; - var cellIndex = rbCell.cellIndex + 1 ; - if ( cellIndex >= rowNode.cells.length ) - return null ; - lbCell = rowNode.cells.item( cellIndex ) ; - */ - var rowIdx = rbCell.parentNode.rowIndex ; - var colIdx = FCKTableHandler._GetCellIndexSpan( tableMap, rowIdx, rbCell ) ; - var colSpan = isNaN( rbCell.colSpan ) ? 1 : rbCell.colSpan ; - lbCell = tableMap[rowIdx][colIdx + colSpan] ; - - if ( ! lbCell ) - return null ; - - // Abort if too far from the border. - lxDist = mouse.x - FCKTools.GetWindowPosition( w, lbCell ).x ; - if ( lxDist < 0 && minRxDist < 0 && minRxDist < -2 ) - return null ; - if ( lxDist > 0 && minRxDist > 0 && lxDist > 3 ) - return null ; - - return { "leftCell" : rbCell, "rightCell" : lbCell } ; - }, - "_GetResizeBarPosition" : function() - { - var row = FCKTools.GetElementAscensor( this._RightCell, "tr" ) ; - return FCKTableHandler._GetCellIndexSpan( this._TableMap, row.rowIndex, this._RightCell ) ; - }, - "_ResizeBarMouseDownListener" : function( evt ) - { - if ( ! evt ) - evt = window.event ; - if ( FCKDragTableHandler._LeftCell ) - FCKDragTableHandler._MouseMoveMode = 1 ; - if ( FCKBrowserInfo.IsIE ) - FCKDragTableHandler._ResizeBar.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 50 ; - else - FCKDragTableHandler._ResizeBar.style.opacity = 0.5 ; - FCKDragTableHandler._OriginalX = evt.clientX ; - - // Calculate maximum and minimum x-coordinate delta. - var borderIndex = FCKDragTableHandler._GetResizeBarPosition() ; - var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ; - var table = FCKTools.GetElementAscensor( FCKDragTableHandler._LeftCell, "table" ); - var minX = null ; - var maxX = null ; - for ( var r = 0 ; r < FCKDragTableHandler._TableMap.length ; r++ ) - { - var leftCell = FCKDragTableHandler._TableMap[r][borderIndex - 1] ; - var rightCell = FCKDragTableHandler._TableMap[r][borderIndex] ; - var leftPosition = FCKTools.GetWindowPosition( FCK.EditorWindow, leftCell ) ; - var rightPosition = FCKTools.GetWindowPosition( FCK.EditorWindow, rightCell ) ; - var leftPadding = FCKDragTableHandler._GetCellPadding( table, leftCell ) ; - var rightPadding = FCKDragTableHandler._GetCellPadding( table, rightCell ) ; - if ( minX == null || leftPosition.x + leftPadding > minX ) - minX = leftPosition.x + leftPadding ; - if ( maxX == null || rightPosition.x + rightCell.clientWidth - rightPadding < maxX ) - maxX = rightPosition.x + rightCell.clientWidth - rightPadding ; - } - - FCKDragTableHandler._MinimumX = minX + offset.x ; - FCKDragTableHandler._MaximumX = maxX + offset.x ; - FCKDragTableHandler._LastX = null ; - }, - "_ResizeBarMouseUpListener" : function( evt ) - { - if ( ! evt ) - evt = window.event ; - FCKDragTableHandler._MouseMoveMode = 0 ; - FCKDragTableHandler._HideResizeBar() ; - - if ( FCKDragTableHandler._LastX == null ) - return ; - - // Calculate the delta value. - var deltaX = FCKDragTableHandler._LastX - FCKDragTableHandler._OriginalX ; - - // Then, build an array of current column width values. - // This algorithm can be very slow if the cells have insane colSpan values. (e.g. colSpan=1000). - var table = FCKTools.GetElementAscensor( FCKDragTableHandler._LeftCell, "table" ) ; - var colArray = [] ; - var tableMap = FCKDragTableHandler._TableMap ; - for ( var i = 0 ; i < tableMap.length ; i++ ) - { - for ( var j = 0 ; j < tableMap[i].length ; j++ ) - { - var cell = tableMap[i][j] ; - var width = FCKDragTableHandler._GetCellWidth( table, cell ) ; - var colSpan = isNaN( cell.colSpan) ? 1 : cell.colSpan ; - if ( colArray.length <= j ) - colArray.push( { width : width / colSpan, colSpan : colSpan } ) ; - else - { - var guessItem = colArray[j] ; - if ( guessItem.colSpan > colSpan ) - { - guessItem.width = width / colSpan ; - guessItem.colSpan = colSpan ; - } - } - } - } - - // Find out the equivalent column index of the two cells selected for resizing. - colIndex = FCKDragTableHandler._GetResizeBarPosition() ; - - // Note that colIndex must be at least 1 here, so it's safe to subtract 1 from it. - colIndex-- ; - - // Modify the widths in the colArray according to the mouse coordinate delta value. - colArray[colIndex].width += deltaX ; - colArray[colIndex + 1].width -= deltaX ; - - // Clear all cell widths, delete all elements from the table. - for ( var r = 0 ; r < table.rows.length ; r++ ) - { - var row = table.rows.item( r ) ; - for ( var c = 0 ; c < row.cells.length ; c++ ) - { - var cell = row.cells.item( c ) ; - cell.width = "" ; - cell.style.width = "" ; - } - } - var colElements = table.getElementsByTagName( "col" ) ; - for ( var i = colElements.length - 1 ; i >= 0 ; i-- ) - colElements[i].parentNode.removeChild( colElements[i] ) ; - - // Set new cell widths. - var processedCells = [] ; - for ( var i = 0 ; i < tableMap.length ; i++ ) - { - for ( var j = 0 ; j < tableMap[i].length ; j++ ) - { - var cell = tableMap[i][j] ; - if ( cell._Processed ) - continue ; - if ( tableMap[i][j-1] != cell ) - cell.width = colArray[j].width ; - else - cell.width = parseInt( cell.width, 10 ) + parseInt( colArray[j].width, 10 ) ; - if ( tableMap[i][j+1] != cell ) - { - processedCells.push( cell ) ; - cell._Processed = true ; - } - } - } - for ( var i = 0 ; i < processedCells.length ; i++ ) - { - if ( FCKBrowserInfo.IsIE ) - processedCells[i].removeAttribute( '_Processed' ) ; - else - delete processedCells[i]._Processed ; - } - - FCKDragTableHandler._LastX = null ; - }, - "_ResizeBarMouseMoveListener" : function( evt ) - { - if ( ! evt ) - evt = window.event ; - if ( FCKDragTableHandler._MouseMoveMode == 0 ) - return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; - else - return FCKDragTableHandler._MouseDragHandler( FCK, evt ) ; - }, - // Calculate the padding of a table cell. - // It returns the value of paddingLeft + paddingRight of a table cell. - // This function is used, in part, to calculate the width parameter that should be used for setting cell widths. - // The equation in question is clientWidth = paddingLeft + paddingRight + width. - // So that width = clientWidth - paddingLeft - paddingRight. - // The return value of this function must be pixel accurate acorss all supported browsers, so be careful if you need to modify it. - "_GetCellPadding" : function( table, cell ) - { - var attrGuess = parseInt( table.cellPadding, 10 ) * 2 ; - var cssGuess = null ; - if ( typeof( window.getComputedStyle ) == "function" ) - { - var styleObj = window.getComputedStyle( cell, null ) ; - cssGuess = parseInt( styleObj.getPropertyValue( "padding-left" ), 10 ) + - parseInt( styleObj.getPropertyValue( "padding-right" ), 10 ) ; - } - else - cssGuess = parseInt( cell.currentStyle.paddingLeft, 10 ) + parseInt (cell.currentStyle.paddingRight, 10 ) ; - - var cssRuntime = cell.style.padding ; - if ( isFinite( cssRuntime ) ) - cssGuess = parseInt( cssRuntime, 10 ) * 2 ; - else - { - cssRuntime = cell.style.paddingLeft ; - if ( isFinite( cssRuntime ) ) - cssGuess = parseInt( cssRuntime, 10 ) ; - cssRuntime = cell.style.paddingRight ; - if ( isFinite( cssRuntime ) ) - cssGuess += parseInt( cssRuntime, 10 ) ; - } - - attrGuess = parseInt( attrGuess, 10 ) ; - cssGuess = parseInt( cssGuess, 10 ) ; - if ( isNaN( attrGuess ) ) - attrGuess = 0 ; - if ( isNaN( cssGuess ) ) - cssGuess = 0 ; - return Math.max( attrGuess, cssGuess ) ; - }, - // Calculate the real width of the table cell. - // The real width of the table cell is the pixel width that you can set to the width attribute of the table cell and after - // that, the table cell should be of exactly the same width as before. - // The real width of a table cell can be calculated as: - // width = clientWidth - paddingLeft - paddingRight. - "_GetCellWidth" : function( table, cell ) - { - var clientWidth = cell.clientWidth ; - if ( isNaN( clientWidth ) ) - clientWidth = 0 ; - return clientWidth - this._GetCellPadding( table, cell ) ; - }, - "MouseMoveListener" : function( FCK, evt ) - { - if ( FCKDragTableHandler._MouseMoveMode == 0 ) - return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; - else - return FCKDragTableHandler._MouseDragHandler( FCK, evt ) ; - }, - "_MouseFindHandler" : function( FCK, evt ) - { - if ( FCK.MouseDownFlag ) - return ; - var node = evt.srcElement || evt.target ; - try - { - if ( ! node || node.nodeType != 1 ) - { - this._HideResizeBar() ; - return ; - } - } - catch ( e ) - { - this._HideResizeBar() ; - return ; - } - - // Since this function might be called from the editing area iframe or the outer fckeditor iframe, - // the mouse point coordinates from evt.clientX/Y can have different reference points. - // We need to resolve the mouse pointer position relative to the editing area iframe. - var mouseX = evt.clientX ; - var mouseY = evt.clientY ; - if ( node.ownerDocument == document ) - { - var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ; - mouseX -= offset.x ; - mouseY -= offset.y ; - } - - - if ( this._ResizeBar && this._LeftCell ) - { - var leftPos = FCKTools.GetWindowPosition( FCK.EditorWindow, this._LeftCell ) ; - var rightPos = FCKTools.GetWindowPosition( FCK.EditorWindow, this._RightCell ) ; - var rxDist = mouseX - ( leftPos.x + this._LeftCell.clientWidth ) ; - var lxDist = mouseX - rightPos.x ; - var inRangeFlag = false ; - if ( lxDist >= 0 && rxDist <= 0 ) - inRangeFlag = true ; - else if ( rxDist > 0 && lxDist <= 3 ) - inRangeFlag = true ; - else if ( lxDist < 0 && rxDist >= -2 ) - inRangeFlag = true ; - if ( inRangeFlag ) - { - this._ShowResizeBar( FCK.EditorWindow, - FCKTools.GetElementAscensor( this._LeftCell, "table" ), - { "x" : mouseX, "y" : mouseY } ) ; - return ; - } - } - - var tagName = node.tagName.toLowerCase() ; - if ( tagName != "table" && tagName != "td" && tagName != "th" ) - { - if ( this._LeftCell ) - this._LeftCell = this._RightCell = this._TableMap = null ; - this._HideResizeBar() ; - return ; - } - node = FCKTools.GetElementAscensor( node, "table" ) ; - var tableMap = FCKTableHandler._CreateTableMap( node ) ; - var cellTuple = this._GetBorderCells( FCK.EditorWindow, node, tableMap, { "x" : mouseX, "y" : mouseY } ) ; - - if ( cellTuple == null ) - { - if ( this._LeftCell ) - this._LeftCell = this._RightCell = this._TableMap = null ; - this._HideResizeBar() ; - } - else - { - this._LeftCell = cellTuple["leftCell"] ; - this._RightCell = cellTuple["rightCell"] ; - this._TableMap = tableMap ; - this._ShowResizeBar( FCK.EditorWindow, - FCKTools.GetElementAscensor( this._LeftCell, "table" ), - { "x" : mouseX, "y" : mouseY } ) ; - } - }, - "_MouseDragHandler" : function( FCK, evt ) - { - var mouse = { "x" : evt.clientX, "y" : evt.clientY } ; - - // Convert mouse coordinates in reference to the outer iframe. - var node = evt.srcElement || evt.target ; - if ( node.ownerDocument == FCK.EditorDocument ) - { - var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ; - mouse.x += offset.x ; - mouse.y += offset.y ; - } - - // Calculate the mouse position delta and see if we've gone out of range. - if ( mouse.x >= this._MaximumX - 5 ) - mouse.x = this._MaximumX - 5 ; - if ( mouse.x <= this._MinimumX + 5 ) - mouse.x = this._MinimumX + 5 ; - - var docX = mouse.x + FCKTools.GetScrollPosition( window ).X ; - this._ResizeBar.style.left = ( docX - this._ResizeBar.offsetWidth / 2 ) + "px" ; - this._LastX = mouse.x ; - }, - "_ShowResizeBar" : function( w, table, mouse ) - { - if ( this._ResizeBar == null ) - { - this._ResizeBar = document.createElement( "div" ) ; - var paddingBar = this._ResizeBar ; - var paddingStyles = { 'position' : 'absolute', 'cursor' : 'e-resize' } ; - if ( FCKBrowserInfo.IsIE ) - paddingStyles.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=10,enabled=true)" ; - else - paddingStyles.opacity = 0.10 ; - FCKDomTools.SetElementStyles( paddingBar, paddingStyles ) ; - document.body.appendChild( paddingBar ) ; - FCKTools.AddEventListener( paddingBar, "mousemove", this._ResizeBarMouseMoveListener ) ; - FCKTools.AddEventListener( paddingBar, "mousedown", this._ResizeBarMouseDownListener ) ; - FCKTools.AddEventListener( document, "mouseup", this._ResizeBarMouseUpListener ) ; - FCKTools.AddEventListener( FCK.EditorDocument, "mouseup", this._ResizeBarMouseUpListener ) ; - - // IE doesn't let the tranparent part of the padding block to receive mouse events unless there's something inside. - // So we need to create a spacer image to fill the block up. - var filler = document.createElement( "img" ) ; - filler.border = 0 ; - filler.src = FCKConfig.BasePath + "images/spacer.gif" ; - filler.style.position = "absolute" ; - paddingBar.appendChild( filler ) ; - - // Disable drag and drop, and selection for the filler image. - var disabledListener = function( evt ) - { - if ( ! evt ) - evt = window.event ; - if ( evt.preventDefault ) - evt.preventDefault() ; - else - evt.returnValue = false ; - } - FCKTools.AddEventListener( filler, "dragstart", disabledListener ) ; - FCKTools.AddEventListener( filler, "selectstart", disabledListener ) ; - } - - var paddingBar = this._ResizeBar ; - var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ; - var tablePos = FCKTools.GetWindowPosition( w, table ) ; - var barHeight = table.offsetHeight ; - var barTop = offset.y + tablePos.y ; - // Do not let the resize bar intrude into the toolbar area. - if ( tablePos.y < 0 ) - { - barHeight += tablePos.y ; - barTop -= tablePos.y ; - } - var bw = parseInt( table.border, 10 ) ; - if ( isNaN( bw ) ) - bw = 0 ; - var cs = parseInt( table.cellSpacing, 10 ) ; - if ( isNaN( cs ) ) - cs = 0 ; - var barWidth = Math.max( bw+100, cs+100 ) ; - var paddingStyles = - { - 'top' : barTop + 'px', - 'height' : barHeight + 'px', - 'width' : barWidth + 'px', - 'left' : ( offset.x + mouse.x + FCKTools.GetScrollPosition( w ).X - barWidth / 2 ) + 'px' - } ; - if ( FCKBrowserInfo.IsIE ) - paddingBar.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 10 ; - else - paddingStyles.opacity = 0.1 ; - - FCKDomTools.SetElementStyles( paddingBar, paddingStyles ) ; - var filler = paddingBar.getElementsByTagName( "img" )[0] ; - - FCKDomTools.SetElementStyles( filler, - { - width : paddingBar.offsetWidth + 'px', - height : barHeight + 'px' - } ) ; - - barWidth = Math.max( bw, cs, 3 ) ; - var visibleBar = null ; - if ( paddingBar.getElementsByTagName( "div" ).length < 1 ) - { - visibleBar = document.createElement( "div" ) ; - paddingBar.appendChild( visibleBar ) ; - } - else - visibleBar = paddingBar.getElementsByTagName( "div" )[0] ; - - FCKDomTools.SetElementStyles( visibleBar, - { - position : 'absolute', - backgroundColor : 'blue', - width : barWidth + 'px', - height : barHeight + 'px', - left : '50px', - top : '0px' - } ) ; - }, - "_HideResizeBar" : function() - { - if ( this._ResizeBar ) - // IE bug: display : none does not hide the resize bar for some reason. - // so set the position to somewhere invisible. - FCKDomTools.SetElementStyles( this._ResizeBar, - { - top : '-100000px', - left : '-100000px' - } ) ; - } -}; - -FCK.Events.AttachEvent( "OnMouseMove", FCKDragTableHandler.MouseMoveListener ) ; +var FCKDragTableHandler = +{ + "_DragState" : 0, + "_LeftCell" : null, + "_RightCell" : null, + "_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize + "_ResizeBar" : null, + "_OriginalX" : null, + "_MinimumX" : null, + "_MaximumX" : null, + "_LastX" : null, + "_TableMap" : null, + "_doc" : document, + "_IsInsideNode" : function( w, domNode, pos ) + { + var myCoords = FCKTools.GetWindowPosition( w, domNode ) ; + var xMin = myCoords.x ; + var yMin = myCoords.y ; + var xMax = parseInt( xMin, 10 ) + parseInt( domNode.offsetWidth, 10 ) ; + var yMax = parseInt( yMin, 10 ) + parseInt( domNode.offsetHeight, 10 ) ; + if ( pos.x >= xMin && pos.x <= xMax && pos.y >= yMin && pos.y <= yMax ) + return true; + return false; + }, + "_GetBorderCells" : function( w, tableNode, tableMap, mouse ) + { + // Enumerate all the cells in the table. + var cells = [] ; + for ( var i = 0 ; i < tableNode.rows.length ; i++ ) + { + var r = tableNode.rows[i] ; + for ( var j = 0 ; j < r.cells.length ; j++ ) + cells.push( r.cells[j] ) ; + } + + if ( cells.length < 1 ) + return null ; + + // Get the cells whose right or left border is nearest to the mouse cursor's x coordinate. + var minRxDist = null ; + var lxDist = null ; + var minYDist = null ; + var rbCell = null ; + var lbCell = null ; + for ( var i = 0 ; i < cells.length ; i++ ) + { + var pos = FCKTools.GetWindowPosition( w, cells[i] ) ; + var rightX = pos.x + parseInt( cells[i].clientWidth, 10 ) ; + var rxDist = mouse.x - rightX ; + var yDist = mouse.y - ( pos.y + ( cells[i].clientHeight / 2 ) ) ; + if ( minRxDist == null || + ( Math.abs( rxDist ) <= Math.abs( minRxDist ) && + ( minYDist == null || Math.abs( yDist ) <= Math.abs( minYDist ) ) ) ) + { + minRxDist = rxDist ; + minYDist = yDist ; + rbCell = cells[i] ; + } + } + /* + var rowNode = FCKTools.GetElementAscensor( rbCell, "tr" ) ; + var cellIndex = rbCell.cellIndex + 1 ; + if ( cellIndex >= rowNode.cells.length ) + return null ; + lbCell = rowNode.cells.item( cellIndex ) ; + */ + var rowIdx = rbCell.parentNode.rowIndex ; + var colIdx = FCKTableHandler._GetCellIndexSpan( tableMap, rowIdx, rbCell ) ; + var colSpan = isNaN( rbCell.colSpan ) ? 1 : rbCell.colSpan ; + lbCell = tableMap[rowIdx][colIdx + colSpan] ; + + if ( ! lbCell ) + return null ; + + // Abort if too far from the border. + lxDist = mouse.x - FCKTools.GetWindowPosition( w, lbCell ).x ; + if ( lxDist < 0 && minRxDist < 0 && minRxDist < -2 ) + return null ; + if ( lxDist > 0 && minRxDist > 0 && lxDist > 3 ) + return null ; + + return { "leftCell" : rbCell, "rightCell" : lbCell } ; + }, + "_GetResizeBarPosition" : function() + { + var row = FCKTools.GetElementAscensor( this._RightCell, "tr" ) ; + return FCKTableHandler._GetCellIndexSpan( this._TableMap, row.rowIndex, this._RightCell ) ; + }, + "_ResizeBarMouseDownListener" : function( evt ) + { + if ( FCKDragTableHandler._LeftCell ) + FCKDragTableHandler._MouseMoveMode = 1 ; + if ( FCKBrowserInfo.IsIE ) + FCKDragTableHandler._ResizeBar.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 50 ; + else + FCKDragTableHandler._ResizeBar.style.opacity = 0.5 ; + FCKDragTableHandler._OriginalX = evt.clientX ; + + // Calculate maximum and minimum x-coordinate delta. + var borderIndex = FCKDragTableHandler._GetResizeBarPosition() ; + var offset = FCKDragTableHandler._GetIframeOffset(); + var table = FCKTools.GetElementAscensor( FCKDragTableHandler._LeftCell, "table" ); + var minX = null ; + var maxX = null ; + for ( var r = 0 ; r < FCKDragTableHandler._TableMap.length ; r++ ) + { + var leftCell = FCKDragTableHandler._TableMap[r][borderIndex - 1] ; + var rightCell = FCKDragTableHandler._TableMap[r][borderIndex] ; + var leftPosition = FCKTools.GetWindowPosition( FCK.EditorWindow, leftCell ) ; + var rightPosition = FCKTools.GetWindowPosition( FCK.EditorWindow, rightCell ) ; + var leftPadding = FCKDragTableHandler._GetCellPadding( table, leftCell ) ; + var rightPadding = FCKDragTableHandler._GetCellPadding( table, rightCell ) ; + if ( minX == null || leftPosition.x + leftPadding > minX ) + minX = leftPosition.x + leftPadding ; + if ( maxX == null || rightPosition.x + rightCell.clientWidth - rightPadding < maxX ) + maxX = rightPosition.x + rightCell.clientWidth - rightPadding ; + } + + FCKDragTableHandler._MinimumX = minX + offset.x ; + FCKDragTableHandler._MaximumX = maxX + offset.x ; + FCKDragTableHandler._LastX = null ; + + if (evt.preventDefault) + evt.preventDefault(); + else + evt.returnValue = false; + }, + "_ResizeBarMouseUpListener" : function( evt ) + { + FCKDragTableHandler._MouseMoveMode = 0 ; + FCKDragTableHandler._HideResizeBar() ; + + if ( FCKDragTableHandler._LastX == null ) + return ; + + // Calculate the delta value. + var deltaX = FCKDragTableHandler._LastX - FCKDragTableHandler._OriginalX ; + + // Then, build an array of current column width values. + // This algorithm can be very slow if the cells have insane colSpan values. (e.g. colSpan=1000). + var table = FCKTools.GetElementAscensor( FCKDragTableHandler._LeftCell, "table" ) ; + var colArray = [] ; + var tableMap = FCKDragTableHandler._TableMap ; + for ( var i = 0 ; i < tableMap.length ; i++ ) + { + for ( var j = 0 ; j < tableMap[i].length ; j++ ) + { + var cell = tableMap[i][j] ; + var width = FCKDragTableHandler._GetCellWidth( table, cell ) ; + var colSpan = isNaN( cell.colSpan) ? 1 : cell.colSpan ; + if ( colArray.length <= j ) + colArray.push( { width : width / colSpan, colSpan : colSpan } ) ; + else + { + var guessItem = colArray[j] ; + if ( guessItem.colSpan > colSpan ) + { + guessItem.width = width / colSpan ; + guessItem.colSpan = colSpan ; + } + } + } + } + + // Find out the equivalent column index of the two cells selected for resizing. + colIndex = FCKDragTableHandler._GetResizeBarPosition() ; + + // Note that colIndex must be at least 1 here, so it's safe to subtract 1 from it. + colIndex-- ; + + // Modify the widths in the colArray according to the mouse coordinate delta value. + colArray[colIndex].width += deltaX ; + colArray[colIndex + 1].width -= deltaX ; + + // Clear all cell widths, delete all elements from the table. + for ( var r = 0 ; r < table.rows.length ; r++ ) + { + var row = table.rows.item( r ) ; + for ( var c = 0 ; c < row.cells.length ; c++ ) + { + var cell = row.cells.item( c ) ; + cell.width = "" ; + cell.style.width = "" ; + } + } + var colElements = table.getElementsByTagName( "col" ) ; + for ( var i = colElements.length - 1 ; i >= 0 ; i-- ) + colElements[i].parentNode.removeChild( colElements[i] ) ; + + // Set new cell widths. + var processedCells = [] ; + for ( var i = 0 ; i < tableMap.length ; i++ ) + { + for ( var j = 0 ; j < tableMap[i].length ; j++ ) + { + var cell = tableMap[i][j] ; + if ( cell._Processed ) + continue ; + if ( tableMap[i][j-1] != cell ) + cell.width = colArray[j].width ; + else + cell.width = parseInt( cell.width, 10 ) + parseInt( colArray[j].width, 10 ) ; + if ( tableMap[i][j+1] != cell ) + { + processedCells.push( cell ) ; + cell._Processed = true ; + } + } + } + for ( var i = 0 ; i < processedCells.length ; i++ ) + { + if ( FCKBrowserInfo.IsIE ) + processedCells[i].removeAttribute( '_Processed' ) ; + else + delete processedCells[i]._Processed ; + } + + FCKDragTableHandler._LastX = null ; + }, + "_ResizeBarMouseMoveListener" : function( evt ) + { + if ( FCKDragTableHandler._MouseMoveMode == 0 ) + return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; + else + return FCKDragTableHandler._MouseDragHandler( FCK, evt ) ; + }, + // Calculate the padding of a table cell. + // It returns the value of paddingLeft + paddingRight of a table cell. + // This function is used, in part, to calculate the width parameter that should be used for setting cell widths. + // The equation in question is clientWidth = paddingLeft + paddingRight + width. + // So that width = clientWidth - paddingLeft - paddingRight. + // The return value of this function must be pixel accurate acorss all supported browsers, so be careful if you need to modify it. + "_GetCellPadding" : function( table, cell ) + { + var attrGuess = parseInt( table.cellPadding, 10 ) * 2 ; + var cssGuess = null ; + if ( typeof( window.getComputedStyle ) == "function" ) + { + var styleObj = window.getComputedStyle( cell, null ) ; + cssGuess = parseInt( styleObj.getPropertyValue( "padding-left" ), 10 ) + + parseInt( styleObj.getPropertyValue( "padding-right" ), 10 ) ; + } + else + cssGuess = parseInt( cell.currentStyle.paddingLeft, 10 ) + parseInt (cell.currentStyle.paddingRight, 10 ) ; + + var cssRuntime = cell.style.padding ; + if ( isFinite( cssRuntime ) ) + cssGuess = parseInt( cssRuntime, 10 ) * 2 ; + else + { + cssRuntime = cell.style.paddingLeft ; + if ( isFinite( cssRuntime ) ) + cssGuess = parseInt( cssRuntime, 10 ) ; + cssRuntime = cell.style.paddingRight ; + if ( isFinite( cssRuntime ) ) + cssGuess += parseInt( cssRuntime, 10 ) ; + } + + attrGuess = parseInt( attrGuess, 10 ) ; + cssGuess = parseInt( cssGuess, 10 ) ; + if ( isNaN( attrGuess ) ) + attrGuess = 0 ; + if ( isNaN( cssGuess ) ) + cssGuess = 0 ; + return Math.max( attrGuess, cssGuess ) ; + }, + // Calculate the real width of the table cell. + // The real width of the table cell is the pixel width that you can set to the width attribute of the table cell and after + // that, the table cell should be of exactly the same width as before. + // The real width of a table cell can be calculated as: + // width = clientWidth - paddingLeft - paddingRight. + "_GetCellWidth" : function( table, cell ) + { + var clientWidth = cell.clientWidth ; + if ( isNaN( clientWidth ) ) + clientWidth = 0 ; + return clientWidth - this._GetCellPadding( table, cell ) ; + }, + "MouseMoveListener" : function( FCK, evt ) + { + if ( FCKDragTableHandler._MouseMoveMode == 0 ) + return FCKDragTableHandler._MouseFindHandler( FCK, evt ) ; + else + return FCKDragTableHandler._MouseDragHandler( FCK, evt ) ; + }, + "_MouseFindHandler" : function( FCK, evt ) + { + if ( FCK.MouseDownFlag ) + return ; + var node = evt.srcElement || evt.target ; + try + { + if ( ! node || node.nodeType != 1 ) + { + this._HideResizeBar() ; + return ; + } + } + catch ( e ) + { + this._HideResizeBar() ; + return ; + } + + // Since this function might be called from the editing area iframe or the outer fckeditor iframe, + // the mouse point coordinates from evt.clientX/Y can have different reference points. + // We need to resolve the mouse pointer position relative to the editing area iframe. + var mouseX = evt.clientX ; + var mouseY = evt.clientY ; + if ( FCKTools.GetElementDocument( node ) == document ) + { + var offset = this._GetIframeOffset() ; + mouseX -= offset.x ; + mouseY -= offset.y ; + } + + + if ( this._ResizeBar && this._LeftCell ) + { + var leftPos = FCKTools.GetWindowPosition( FCK.EditorWindow, this._LeftCell ) ; + var rightPos = FCKTools.GetWindowPosition( FCK.EditorWindow, this._RightCell ) ; + var rxDist = mouseX - ( leftPos.x + this._LeftCell.clientWidth ) ; + var lxDist = mouseX - rightPos.x ; + var inRangeFlag = false ; + if ( lxDist >= 0 && rxDist <= 0 ) + inRangeFlag = true ; + else if ( rxDist > 0 && lxDist <= 3 ) + inRangeFlag = true ; + else if ( lxDist < 0 && rxDist >= -2 ) + inRangeFlag = true ; + if ( inRangeFlag ) + { + this._ShowResizeBar( FCK.EditorWindow, + FCKTools.GetElementAscensor( this._LeftCell, "table" ), + { "x" : mouseX, "y" : mouseY } ) ; + return ; + } + } + + var tagName = node.tagName.toLowerCase() ; + if ( tagName != "table" && tagName != "td" && tagName != "th" ) + { + if ( this._LeftCell ) + this._LeftCell = this._RightCell = this._TableMap = null ; + this._HideResizeBar() ; + return ; + } + node = FCKTools.GetElementAscensor( node, "table" ) ; + var tableMap = FCKTableHandler._CreateTableMap( node ) ; + var cellTuple = this._GetBorderCells( FCK.EditorWindow, node, tableMap, { "x" : mouseX, "y" : mouseY } ) ; + + if ( cellTuple == null ) + { + if ( this._LeftCell ) + this._LeftCell = this._RightCell = this._TableMap = null ; + this._HideResizeBar() ; + } + else + { + this._LeftCell = cellTuple["leftCell"] ; + this._RightCell = cellTuple["rightCell"] ; + this._TableMap = tableMap ; + this._ShowResizeBar( FCK.EditorWindow, + FCKTools.GetElementAscensor( this._LeftCell, "table" ), + { "x" : mouseX, "y" : mouseY } ) ; + } + }, + "_MouseDragHandler" : function( FCK, evt ) + { + var mouse = { "x" : evt.clientX, "y" : evt.clientY } ; + + // Convert mouse coordinates in reference to the outer iframe. + var node = evt.srcElement || evt.target ; + if ( FCKTools.GetElementDocument( node ) == FCK.EditorDocument ) + { + var offset = this._GetIframeOffset() ; + mouse.x += offset.x ; + mouse.y += offset.y ; + } + + // Calculate the mouse position delta and see if we've gone out of range. + if ( mouse.x >= this._MaximumX - 5 ) + mouse.x = this._MaximumX - 5 ; + if ( mouse.x <= this._MinimumX + 5 ) + mouse.x = this._MinimumX + 5 ; + + var docX = mouse.x + FCKTools.GetScrollPosition( window ).X ; + this._ResizeBar.style.left = ( docX - this._ResizeBar.offsetWidth / 2 ) + "px" ; + this._LastX = mouse.x ; + }, + "_ShowResizeBar" : function( w, table, mouse ) + { + if ( this._ResizeBar == null ) + { + this._ResizeBar = this._doc.createElement( "div" ) ; + var paddingBar = this._ResizeBar ; + var paddingStyles = { 'position' : 'absolute', 'cursor' : 'e-resize' } ; + if ( FCKBrowserInfo.IsIE ) + paddingStyles.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=10,enabled=true)" ; + else + paddingStyles.opacity = 0.10 ; + FCKDomTools.SetElementStyles( paddingBar, paddingStyles ) ; + this._avoidStyles( paddingBar ); + paddingBar.setAttribute('_fcktemp', true); + this._doc.body.appendChild( paddingBar ) ; + FCKTools.AddEventListener( paddingBar, "mousemove", this._ResizeBarMouseMoveListener ) ; + FCKTools.AddEventListener( paddingBar, "mousedown", this._ResizeBarMouseDownListener ) ; + FCKTools.AddEventListener( document, "mouseup", this._ResizeBarMouseUpListener ) ; + FCKTools.AddEventListener( FCK.EditorDocument, "mouseup", this._ResizeBarMouseUpListener ) ; + + // IE doesn't let the tranparent part of the padding block to receive mouse events unless there's something inside. + // So we need to create a spacer image to fill the block up. + var filler = this._doc.createElement( "img" ) ; + filler.setAttribute('_fcktemp', true); + filler.border = 0 ; + filler.src = FCKConfig.BasePath + "images/spacer.gif" ; + filler.style.position = "absolute" ; + paddingBar.appendChild( filler ) ; + + // Disable drag and drop, and selection for the filler image. + var disabledListener = function( evt ) + { + if ( evt.preventDefault ) + evt.preventDefault() ; + else + evt.returnValue = false ; + } + FCKTools.AddEventListener( filler, "dragstart", disabledListener ) ; + FCKTools.AddEventListener( filler, "selectstart", disabledListener ) ; + } + + var paddingBar = this._ResizeBar ; + var offset = this._GetIframeOffset() ; + var tablePos = this._GetTablePosition( w, table ) ; + var barHeight = table.offsetHeight ; + var barTop = offset.y + tablePos.y ; + // Do not let the resize bar intrude into the toolbar area. + if ( tablePos.y < 0 ) + { + barHeight += tablePos.y ; + barTop -= tablePos.y ; + } + var bw = parseInt( table.border, 10 ) ; + if ( isNaN( bw ) ) + bw = 0 ; + var cs = parseInt( table.cellSpacing, 10 ) ; + if ( isNaN( cs ) ) + cs = 0 ; + var barWidth = Math.max( bw+100, cs+100 ) ; + var paddingStyles = + { + 'top' : barTop + 'px', + 'height' : barHeight + 'px', + 'width' : barWidth + 'px', + 'left' : ( offset.x + mouse.x + FCKTools.GetScrollPosition( w ).X - barWidth / 2 ) + 'px' + } ; + if ( FCKBrowserInfo.IsIE ) + paddingBar.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 10 ; + else + paddingStyles.opacity = 0.1 ; + + FCKDomTools.SetElementStyles( paddingBar, paddingStyles ) ; + var filler = paddingBar.getElementsByTagName( "img" )[0] ; + + FCKDomTools.SetElementStyles( filler, + { + width : paddingBar.offsetWidth + 'px', + height : barHeight + 'px' + } ) ; + + barWidth = Math.max( bw, cs, 3 ) ; + var visibleBar = null ; + if ( paddingBar.getElementsByTagName( "div" ).length < 1 ) + { + visibleBar = this._doc.createElement( "div" ) ; + this._avoidStyles( visibleBar ); + visibleBar.setAttribute('_fcktemp', true); + paddingBar.appendChild( visibleBar ) ; + } + else + visibleBar = paddingBar.getElementsByTagName( "div" )[0] ; + + FCKDomTools.SetElementStyles( visibleBar, + { + position : 'absolute', + backgroundColor : 'blue', + width : barWidth + 'px', + height : barHeight + 'px', + left : '50px', + top : '0px' + } ) ; + }, + "_HideResizeBar" : function() + { + if ( this._ResizeBar ) + // IE bug: display : none does not hide the resize bar for some reason. + // so set the position to somewhere invisible. + FCKDomTools.SetElementStyles( this._ResizeBar, + { + top : '-100000px', + left : '-100000px' + } ) ; + }, + "_GetIframeOffset" : function () + { + return FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ; + }, + "_GetTablePosition" : function ( w, table ) + { + return FCKTools.GetWindowPosition( w, table ) ; + }, + "_avoidStyles" : function( element ) + { + FCKDomTools.SetElementStyles( element, + { + padding : '0', + backgroundImage : 'none', + border : '0' + } ) ; + }, + "Reset" : function() + { + FCKDragTableHandler._LeftCell = FCKDragTableHandler._RightCell = FCKDragTableHandler._TableMap = null ; + } + +}; + +FCK.Events.AttachEvent( "OnMouseMove", FCKDragTableHandler.MouseMoveListener ) ; +FCK.Events.AttachEvent( "OnAfterSetHTML", FCKDragTableHandler.Reset ) ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/fck_placeholder.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/Attic/fck_placeholder.html,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/placeholder/fck_placeholder.html 4 Jan 2008 07:40:56 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/placeholder/fck_placeholder.html 6 Feb 2009 02:42:25 -0000 1.5 @@ -1,100 +1,105 @@ - - - - - Placeholder Properties - - - - - - - - - -
- - - - -
- Placeholder Name
- -
-
- - \ No newline at end of file + + + + + Placeholder Properties + + + + + + + + + + +
+ + + + +
+ Placeholder Name
+ +
+
+ + Index: lams_central/web/fckeditor/editor/plugins/placeholder/fckplugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/Attic/fckplugin.js,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/placeholder/fckplugin.js 4 Jan 2008 07:40:56 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/placeholder/fckplugin.js 6 Feb 2009 02:42:25 -0000 1.5 @@ -1,187 +1,187 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Plugin to insert "Placeholders" in the editor. - */ - -// Register the related command. -FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 170 ) ) ; - -// Create the "Plaholder" toolbar button. -var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ; -oPlaceholderItem.IconPath = FCKPlugins.Items['placeholder'].Path + 'placeholder.gif' ; - -FCKToolbarItems.RegisterItem( 'Placeholder', oPlaceholderItem ) ; - - -// The object used for all Placeholder operations. -var FCKPlaceholders = new Object() ; - -// Add a new placeholder at the actual selection. -FCKPlaceholders.Add = function( name ) -{ - var oSpan = FCK.InsertElement( 'span' ) ; - this.SetupSpan( oSpan, name ) ; -} - -FCKPlaceholders.SetupSpan = function( span, name ) -{ - span.innerHTML = '[[ ' + name + ' ]]' ; - - span.style.backgroundColor = '#ffff00' ; - span.style.color = '#000000' ; - - if ( FCKBrowserInfo.IsGecko ) - span.style.cursor = 'default' ; - - span._fckplaceholder = name ; - span.contentEditable = false ; - - // To avoid it to be resized. - span.onresizestart = function() - { - FCK.EditorWindow.event.returnValue = false ; - return false ; - } -} - -// On Gecko we must do this trick so the user select all the SPAN when clicking on it. -FCKPlaceholders._SetupClickListener = function() -{ - FCKPlaceholders._ClickListener = function( e ) - { - if ( e.target.tagName == 'SPAN' && e.target._fckplaceholder ) - FCKSelection.SelectNode( e.target ) ; - } - - FCK.EditorDocument.addEventListener( 'click', FCKPlaceholders._ClickListener, true ) ; -} - -// Open the Placeholder dialog on double click. -FCKPlaceholders.OnDoubleClick = function( span ) -{ - if ( span.tagName == 'SPAN' && span._fckplaceholder ) - FCKCommands.GetCommand( 'Placeholder' ).Execute() ; -} - -FCK.RegisterDoubleClickHandler( FCKPlaceholders.OnDoubleClick, 'SPAN' ) ; - -// Check if a Placholder name is already in use. -FCKPlaceholders.Exist = function( name ) -{ - var aSpans = FCK.EditorDocument.getElementsByTagName( 'SPAN' ) ; - - for ( var i = 0 ; i < aSpans.length ; i++ ) - { - if ( aSpans[i]._fckplaceholder == name ) - return true ; - } - - return false ; -} - -if ( FCKBrowserInfo.IsIE ) -{ - FCKPlaceholders.Redraw = function() - { - if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) - return ; - - var aPlaholders = FCK.EditorDocument.body.innerText.match( /\[\[[^\[\]]+\]\]/g ) ; - if ( !aPlaholders ) - return ; - - var oRange = FCK.EditorDocument.body.createTextRange() ; - - for ( var i = 0 ; i < aPlaholders.length ; i++ ) - { - if ( oRange.findText( aPlaholders[i] ) ) - { - var sName = aPlaholders[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ; - oRange.pasteHTML( '' + aPlaholders[i] + '' ) ; - } - } - } -} -else -{ - FCKPlaceholders.Redraw = function() - { - if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) - return ; - - var oInteractor = FCK.EditorDocument.createTreeWalker( FCK.EditorDocument.body, NodeFilter.SHOW_TEXT, FCKPlaceholders._AcceptNode, true ) ; - - var aNodes = new Array() ; - - while ( ( oNode = oInteractor.nextNode() ) ) - { - aNodes[ aNodes.length ] = oNode ; - } - - for ( var n = 0 ; n < aNodes.length ; n++ ) - { - var aPieces = aNodes[n].nodeValue.split( /(\[\[[^\[\]]+\]\])/g ) ; - - for ( var i = 0 ; i < aPieces.length ; i++ ) - { - if ( aPieces[i].length > 0 ) - { - if ( aPieces[i].indexOf( '[[' ) == 0 ) - { - var sName = aPieces[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ; - - var oSpan = FCK.EditorDocument.createElement( 'span' ) ; - FCKPlaceholders.SetupSpan( oSpan, sName ) ; - - aNodes[n].parentNode.insertBefore( oSpan, aNodes[n] ) ; - } - else - aNodes[n].parentNode.insertBefore( FCK.EditorDocument.createTextNode( aPieces[i] ) , aNodes[n] ) ; - } - } - - aNodes[n].parentNode.removeChild( aNodes[n] ) ; - } - - FCKPlaceholders._SetupClickListener() ; - } - - FCKPlaceholders._AcceptNode = function( node ) - { - if ( /\[\[[^\[\]]+\]\]/.test( node.nodeValue ) ) - return NodeFilter.FILTER_ACCEPT ; - else - return NodeFilter.FILTER_SKIP ; - } -} - -FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKPlaceholders.Redraw ) ; - -// We must process the SPAN tags to replace then with the real resulting value of the placeholder. -FCKXHtml.TagProcessors['span'] = function( node, htmlNode ) -{ - if ( htmlNode._fckplaceholder ) - node = FCKXHtml.XML.createTextNode( '[[' + htmlNode._fckplaceholder + ']]' ) ; - else - FCKXHtml._AppendChildNodes( node, htmlNode, false ) ; - - return node ; -} \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Plugin to insert "Placeholders" in the editor. + */ + +// Register the related command. +FCKCommands.RegisterCommand( 'Placeholder', new FCKDialogCommand( 'Placeholder', FCKLang.PlaceholderDlgTitle, FCKPlugins.Items['placeholder'].Path + 'fck_placeholder.html', 340, 160 ) ) ; + +// Create the "Plaholder" toolbar button. +var oPlaceholderItem = new FCKToolbarButton( 'Placeholder', FCKLang.PlaceholderBtn ) ; +oPlaceholderItem.IconPath = FCKPlugins.Items['placeholder'].Path + 'placeholder.gif' ; + +FCKToolbarItems.RegisterItem( 'Placeholder', oPlaceholderItem ) ; + + +// The object used for all Placeholder operations. +var FCKPlaceholders = new Object() ; + +// Add a new placeholder at the actual selection. +FCKPlaceholders.Add = function( name ) +{ + var oSpan = FCK.InsertElement( 'span' ) ; + this.SetupSpan( oSpan, name ) ; +} + +FCKPlaceholders.SetupSpan = function( span, name ) +{ + span.innerHTML = '[[ ' + name + ' ]]' ; + + span.style.backgroundColor = '#ffff00' ; + span.style.color = '#000000' ; + + if ( FCKBrowserInfo.IsGecko ) + span.style.cursor = 'default' ; + + span._fckplaceholder = name ; + span.contentEditable = false ; + + // To avoid it to be resized. + span.onresizestart = function() + { + FCK.EditorWindow.event.returnValue = false ; + return false ; + } +} + +// On Gecko we must do this trick so the user select all the SPAN when clicking on it. +FCKPlaceholders._SetupClickListener = function() +{ + FCKPlaceholders._ClickListener = function( e ) + { + if ( e.target.tagName == 'SPAN' && e.target._fckplaceholder ) + FCKSelection.SelectNode( e.target ) ; + } + + FCK.EditorDocument.addEventListener( 'click', FCKPlaceholders._ClickListener, true ) ; +} + +// Open the Placeholder dialog on double click. +FCKPlaceholders.OnDoubleClick = function( span ) +{ + if ( span.tagName == 'SPAN' && span._fckplaceholder ) + FCKCommands.GetCommand( 'Placeholder' ).Execute() ; +} + +FCK.RegisterDoubleClickHandler( FCKPlaceholders.OnDoubleClick, 'SPAN' ) ; + +// Check if a Placholder name is already in use. +FCKPlaceholders.Exist = function( name ) +{ + var aSpans = FCK.EditorDocument.getElementsByTagName( 'SPAN' ) ; + + for ( var i = 0 ; i < aSpans.length ; i++ ) + { + if ( aSpans[i]._fckplaceholder == name ) + return true ; + } + + return false ; +} + +if ( FCKBrowserInfo.IsIE ) +{ + FCKPlaceholders.Redraw = function() + { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return ; + + var aPlaholders = FCK.EditorDocument.body.innerText.match( /\[\[[^\[\]]+\]\]/g ) ; + if ( !aPlaholders ) + return ; + + var oRange = FCK.EditorDocument.body.createTextRange() ; + + for ( var i = 0 ; i < aPlaholders.length ; i++ ) + { + if ( oRange.findText( aPlaholders[i] ) ) + { + var sName = aPlaholders[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ; + oRange.pasteHTML( '' + aPlaholders[i] + '' ) ; + } + } + } +} +else +{ + FCKPlaceholders.Redraw = function() + { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return ; + + var oInteractor = FCK.EditorDocument.createTreeWalker( FCK.EditorDocument.body, NodeFilter.SHOW_TEXT, FCKPlaceholders._AcceptNode, true ) ; + + var aNodes = new Array() ; + + while ( ( oNode = oInteractor.nextNode() ) ) + { + aNodes[ aNodes.length ] = oNode ; + } + + for ( var n = 0 ; n < aNodes.length ; n++ ) + { + var aPieces = aNodes[n].nodeValue.split( /(\[\[[^\[\]]+\]\])/g ) ; + + for ( var i = 0 ; i < aPieces.length ; i++ ) + { + if ( aPieces[i].length > 0 ) + { + if ( aPieces[i].indexOf( '[[' ) == 0 ) + { + var sName = aPieces[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ; + + var oSpan = FCK.EditorDocument.createElement( 'span' ) ; + FCKPlaceholders.SetupSpan( oSpan, sName ) ; + + aNodes[n].parentNode.insertBefore( oSpan, aNodes[n] ) ; + } + else + aNodes[n].parentNode.insertBefore( FCK.EditorDocument.createTextNode( aPieces[i] ) , aNodes[n] ) ; + } + } + + aNodes[n].parentNode.removeChild( aNodes[n] ) ; + } + + FCKPlaceholders._SetupClickListener() ; + } + + FCKPlaceholders._AcceptNode = function( node ) + { + if ( /\[\[[^\[\]]+\]\]/.test( node.nodeValue ) ) + return NodeFilter.FILTER_ACCEPT ; + else + return NodeFilter.FILTER_SKIP ; + } +} + +FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKPlaceholders.Redraw ) ; + +// We must process the SPAN tags to replace then with the real resulting value of the placeholder. +FCKXHtml.TagProcessors['span'] = function( node, htmlNode ) +{ + if ( htmlNode._fckplaceholder ) + node = FCKXHtml.XML.createTextNode( '[[' + htmlNode._fckplaceholder + ']]' ) ; + else + FCKXHtml._AppendChildNodes( node, htmlNode, false ) ; + + return node ; +} Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/de.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/de.js,v diff -u -r1.3 -r1.4 --- lams_central/web/fckeditor/editor/plugins/placeholder/lang/de.js 4 Jan 2008 07:41:02 -0000 1.3 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/de.js 6 Feb 2009 02:42:24 -0000 1.4 @@ -1,27 +1,27 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Placholder German language file. - */ -FCKLang.PlaceholderBtn = 'Einfügen/editieren Platzhalter' ; -FCKLang.PlaceholderDlgTitle = 'Platzhalter Eigenschaften' ; -FCKLang.PlaceholderDlgName = 'Platzhalter Name' ; -FCKLang.PlaceholderErrNoName = 'Bitte den Namen des Platzhalters schreiben' ; -FCKLang.PlaceholderErrNameInUse = 'Der angegebene Namen ist schon in Gebrauch' ; \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placholder German language file. + */ +FCKLang.PlaceholderBtn = 'Einfügen/editieren Platzhalter' ; +FCKLang.PlaceholderDlgTitle = 'Platzhalter Eigenschaften' ; +FCKLang.PlaceholderDlgName = 'Platzhalter Name' ; +FCKLang.PlaceholderErrNoName = 'Bitte den Namen des Platzhalters schreiben' ; +FCKLang.PlaceholderErrNameInUse = 'Der angegebene Namen ist schon in Gebrauch' ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/en.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/en.js,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/placeholder/lang/en.js 4 Jan 2008 07:41:02 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/en.js 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,27 +1,27 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Placholder English language file. - */ -FCKLang.PlaceholderBtn = 'Insert/Edit Placeholder' ; -FCKLang.PlaceholderDlgTitle = 'Placeholder Properties' ; -FCKLang.PlaceholderDlgName = 'Placeholder Name' ; -FCKLang.PlaceholderErrNoName = 'Please type the placeholder name' ; -FCKLang.PlaceholderErrNameInUse = 'The specified name is already in use' ; \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placholder English language file. + */ +FCKLang.PlaceholderBtn = 'Insert/Edit Placeholder' ; +FCKLang.PlaceholderDlgTitle = 'Placeholder Properties' ; +FCKLang.PlaceholderDlgName = 'Placeholder Name' ; +FCKLang.PlaceholderErrNoName = 'Please type the placeholder name' ; +FCKLang.PlaceholderErrNameInUse = 'The specified name is already in use' ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/es.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/es.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/es.js 6 Feb 2009 02:42:24 -0000 1.1 @@ -0,0 +1,27 @@ +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placholder Spanish language file. + */ +FCKLang.PlaceholderBtn = 'Insertar/Editar contenedor' ; +FCKLang.PlaceholderDlgTitle = 'Propiedades del contenedor ' ; +FCKLang.PlaceholderDlgName = 'Nombre de contenedor' ; +FCKLang.PlaceholderErrNoName = 'Por favor escriba el nombre de contenedor' ; +FCKLang.PlaceholderErrNameInUse = 'El nombre especificado ya esta en uso' ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/fr.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/fr.js,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/placeholder/lang/fr.js 4 Jan 2008 07:41:02 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/fr.js 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,27 +1,27 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Placeholder French language file. - */ -FCKLang.PlaceholderBtn = "Insérer/Modifier l'Espace réservé" ; -FCKLang.PlaceholderDlgTitle = "Propriétés de l'Espace réservé" ; -FCKLang.PlaceholderDlgName = "Nom de l'Espace réservé" ; -FCKLang.PlaceholderErrNoName = "Veuillez saisir le nom de l'Espace réservé" ; -FCKLang.PlaceholderErrNameInUse = "Ce nom est déjà utilisé" ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placeholder French language file. + */ +FCKLang.PlaceholderBtn = "Insérer/Modifier l'Espace réservé" ; +FCKLang.PlaceholderDlgTitle = "Propriétés de l'Espace réservé" ; +FCKLang.PlaceholderDlgName = "Nom de l'Espace réservé" ; +FCKLang.PlaceholderErrNoName = "Veuillez saisir le nom de l'Espace réservé" ; +FCKLang.PlaceholderErrNameInUse = "Ce nom est déjà utilisé" ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/it.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/it.js,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/placeholder/lang/it.js 4 Jan 2008 07:41:02 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/it.js 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,27 +1,27 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Placholder Italian language file. - */ -FCKLang.PlaceholderBtn = 'Aggiungi/Modifica Placeholder' ; -FCKLang.PlaceholderDlgTitle = 'Proprietà del Placeholder' ; -FCKLang.PlaceholderDlgName = 'Nome del Placeholder' ; -FCKLang.PlaceholderErrNoName = 'Digitare il nome del placeholder' ; -FCKLang.PlaceholderErrNameInUse = 'Il nome inserito è già in uso' ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placholder Italian language file. + */ +FCKLang.PlaceholderBtn = 'Aggiungi/Modifica Placeholder' ; +FCKLang.PlaceholderDlgTitle = 'Proprietà del Placeholder' ; +FCKLang.PlaceholderDlgName = 'Nome del Placeholder' ; +FCKLang.PlaceholderErrNoName = 'Digitare il nome del placeholder' ; +FCKLang.PlaceholderErrNameInUse = 'Il nome inserito è già in uso' ; Index: lams_central/web/fckeditor/editor/plugins/placeholder/lang/pl.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/placeholder/lang/Attic/pl.js,v diff -u -r1.3 -r1.4 --- lams_central/web/fckeditor/editor/plugins/placeholder/lang/pl.js 4 Jan 2008 07:41:02 -0000 1.3 +++ lams_central/web/fckeditor/editor/plugins/placeholder/lang/pl.js 6 Feb 2009 02:42:24 -0000 1.4 @@ -1,27 +1,27 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Placholder Polish language file. - */ -FCKLang.PlaceholderBtn = 'Wstaw/Edytuj nagłówek' ; -FCKLang.PlaceholderDlgTitle = 'Właśności nagłówka' ; -FCKLang.PlaceholderDlgName = 'Nazwa nagłówka' ; -FCKLang.PlaceholderErrNoName = 'Proszę wprowadzić nazwę nagłówka' ; -FCKLang.PlaceholderErrNameInUse = 'Podana nazwa jest już w użyciu' ; \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Placholder Polish language file. + */ +FCKLang.PlaceholderBtn = 'Wstaw/Edytuj nagłówek' ; +FCKLang.PlaceholderDlgTitle = 'Właśności nagłówka' ; +FCKLang.PlaceholderDlgName = 'Nazwa nagłówka' ; +FCKLang.PlaceholderErrNoName = 'Proszę wprowadzić nazwę nagłówka' ; +FCKLang.PlaceholderErrNameInUse = 'Podana nazwa jest już w użyciu' ; Index: lams_central/web/fckeditor/editor/plugins/simplecommands/fckplugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/simplecommands/Attic/fckplugin.js,v diff -u -r1.3 -r1.4 --- lams_central/web/fckeditor/editor/plugins/simplecommands/fckplugin.js 4 Jan 2008 07:40:57 -0000 1.3 +++ lams_central/web/fckeditor/editor/plugins/simplecommands/fckplugin.js 6 Feb 2009 02:42:24 -0000 1.4 @@ -1,29 +1,29 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This plugin register Toolbar items for the combos modifying the style to - * not show the box. - */ - -FCKToolbarItems.RegisterItem( 'SourceSimple' , new FCKToolbarButton( 'Source', FCKLang.Source, null, FCK_TOOLBARITEM_ONLYICON, true, true, 1 ) ) ; -FCKToolbarItems.RegisterItem( 'StyleSimple' , new FCKToolbarStyleCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; -FCKToolbarItems.RegisterItem( 'FontNameSimple' , new FCKToolbarFontsCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; -FCKToolbarItems.RegisterItem( 'FontSizeSimple' , new FCKToolbarFontSizeCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; -FCKToolbarItems.RegisterItem( 'FontFormatSimple', new FCKToolbarFontFormatCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * This plugin register Toolbar items for the combos modifying the style to + * not show the box. + */ + +FCKToolbarItems.RegisterItem( 'SourceSimple' , new FCKToolbarButton( 'Source', FCKLang.Source, null, FCK_TOOLBARITEM_ONLYICON, true, true, 1 ) ) ; +FCKToolbarItems.RegisterItem( 'StyleSimple' , new FCKToolbarStyleCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; +FCKToolbarItems.RegisterItem( 'FontNameSimple' , new FCKToolbarFontsCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; +FCKToolbarItems.RegisterItem( 'FontSizeSimple' , new FCKToolbarFontSizeCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; +FCKToolbarItems.RegisterItem( 'FontFormatSimple', new FCKToolbarFontFormatCombo( null, FCK_TOOLBARITEM_ONLYTEXT ) ) ; Index: lams_central/web/fckeditor/editor/plugins/tablecommands/fckplugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/tablecommands/Attic/fckplugin.js,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/plugins/tablecommands/fckplugin.js 4 Jan 2008 07:41:03 -0000 1.4 +++ lams_central/web/fckeditor/editor/plugins/tablecommands/fckplugin.js 6 Feb 2009 02:42:25 -0000 1.5 @@ -1,33 +1,33 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * This plugin register the required Toolbar items to be able to insert the - * table commands in the toolbar. - */ - -FCKToolbarItems.RegisterItem( 'TableInsertRowAfter' , new FCKToolbarButton( 'TableInsertRowAfter' , FCKLang.InsertRowAfter, null, null, null, true, 62 ) ) ; -FCKToolbarItems.RegisterItem( 'TableDeleteRows' , new FCKToolbarButton( 'TableDeleteRows' , FCKLang.DeleteRows, null, null, null, true, 63 ) ) ; -FCKToolbarItems.RegisterItem( 'TableInsertColumnAfter' , new FCKToolbarButton( 'TableInsertColumnAfter' , FCKLang.InsertColumnAfter, null, null, null, true, 64 ) ) ; -FCKToolbarItems.RegisterItem( 'TableDeleteColumns' , new FCKToolbarButton( 'TableDeleteColumns', FCKLang.DeleteColumns, null, null, null, true, 65 ) ) ; -FCKToolbarItems.RegisterItem( 'TableInsertCellAfter' , new FCKToolbarButton( 'TableInsertCellAfter' , FCKLang.InsertCellAfter, null, null, null, true, 58 ) ) ; -FCKToolbarItems.RegisterItem( 'TableDeleteCells' , new FCKToolbarButton( 'TableDeleteCells' , FCKLang.DeleteCells, null, null, null, true, 59 ) ) ; -FCKToolbarItems.RegisterItem( 'TableMergeCells' , new FCKToolbarButton( 'TableMergeCells' , FCKLang.MergeCells, null, null, null, true, 60 ) ) ; -FCKToolbarItems.RegisterItem( 'TableHorizontalSplitCell' , new FCKToolbarButton( 'TableHorizontalSplitCell' , FCKLang.SplitCell, null, null, null, true, 61 ) ) ; -FCKToolbarItems.RegisterItem( 'TableCellProp' , new FCKToolbarButton( 'TableCellProp' , FCKLang.CellProperties, null, null, null, true, 57 ) ) ; +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * This plugin register the required Toolbar items to be able to insert the + * table commands in the toolbar. + */ + +FCKToolbarItems.RegisterItem( 'TableInsertRowAfter' , new FCKToolbarButton( 'TableInsertRowAfter' , FCKLang.InsertRowAfter, null, null, null, true, 62 ) ) ; +FCKToolbarItems.RegisterItem( 'TableDeleteRows' , new FCKToolbarButton( 'TableDeleteRows' , FCKLang.DeleteRows, null, null, null, true, 63 ) ) ; +FCKToolbarItems.RegisterItem( 'TableInsertColumnAfter' , new FCKToolbarButton( 'TableInsertColumnAfter' , FCKLang.InsertColumnAfter, null, null, null, true, 64 ) ) ; +FCKToolbarItems.RegisterItem( 'TableDeleteColumns' , new FCKToolbarButton( 'TableDeleteColumns', FCKLang.DeleteColumns, null, null, null, true, 65 ) ) ; +FCKToolbarItems.RegisterItem( 'TableInsertCellAfter' , new FCKToolbarButton( 'TableInsertCellAfter' , FCKLang.InsertCellAfter, null, null, null, true, 58 ) ) ; +FCKToolbarItems.RegisterItem( 'TableDeleteCells' , new FCKToolbarButton( 'TableDeleteCells' , FCKLang.DeleteCells, null, null, null, true, 59 ) ) ; +FCKToolbarItems.RegisterItem( 'TableMergeCells' , new FCKToolbarButton( 'TableMergeCells' , FCKLang.MergeCells, null, null, null, true, 60 ) ) ; +FCKToolbarItems.RegisterItem( 'TableHorizontalSplitCell' , new FCKToolbarButton( 'TableHorizontalSplitCell' , FCKLang.SplitCell, null, null, null, true, 61 ) ) ; +FCKToolbarItems.RegisterItem( 'TableCellProp' , new FCKToolbarButton( 'TableCellProp' , FCKLang.CellProperties, null, null, null, true, 57 ) ) ; Index: lams_central/web/fckeditor/editor/skins/_fckviewstrips.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/Attic/_fckviewstrips.html,v diff -u -r1.2 -r1.3 --- lams_central/web/fckeditor/editor/skins/_fckviewstrips.html 4 Jan 2008 07:41:06 -0000 1.2 +++ lams_central/web/fckeditor/editor/skins/_fckviewstrips.html 6 Feb 2009 02:42:25 -0000 1.3 @@ -1,121 +1,121 @@ - - - - - FCKeditor - View Icons Strips - - - - - - - - - - - - - - -
- Index - Skins
- default - office2003 - silver
- - + + + + + FCKeditor - View Icons Strips + + + + + + + + + + + + + + +
+ Index + Skins
+ default + office2003 + silver
+ + Index: lams_central/web/fckeditor/editor/skins/default/fck_dialog.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/Attic/fck_dialog.css,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/skins/default/fck_dialog.css 4 Jan 2008 07:40:57 -0000 1.4 +++ lams_central/web/fckeditor/editor/skins/default/fck_dialog.css 6 Feb 2009 02:42:25 -0000 1.5 @@ -1,139 +1,402 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the dialog boxes. - */ - -body -{ - margin: 0px; - padding: 10px; -} - -body, td, input, select, textarea -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; -} - -body, .BackColor -{ - background-color: #f1f1e3; -} - -.PopupBody -{ - margin: 0px; - padding: 0px; -} - -.PopupTitle -{ - font-weight: bold; - font-size: 14pt; - color: #737357; - background-color: #e3e3c7; - padding: 3px 10px 3px 10px; -} - -.PopupButtons -{ - border-top: #d5d59d 1px solid; - background-color: #e3e3c7; - padding: 7px 10px 7px 10px; -} - -.Button -{ - border: #737357 1px solid; - color: #3b3b1f; - background-color: #c7c78f; -} - -#btnOk -{ - width: 100px; -} - -.DarkBackground -{ - background-color: #d7d79f; -} - -.LightBackground -{ - background-color: #ffffbe; -} - -.PopupTitleBorder -{ - border-bottom: #d5d59d 1px solid; -} - -.PopupTabArea -{ - color: #737357; - background-color: #e3e3c7; -} - -.PopupTabEmptyArea -{ - padding-left: 10px ; - border-bottom: #d5d59d 1px solid; -} - -.PopupTab, .PopupTabSelected -{ - border-right: #d5d59d 1px solid; - border-top: #d5d59d 1px solid; - border-left: #d5d59d 1px solid; - padding: 3px 5px 3px 5px; - color: #737357; -} - -.PopupTab -{ - margin-top: 1px; - border-bottom: #d5d59d 1px solid; - cursor: pointer; - cursor: hand; -} - -.PopupTabSelected -{ - font-weight:bold; - cursor: default; - padding-top: 4px; - border-bottom: #f1f1e3 1px solid; - background-color: #f1f1e3; -} - -.PopupSelectionBox -{ - border: #ff9933 1px solid !important; - background-color: #fffacd !important; - cursor: pointer; - cursor: hand; -} - -#tdBrowse -{ - vertical-align: bottom; -} \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the dialog boxes. + */ + +html, body +{ + background-color: transparent; + margin: 0px; + padding: 0px; +} + +body +{ + padding: 10px; +} + +body, td, input, select, textarea +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +body, .BackColor +{ + background-color: #f1f1e3; +} + +.PopupBody +{ + height: 100%; + width: 100%; + overflow: hidden; + background-color: transparent; + padding: 0px; +} + +#header +{ + cursor: move; +} + +.PopupTitle +{ + font-weight: bold; + font-size: 14pt; + color: #737357; + background-color: #e3e3c7; + padding: 3px 10px 3px 10px; +} + +.PopupButtons +{ + position: absolute; + right: 0px; + left: 0px; + bottom: 0px; + border-top: #d5d59d 1px solid; + background-color: #e3e3c7; + padding: 7px 10px 7px 10px; +} + +.Button +{ + border: #737357 1px solid; + color: #3b3b1f; + background-color: #c7c78f; +} + +#btnOk +{ + width: 100px; +} + +.DarkBackground +{ + background-color: #eaead1; +} + +.LightBackground +{ + background-color: #ffffbe; +} + +.PopupTitleBorder +{ + border-bottom: #d5d59d 1px solid; +} + +.PopupTabArea +{ + color: #737357; + background-color: #e3e3c7; +} + +.PopupTabEmptyArea +{ + padding-left: 10px; + border-bottom: #d5d59d 1px solid; +} + +.PopupTab, .PopupTabSelected +{ + border-right: #d5d59d 1px solid; + border-top: #d5d59d 1px solid; + border-left: #d5d59d 1px solid; + padding: 3px 5px 3px 5px; + color: #737357; +} + +.PopupTab +{ + margin-top: 1px; + border-bottom: #d5d59d 1px solid; + cursor: pointer; + cursor: hand; +} + +.PopupTabSelected +{ + font-weight: bold; + cursor: default; + padding-top: 4px; + border-bottom: #f1f1e3 1px solid; + background-color: #f1f1e3; +} + +.PopupSelectionBox +{ + border: #ff9933 1px solid !important; + background-color: #fffacd !important; + cursor: pointer; + cursor: hand; +} + +#tdBrowse +{ + vertical-align: bottom; +} + +/** + * Dialog frame related styles. + */ + +.contents +{ + position: absolute; + top: 2px; + left: 16px; + right: 16px; + bottom: 20px; + background-color: #f1f1e3; + overflow: hidden; + z-index: 1; +} + +.tl, .tr, .tc, .bl, .br, .bc +{ + position: absolute; + background-image: url(images/sprites.png); + background-repeat: no-repeat; +} + +* html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc +{ + background-image: url(images/sprites.gif); +} + +.ml, .mr +{ + position: absolute; + background-image: url(images/dialog.sides.png); + background-repeat: repeat-y; +} + +* html .ml, * html .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.rtl .ml, .rtl .mr +{ + position: absolute; + background-image: url(images/dialog.sides.rtl.png); + background-repeat: repeat-y; +} + +* html .rtl .ml, * html .rtl .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.tl +{ + top: 0px; + left: 0px; + width: 16px; + height: 16px; + background-position: -16px -16px; +} + +.rtl .tl +{ + background-position: -16px -397px; +} + +.tr +{ + top: 0px; + right: 0px; + width: 16px; + height: 16px; + background-position: -16px -76px; +} + +.rtl .tr +{ + background-position: -16px -457px; +} + +.tc +{ + top: 0px; + right: 16px; + left: 16px; + height: 16px; + background-position: 0px -136px; + background-repeat: repeat-x; +} + +.ml +{ + top: 16px; + left: 0px; + width: 16px; + bottom: 51px; + background-position: 0px 0px; +} + +.mr +{ + top: 16px; + right: 0px; + width: 16px; + bottom: 51px; + background-position: -16px 0px; +} + +.bl +{ + bottom: 0px; + left: 0px; + width: 30px; + height: 51px; + background-position: -16px -196px; +} + +.rtl .bl +{ + background-position: -16px -517px; +} + +.br +{ + bottom: 0px; + right: 0px; + width: 30px; + height: 51px; + background-position: -16px -263px; +} + +.rtl .br +{ + background-position: -16px -584px; +} + +.bc +{ + bottom: 0px; + right: 30px; + left: 30px; + height: 51px; + background-position: 0px -330px; + background-repeat: repeat-x; +} + +/* For IE6. Do not change it. */ +* html .blocker +{ + position: absolute; + width: 100%; + height: 100%; + z-index: 12; + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); +} + +/* The layer used to cover the dialog when opening a child dialog. */ +.cover +{ + position: absolute; + top: 0px; + left: 14px; + right: 14px; + bottom: 18px; + z-index: 11; +} + +#closeButton +{ + position: absolute; + right: 0px; + top: 0px; + margin-top: 5px; + margin-right: 10px; + width: 20px; + height: 20px; + cursor: pointer; + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: -16px -651px; +} + +* html #closeButton +{ + cursor: hand; + background-image: url(images/sprites.gif); +} + +.rtl #closeButton +{ + right: auto; + left: 10px; + margin-right: 0px; +} + +#closeButton:hover +{ + background-position: -16px -687px; +} + +#throbberBlock +{ + z-index: 10; +} + +#throbberBlock div +{ + float: left; + width: 8px; + height: 9px; + margin-left: 2px; + margin-right: 2px; + font-size: 1px; /* IE6 */ +} + +/* + Color Gradient Generator: + http://www.herethere.net/~samson/php/color_gradient/?cbegin=737357&cend=E3E3C7&steps=4 +*/ + +.throbber_1 +{ + background-color: #737357; +} + +.throbber_2 +{ + background-color: #8f8f73; +} + +.throbber_3 +{ + background-color: #abab8f; +} + +.throbber_4 +{ + background-color: #c7c7ab; +} + +.throbber_5 +{ + background-color: #e3e3c7; +} Index: lams_central/web/fckeditor/editor/skins/default/fck_dialog_ie6.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/Attic/fck_dialog_ie6.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/skins/default/fck_dialog_ie6.js 6 Feb 2009 02:42:25 -0000 1.1 @@ -0,0 +1,110 @@ +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + */ + +(function() +{ + // IE6 doens't handle absolute positioning properly (it is always in quirks + // mode). This function fixes the sizes and positions of many elements that + // compose the skin (this is skin specific). + var fixSizes = window.DoResizeFixes = function() + { + var fckDlg = window.document.body ; + + for ( var i = 0 ; i < fckDlg.childNodes.length ; i++ ) + { + var child = fckDlg.childNodes[i] ; + switch ( child.className ) + { + case 'contents' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + break ; + + case 'blocker' : + case 'cover' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + break ; + + case 'tr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + break ; + + case 'tc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + break ; + + case 'ml' : + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'mr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'bl' : + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'br' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'bc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + } + } + } + + var closeButtonOver = function() + { + this.style.backgroundPosition = '-16px -687px' ; + } ; + + var closeButtonOut = function() + { + this.style.backgroundPosition = '-16px -651px' ; + } ; + + var fixCloseButton = function() + { + var closeButton = document.getElementById ( 'closeButton' ) ; + + closeButton.onmouseover = closeButtonOver ; + closeButton.onmouseout = closeButtonOut ; + } + + var onLoad = function() + { + fixSizes() ; + fixCloseButton() ; + + window.attachEvent( 'onresize', fixSizes ) ; + window.detachEvent( 'onload', onLoad ) ; + } + + window.attachEvent( 'onload', onLoad ) ; + +})() ; Index: lams_central/web/fckeditor/editor/skins/default/fck_editor.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/Attic/fck_editor.css,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/skins/default/fck_editor.css 4 Jan 2008 07:40:57 -0000 1.5 +++ lams_central/web/fckeditor/editor/skins/default/fck_editor.css 6 Feb 2009 02:42:25 -0000 1.6 @@ -1,464 +1,464 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the editor IFRAME and Toolbar. - */ - -/* - ### Basic Editor IFRAME Styles. -*/ - -body -{ - padding: 1px; - margin: 0; - background-color: #ffffff; -} - -#xEditingArea -{ - border: #696969 1px solid; -} - -.SourceField -{ - padding: 5px; - margin: 0px; - font-family: Monospace; -} - -/* - Toolbar -*/ - -.TB_ToolbarSet, .TB_Expand, .TB_Collapse -{ - cursor: default; - background-color: #efefde; -} - -.TB_ToolbarSet -{ - border-top: #efefde 1px outset; - border-bottom: #efefde 1px outset; -} - -.TB_ToolbarSet TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.TB_Toolbar -{ - height: 24px; - display: inline-table; /* inline = Opera jumping buttons bug */ -} - -.TB_Separator -{ - width: 1px; - height: 16px; - margin: 2px; - background-color: #999966; -} - -.TB_Start -{ - background-image: url(images/toolbar.start.gif); - margin: 2px; - width: 3px; - background-repeat: no-repeat; - height: 16px; -} - -.TB_End -{ - display: none; -} - -.TB_ExpandImg -{ - background-image: url(images/toolbar.expand.gif); - background-repeat: no-repeat; -} - -.TB_CollapseImg -{ - background-image: url(images/toolbar.collapse.gif); - background-repeat: no-repeat; -} - -.TB_SideBorder -{ - background-color: #696969; -} - -.TB_Expand, .TB_Collapse -{ - padding: 2px 2px 2px 2px; - border: #efefde 1px outset; -} - -.TB_Collapse -{ - width: 5px; -} - -.TB_Break -{ - height: 24px; /* IE needs the height to be set, otherwise no break */ -} - -/* - Toolbar Button -*/ - -.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled -{ - border: #efefde 1px solid; /* This is the default border */ - height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */ -} - -.TB_Button_On -{ - border: #316ac5 1px solid; - background-color: #c1d2ee; -} - -.TB_Button_On_Over, .TB_Button_Off_Over -{ - border: #316ac5 1px solid; - background-color: #dff1ff; -} - -.TB_Button_Off -{ - filter: alpha(opacity=70); /* IE */ - opacity: 0.70; /* Safari, Opera and Mozilla */ -} - -.TB_Button_Disabled -{ - filter: gray() alpha(opacity=30); /* IE */ - opacity: 0.30; /* Safari, Opera and Mozilla */ -} - -.TB_Button_Padding -{ - visibility: hidden; - width: 3px; - height: 22px; -} - -.TB_Button_Image -{ - overflow: hidden; - width: 16px; - height: 16px; - margin: 3px; - background-repeat: no-repeat; -} - -.TB_Button_Image img -{ - position: relative; -} - -.TB_Button_Off .TB_Button_Text -{ - background-color: #efefde; /* Needed because of a bug on Clear Type */ -} - -.TB_ConnectionLine -{ - background-color: #ffffff; - height: 1px; - margin-left: 1px; /* ltr */ - margin-right: 1px; /* rtl */ -} - -.TB_Text -{ - height: 22px; -} - -.TB_Button_Off .TB_Text -{ - background-color: #efefde ; /* Needed because of a bug on ClearType */ -} - -.TB_Button_On_Over .TB_Text -{ - background-color: #dff1ff ; /* Needed because of a bug on ClearType */ -} - -/* - Menu -*/ - -.MN_Menu -{ - border: 1px solid #8f8f73; - padding: 2px; - background-color: #ffffff; - cursor: default; -} - -.MN_Menu, .MN_Menu .MN_Label -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.MN_Item_Padding -{ - visibility: hidden; - width: 3px; - height: 20px; -} - -.MN_Icon -{ - background-color: #e3e3c7; - text-align: center; - height: 20px; -} - -.MN_Label -{ - padding-left: 3px; - padding-right: 3px; -} - -.MN_Separator -{ - height: 3px; -} - -.MN_Separator_Line -{ - border-top: #b9b99d 1px solid; -} - -.MN_Item .MN_Icon IMG -{ - filter: alpha(opacity=70); - opacity: 0.70; -} - -.MN_Item_Over -{ - color: #ffffff; - background-color: #8f8f73; -} - -.MN_Item_Over .MN_Icon -{ - background-color: #737357; -} - -.MN_Item_Disabled IMG -{ - filter: gray() alpha(opacity=30); /* IE */ - opacity: 0.30; /* Safari, Opera and Mozilla */ -} - -.MN_Item_Disabled .MN_Label -{ - color: #b7b7b7; -} - -.MN_Arrow -{ - padding-right: 3px; - padding-left: 3px; -} - -.MN_ConnectionLine -{ - background-color: #ffffff; -} - -.Menu .TB_Button_On, .Menu .TB_Button_On_Over -{ - border: #8f8f73 1px solid; - background-color: #ffffff; -} - -/* - ### Panel Styles -*/ - -.FCK_Panel -{ - border: #8f8f73 1px solid; - padding: 2px; - background-color: #ffffff; -} - -.FCK_Panel, .FCK_Panel TD -{ - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; - font-size: 11px; -} - -/* - ### Special Combos -*/ - -.SC_Panel -{ - overflow: auto; - white-space: nowrap; - cursor: default; - border: 1px solid #8f8f73; - padding-left: 2px; - padding-right: 2px; -} - -.SC_Panel, .SC_Panel TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.SC_Item, .SC_ItemSelected -{ - margin-top: 2px; - margin-bottom: 2px; - background-position: left center; - padding-left: 11px; - padding-right: 3px; - padding-top: 2px; - padding-bottom: 2px; - text-overflow: ellipsis; - overflow: hidden; - background-repeat: no-repeat; - border: #dddddd 1px solid; -} - -.SC_Item *, .SC_ItemSelected * -{ - margin-top: 0px; - margin-bottom: 0px; -} - -.SC_ItemSelected -{ - border: #9a9afb 1px solid; - background-image: url(images/toolbar.arrowright.gif); -} - -.SC_ItemOver -{ - border: #316ac5 1px solid; -} - -.SC_Field -{ - border: #b7b7a6 1px solid; - cursor: default; -} - -.SC_FieldCaption -{ - overflow: visible; - padding-right: 5px; - padding-left: 5px; - opacity: 0.75; /* Safari, Opera and Mozilla */ - filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ - height: 23px; - background-color: #efefde; -} - -.SC_FieldLabel -{ - white-space: nowrap; - padding: 2px; - width: 100%; - cursor: default; - background-color: #ffffff; - text-overflow: ellipsis; - overflow: hidden; -} - -.SC_FieldButton -{ - background-position: center center; - background-image: url(images/toolbar.buttonarrow.gif); - border-left: #b7b7a6 1px solid; - width: 14px; - background-repeat: no-repeat; -} - -.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption -{ - opacity: 0.30; /* Safari, Opera and Mozilla */ - filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ -} - -.SC_FieldOver -{ - border: #316ac5 1px solid; -} - -.SC_FieldOver .SC_FieldButton -{ - border-left: #316ac5 1px solid; -} - -/* - ### Color Selector Panel -*/ - -.ColorBoxBorder -{ - border: #808080 1px solid; - position: static; -} - -.ColorBox -{ - font-size: 1px; - width: 10px; - position: static; - height: 10px; -} - -.ColorDeselected, .ColorSelected -{ - cursor: default; -} - -.ColorDeselected -{ - border: #ffffff 1px solid; - padding: 2px; - float: left; -} - -.ColorSelected -{ - border: #330066 1px solid; - padding: 2px; - float: left; - background-color: #c4cdd6; -} +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the editor IFRAME and Toolbar. + */ + +/* + ### Basic Editor IFRAME Styles. +*/ + +body +{ + padding: 1px; + margin: 0; + background-color: #ffffff; +} + +#xEditingArea +{ + border: #696969 1px solid; +} + +.SourceField +{ + padding: 5px; + margin: 0px; + font-family: Monospace; +} + +/* + Toolbar +*/ + +.TB_ToolbarSet, .TB_Expand, .TB_Collapse +{ + cursor: default; + background-color: #efefde; +} + +.TB_ToolbarSet +{ + border-top: #efefde 1px outset; + border-bottom: #efefde 1px outset; +} + +.TB_ToolbarSet TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.TB_Toolbar +{ + height: 24px; + display: inline-table; /* inline = Opera jumping buttons bug */ +} + +.TB_Separator +{ + width: 1px; + height: 16px; + margin: 2px; + background-color: #999966; +} + +.TB_Start +{ + background-image: url(images/toolbar.start.gif); + margin: 2px; + width: 3px; + background-repeat: no-repeat; + height: 16px; +} + +.TB_End +{ + display: none; +} + +.TB_ExpandImg +{ + background-image: url(images/toolbar.expand.gif); + background-repeat: no-repeat; +} + +.TB_CollapseImg +{ + background-image: url(images/toolbar.collapse.gif); + background-repeat: no-repeat; +} + +.TB_SideBorder +{ + background-color: #696969; +} + +.TB_Expand, .TB_Collapse +{ + padding: 2px 2px 2px 2px; + border: #efefde 1px outset; +} + +.TB_Collapse +{ + width: 5px; +} + +.TB_Break +{ + height: 24px; /* IE needs the height to be set, otherwise no break */ +} + +/* + Toolbar Button +*/ + +.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled +{ + border: #efefde 1px solid; /* This is the default border */ + height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */ +} + +.TB_Button_On +{ + border: #316ac5 1px solid; + background-color: #c1d2ee; +} + +.TB_Button_On_Over, .TB_Button_Off_Over +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +.TB_Button_Off +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.TB_Button_Disabled +{ + filter: gray() alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.TB_Button_Padding +{ + visibility: hidden; + width: 3px; + height: 22px; +} + +.TB_Button_Image +{ + overflow: hidden; + width: 16px; + height: 16px; + margin: 3px; + background-repeat: no-repeat; +} + +.TB_Button_Image img +{ + position: relative; +} + +.TB_Button_Off .TB_Button_Text +{ + background-color: #efefde; /* Needed because of a bug on Clear Type */ +} + +.TB_ConnectionLine +{ + background-color: #ffffff; + height: 1px; + margin-left: 1px; /* ltr */ + margin-right: 1px; /* rtl */ +} + +.TB_Text +{ + height: 22px; +} + +.TB_Button_Off .TB_Text +{ + background-color: #efefde ; /* Needed because of a bug on ClearType */ +} + +.TB_Button_On_Over .TB_Text +{ + background-color: #dff1ff ; /* Needed because of a bug on ClearType */ +} + +/* + Menu +*/ + +.MN_Menu +{ + border: 1px solid #8f8f73; + padding: 2px; + background-color: #ffffff; + cursor: default; +} + +.MN_Menu, .MN_Menu .MN_Label +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.MN_Item_Padding +{ + visibility: hidden; + width: 3px; + height: 20px; +} + +.MN_Icon +{ + background-color: #e3e3c7; + text-align: center; + height: 20px; +} + +.MN_Label +{ + padding-left: 3px; + padding-right: 3px; +} + +.MN_Separator +{ + height: 3px; +} + +.MN_Separator_Line +{ + border-top: #b9b99d 1px solid; +} + +.MN_Item .MN_Icon IMG +{ + filter: alpha(opacity=70); + opacity: 0.70; +} + +.MN_Item_Over +{ + color: #ffffff; + background-color: #8f8f73; +} + +.MN_Item_Over .MN_Icon +{ + background-color: #737357; +} + +.MN_Item_Disabled IMG +{ + filter: gray() alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.MN_Item_Disabled .MN_Label +{ + color: #b7b7b7; +} + +.MN_Arrow +{ + padding-right: 3px; + padding-left: 3px; +} + +.MN_ConnectionLine +{ + background-color: #ffffff; +} + +.Menu .TB_Button_On, .Menu .TB_Button_On_Over +{ + border: #8f8f73 1px solid; + background-color: #ffffff; +} + +/* + ### Panel Styles +*/ + +.FCK_Panel +{ + border: #8f8f73 1px solid; + padding: 2px; + background-color: #ffffff; +} + +.FCK_Panel, .FCK_Panel TD +{ + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-size: 11px; +} + +/* + ### Special Combos +*/ + +.SC_Panel +{ + overflow: auto; + white-space: nowrap; + cursor: default; + border: 1px solid #8f8f73; + padding-left: 2px; + padding-right: 2px; +} + +.SC_Panel, .SC_Panel TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.SC_Item, .SC_ItemSelected +{ + margin-top: 2px; + margin-bottom: 2px; + background-position: left center; + padding-left: 11px; + padding-right: 3px; + padding-top: 2px; + padding-bottom: 2px; + text-overflow: ellipsis; + overflow: hidden; + background-repeat: no-repeat; + border: #dddddd 1px solid; +} + +.SC_Item *, .SC_ItemSelected * +{ + margin-top: 0px; + margin-bottom: 0px; +} + +.SC_ItemSelected +{ + border: #9a9afb 1px solid; + background-image: url(images/toolbar.arrowright.gif); +} + +.SC_ItemOver +{ + border: #316ac5 1px solid; +} + +.SC_Field +{ + border: #b7b7a6 1px solid; + cursor: default; +} + +.SC_FieldCaption +{ + overflow: visible; + padding-right: 5px; + padding-left: 5px; + opacity: 0.75; /* Safari, Opera and Mozilla */ + filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ + height: 23px; + background-color: #efefde; +} + +.SC_FieldLabel +{ + white-space: nowrap; + padding: 2px; + width: 100%; + cursor: default; + background-color: #ffffff; + text-overflow: ellipsis; + overflow: hidden; +} + +.SC_FieldButton +{ + background-position: center center; + background-image: url(images/toolbar.buttonarrow.gif); + border-left: #b7b7a6 1px solid; + width: 14px; + background-repeat: no-repeat; +} + +.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption, .SC_FieldDisabled .TB_ButtonType_Text +{ + opacity: 0.30; /* Safari, Opera and Mozilla */ + filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ +} + +.SC_FieldOver +{ + border: #316ac5 1px solid; +} + +.SC_FieldOver .SC_FieldButton +{ + border-left: #316ac5 1px solid; +} + +/* + ### Color Selector Panel +*/ + +.ColorBoxBorder +{ + border: #808080 1px solid; + position: static; +} + +.ColorBox +{ + font-size: 1px; + width: 10px; + position: static; + height: 10px; +} + +.ColorDeselected, .ColorSelected +{ + cursor: default; +} + +.ColorDeselected +{ + border: #ffffff 1px solid; + padding: 2px; + float: left; +} + +.ColorSelected +{ + border: #330066 1px solid; + padding: 2px; + float: left; + background-color: #c4cdd6; +} Index: lams_central/web/fckeditor/editor/skins/default/fck_strip.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/Attic/fck_strip.gif,v diff -u -r1.2 -r1.3 Binary files differ Index: lams_central/web/fckeditor/editor/skins/default/images/dialog.sides.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/images/Attic/dialog.sides.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/default/images/dialog.sides.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/images/Attic/dialog.sides.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/default/images/dialog.sides.rtl.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/images/Attic/dialog.sides.rtl.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/default/images/sprites.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/images/Attic/sprites.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/default/images/sprites.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/default/images/Attic/sprites.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/fck_dialog.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/Attic/fck_dialog.css,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/skins/office2003/fck_dialog.css 4 Jan 2008 07:41:06 -0000 1.4 +++ lams_central/web/fckeditor/editor/skins/office2003/fck_dialog.css 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,140 +1,402 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the dialog boxes. - */ - -body -{ - margin: 0px; - padding: 10px; - background-color: #f7f8fd; -} - -body, td, input, select, textarea -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; -} - -body, .BackColor -{ - background-color: #f7f8fd; -} - -.PopupBody -{ - margin: 0px; - padding: 0px; -} - -.PopupTitle -{ - font-weight: bold; - font-size: 14pt; - color: #0e3460; - background-color: #8cb2fd; - padding: 3px 10px 3px 10px; -} - -.PopupButtons -{ - border-top: #466ca6 1px solid; - background-color: #8cb2fd; - padding: 7px 10px 7px 10px; -} - -.Button -{ - border: #1c3460 1px solid; - color: #000a28; - background-color: #7096d3; -} - -#btnOk -{ - width: 100px; -} - -.DarkBackground -{ - background-color: #d7d79f; -} - -.LightBackground -{ - background-color: #ffffbe; -} - -.PopupTitleBorder -{ - border-bottom: #d5d59d 1px solid; -} - -.PopupTabArea -{ - color: #0e3460; - background-color: #8cb2fd; -} - -.PopupTabEmptyArea -{ - padding-left: 10px ; - border-bottom: #466ca6 1px solid; -} - -.PopupTab, .PopupTabSelected -{ - border-right: #466ca6 1px solid; - border-top: #466ca6 1px solid; - border-left: #466ca6 1px solid; - padding: 3px 5px 3px 5px; - color: #0e3460; -} - -.PopupTab -{ - margin-top: 1px; - border-bottom: #466ca6 1px solid; - cursor: pointer; - cursor: hand; -} - -.PopupTabSelected -{ - font-weight:bold; - cursor: default; - padding-top: 4px; - border-bottom: #f7f8fd 1px solid; - background-color: #f7f8fd; -} - -.PopupSelectionBox -{ - border: #1e90ff 1px solid !important; - background-color: #add8e6 !important; - cursor: pointer; - cursor: hand; -} - -#tdBrowse -{ - vertical-align: bottom; -} \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the dialog boxes. + */ + +html, body +{ + background-color: transparent; + margin: 0px; + padding: 0px; +} + +body +{ + padding: 10px; +} + +body, td, input, select, textarea +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +body, .BackColor +{ + background-color: #f7f8fd; +} + +.PopupBody +{ + height: 100%; + width: 100%; + overflow: hidden; + background-color: transparent; + padding: 0px; +} + +#header +{ + cursor: move; +} + +.PopupTitle +{ + font-weight: bold; + font-size: 14pt; + color: #0e3460; + background-color: #8cb2fd; + padding: 3px 10px 3px 10px; +} + +.PopupButtons +{ + position: absolute; + right: 0px; + left: 0px; + bottom: 0px; + border-top: #466ca6 1px solid; + background-color: #8cb2fd; + padding: 7px 10px 7px 10px; +} + +.Button +{ + border: #1c3460 1px solid; + color: #000a28; + background-color: #7096d3; +} + +#btnOk +{ + width: 100px; +} + +.DarkBackground +{ + background-color: #eaf2f8; +} + +.LightBackground +{ + background-color: #ffffbe; +} + +.PopupTitleBorder +{ + border-bottom: #d5d59d 1px solid; +} + +.PopupTabArea +{ + color: #0e3460; + background-color: #8cb2fd; +} + +.PopupTabEmptyArea +{ + padding-left: 10px ; + border-bottom: #466ca6 1px solid; +} + +.PopupTab, .PopupTabSelected +{ + border-right: #466ca6 1px solid; + border-top: #466ca6 1px solid; + border-left: #466ca6 1px solid; + padding: 3px 5px 3px 5px; + color: #0e3460; +} + +.PopupTab +{ + margin-top: 1px; + border-bottom: #466ca6 1px solid; + cursor: pointer; + cursor: hand; +} + +.PopupTabSelected +{ + font-weight: bold; + cursor: default; + padding-top: 4px; + border-bottom: #f7f8fd 1px solid; + background-color: #f7f8fd; +} + +.PopupSelectionBox +{ + border: #1e90ff 1px solid !important; + background-color: #add8e6 !important; + cursor: pointer; + cursor: hand; +} + +#tdBrowse +{ + vertical-align: bottom; +} + +/** + * Dialog frame related styles. + */ + +.contents +{ + position: absolute; + top: 2px; + left: 16px; + right: 16px; + bottom: 20px; + background-color: #f7f8fD; + overflow: hidden; + z-index: 1; +} + +.tl, .tr, .tc, .bl, .br, .bc +{ + position: absolute; + background-image: url(images/sprites.png); + background-repeat: no-repeat; +} + +* html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc +{ + background-image: url(images/sprites.gif); +} + +.ml, .mr +{ + position: absolute; + background-image: url(images/dialog.sides.png); + background-repeat: repeat-y; +} + +* html .ml, * html .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.rtl .ml, .rtl .mr +{ + position: absolute; + background-image: url(images/dialog.sides.rtl.png); + background-repeat: repeat-y; +} + +* html .rtl .ml, * html .rtl .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.tl +{ + top: 0px; + left: 0px; + width: 16px; + height: 16px; + background-position: -16px -16px; +} + +.rtl .tl +{ + background-position: -16px -397px; +} + +.tr +{ + top: 0px; + right: 0px; + width: 16px; + height: 16px; + background-position: -16px -76px; +} + +.rtl .tr +{ + background-position: -16px -457px; +} + +.tc +{ + top: 0px; + right: 16px; + left: 16px; + height: 16px; + background-position: 0px -136px; + background-repeat: repeat-x; +} + +.ml +{ + top: 16px; + left: 0px; + width: 16px; + bottom: 51px; + background-position: 0px 0px; +} + +.mr +{ + top: 16px; + right: 0px; + width: 16px; + bottom: 51px; + background-position: -16px 0px; +} + +.bl +{ + bottom: 0px; + left: 0px; + width: 30px; + height: 51px; + background-position: -16px -196px; +} + +.rtl .bl +{ + background-position: -16px -517px; +} + +.br +{ + bottom: 0px; + right: 0px; + width: 30px; + height: 51px; + background-position: -16px -263px; +} + +.rtl .br +{ + background-position: -16px -584px; +} + +.bc +{ + bottom: 0px; + right: 30px; + left: 30px; + height: 51px; + background-position: 0px -330px; + background-repeat: repeat-x; +} + +/* For IE6. Do not change it. */ +* html .blocker +{ + position: absolute; + width: 100%; + height: 100%; + z-index: 12; + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); +} + +/* The layer used to cover the dialog when opening a child dialog. */ +.cover +{ + position: absolute; + top: 0px; + left: 14px; + right: 14px; + bottom: 18px; + z-index: 11; +} + +#closeButton +{ + position: absolute; + right: 0px; + top: 0px; + margin-top: 5px; + margin-right: 10px; + width: 20px; + height: 20px; + cursor: pointer; + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: -16px -651px; +} + +* html #closeButton +{ + cursor: hand; + background-image: url(images/sprites.gif); +} + +.rtl #closeButton +{ + right: auto; + left: 10px; + margin-right: 0px; +} + +#closeButton:hover +{ + background-position: -16px -687px; +} + +#throbberBlock +{ + z-index: 10; +} + +#throbberBlock div +{ + float: left; + width: 8px; + height: 9px; + margin-left: 2px; + margin-right: 2px; + font-size: 1px; /* IE6 */ +} + +/* + Color Gradient Generator: + http://www.herethere.net/~samson/php/color_gradient/?cbegin=0E3460&cend=8cb2fd&steps=4 +*/ + +.throbber_1 +{ + background-color: #0E3460; +} + +.throbber_2 +{ + background-color: #2D5387; +} + +.throbber_3 +{ + background-color: #4D73AE; +} + +.throbber_4 +{ + background-color: #6C92D5; +} + +.throbber_5 +{ + background-color: #8CB2FD; +} Index: lams_central/web/fckeditor/editor/skins/office2003/fck_dialog_ie6.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/Attic/fck_dialog_ie6.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/skins/office2003/fck_dialog_ie6.js 6 Feb 2009 02:42:24 -0000 1.1 @@ -0,0 +1,110 @@ +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + */ + +(function() +{ + // IE6 doens't handle absolute positioning properly (it is always in quirks + // mode). This function fixes the sizes and positions of many elements that + // compose the skin (this is skin specific). + var fixSizes = window.DoResizeFixes = function() + { + var fckDlg = window.document.body ; + + for ( var i = 0 ; i < fckDlg.childNodes.length ; i++ ) + { + var child = fckDlg.childNodes[i] ; + switch ( child.className ) + { + case 'contents' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + break ; + + case 'blocker' : + case 'cover' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + break ; + + case 'tr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + break ; + + case 'tc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + break ; + + case 'ml' : + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'mr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'bl' : + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'br' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'bc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + } + } + } + + var closeButtonOver = function() + { + this.style.backgroundPosition = '-16px -687px' ; + } ; + + var closeButtonOut = function() + { + this.style.backgroundPosition = '-16px -651px' ; + } ; + + var fixCloseButton = function() + { + var closeButton = document.getElementById ( 'closeButton' ) ; + + closeButton.onmouseover = closeButtonOver ; + closeButton.onmouseout = closeButtonOut ; + } + + var onLoad = function() + { + fixSizes() ; + fixCloseButton() ; + + window.attachEvent( 'onresize', fixSizes ) ; + window.detachEvent( 'onload', onLoad ) ; + } + + window.attachEvent( 'onload', onLoad ) ; + +})() ; Index: lams_central/web/fckeditor/editor/skins/office2003/fck_editor.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/Attic/fck_editor.css,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/skins/office2003/fck_editor.css 4 Jan 2008 07:41:07 -0000 1.5 +++ lams_central/web/fckeditor/editor/skins/office2003/fck_editor.css 6 Feb 2009 02:42:24 -0000 1.6 @@ -1,476 +1,476 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the editor IFRAME and Toolbar. - */ - -/* - ### Basic Editor IFRAME Styles. -*/ - -body -{ - padding: 1px; - margin: 0; - background-color: #ffffff; -} - -#xEditingArea -{ - border: #696969 1px solid; -} - -.SourceField -{ - padding: 5px; - margin: 0px; - font-family: Monospace; -} - -/* - Toolbar -*/ - -.TB_ToolbarSet, .TB_Expand, .TB_Collapse -{ - cursor: default; - background-color: #f7f8fd; -} - -.TB_ToolbarSet -{ - border-top: #f7f8fd 1px outset; - border-bottom: #f7f8fd 1px outset; -} - -.TB_ToolbarSet TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.TB_Toolbar -{ - background-color: #d6dff7; - background-image: url(images/toolbar.bg.gif); - background-repeat: repeat-x; - display: inline-table; -} - -.TB_Separator -{ - width: 1px; - height: 16px; - margin: 2px; - background-color: #B2CBFF; -} - -.TB_Start -{ - background-image: url(images/toolbar.start.gif); - background-repeat: no-repeat; - background-position: center center; - margin: 0px; - width: 7px; - height: 24px; -} - -.TB_End -{ - background-image: url(images/toolbar.end.gif); - background-repeat: no-repeat; - background-position: center left; - height: 24px; - width: 4px; -} - -.TB_ExpandImg -{ - background-image: url(images/toolbar.expand.gif); - background-repeat: no-repeat; -} - -.TB_CollapseImg -{ - background-image: url(images/toolbar.collapse.gif); - background-repeat: no-repeat; -} - -.TB_SideBorder -{ - background-color: #696969; -} - -.TB_Expand, .TB_Collapse -{ - padding: 2px 2px 2px 2px; - border: #f7f8fd 1px outset; -} - -.TB_Collapse -{ - width: 5px; -} - -.TB_Break -{ - height: 24px; /* IE needs the height to be set, otherwise no break */ -} - -/* - Toolbar Button -*/ - -.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled -{ - margin: 1px; - height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */ -} - -.TB_Button_On -{ - margin: 0px; - border: #316ac5 1px solid; - background-color: #c1d2ee; -} - -.TB_Button_On_Over, .TB_Button_Off_Over -{ - margin: 0px ; - border: #316ac5 1px solid; - background-color: #dff1ff; -} - -.TB_Button_Off -{ - filter: alpha(opacity=70); /* IE */ - opacity: 0.70; /* Safari, Opera and Mozilla */ -} - -.TB_Button_Disabled -{ - filter: gray() alpha(opacity=30); /* IE */ - opacity: 0.30; /* Safari, Opera and Mozilla */ -} - -.TB_Button_Padding -{ - visibility: hidden; - width: 3px; - height: 22px; -} - -.TB_Button_Image -{ - overflow: hidden; - width: 16px; - height: 16px; - margin: 3px; - background-repeat: no-repeat; -} - -.TB_Button_Image img -{ - position: relative; -} - -.TB_Button_Off .TB_Button_Text -{ - background-color: #d6dff7; /* Needed because of a bug on ClearType */ - background-image: url(images/toolbar.bg.gif); - background-repeat: repeat-x; -} - -.TB_ConnectionLine -{ - background-color: #f7f8fd; - height: 1px; - margin-left: 1px; /* ltr */ - margin-right: 1px; /* rtl */ -} - -.TB_Button_Off .TB_Text -{ - background-color: #d6dff7; /* Needed because of a bug on ClearType */ - background-image: url(images/toolbar.bg.gif); - background-repeat: repeat-x; -} - -.TB_Button_On_Over .TB_Text -{ - background-color: #dff1ff ; /* Needed because of a bug on ClearType */ -} - -/* - Menu -*/ - -.MN_Menu -{ - border: 1px solid #8f8f73; - padding: 2px; - background-color: #f7f8fd; - cursor: default; -} - -.MN_Menu, .MN_Menu .MN_Label -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.MN_Item_Padding -{ - visibility: hidden; - width: 3px; - height: 20px; -} - -.MN_Icon -{ - background-color: #d6dff7; - text-align: center; - height: 20px; -} - -.MN_Label -{ - padding-left: 3px; - padding-right: 3px; -} - -.MN_Separator -{ - height: 3px; -} - -.MN_Separator_Line -{ - border-top: #b9b99d 1px solid; -} - -.MN_Item .MN_Icon IMG -{ - filter: alpha(opacity=70); - opacity: 0.70; -} - -.MN_Item_Over -{ - color: #ffffff; - background-color: #7096FA; -} - -.MN_Item_Over .MN_Icon -{ - background-color: #466ca6; -} - -.MN_Item_Disabled IMG -{ - filter: gray() alpha(opacity=30); /* IE */ - opacity: 0.30; /* Safari, Opera and Mozilla */ -} - -.MN_Item_Disabled .MN_Label -{ - color: #b7b7b7; -} - -.MN_Arrow -{ - padding-right: 3px; - padding-left: 3px; -} - -.MN_ConnectionLine -{ - background-color: #f7f8fd; -} - -.Menu .TB_Button_On, .Menu .TB_Button_On_Over -{ - border: #8f8f73 1px solid; - background-color: #f7f8fd; -} - -/* - ### Panel Styles -*/ - -.FCK_Panel -{ - border: #8f8f73 1px solid; - padding: 2px; - background-color: #f7f8fd; -} - -.FCK_Panel, .FCK_Panel TD -{ - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; - font-size: 11px; -} - -/* - ### Special Combos -*/ - -.SC_Panel -{ - overflow: auto; - white-space: nowrap; - cursor: default; - border: 1px solid #8f8f73; - padding-left: 2px; - padding-right: 2px; -} - -.SC_Panel, .SC_Panel TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.SC_Item, .SC_ItemSelected -{ - margin-top: 2px; - margin-bottom: 2px; - background-position: left center; - padding-left: 11px; - padding-right: 3px; - padding-top: 2px; - padding-bottom: 2px; - text-overflow: ellipsis; - overflow: hidden; - background-repeat: no-repeat; - border: #dddddd 1px solid; -} - -.SC_Item *, .SC_ItemSelected * -{ - margin-top: 0px; - margin-bottom: 0px; -} - -.SC_ItemSelected -{ - border: #9a9afb 1px solid; - background-image: url(images/toolbar.arrowright.gif); -} - -.SC_ItemOver -{ - border: #316ac5 1px solid; -} - -.SC_Field -{ - margin-top: 2px ; - border: #b7b7a6 1px solid; - cursor: default; -} - -.SC_FieldCaption -{ - overflow: visible; - padding-right: 5px; - padding-left: 5px; - opacity: 0.75; /* Safari, Opera and Mozilla */ - filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ - height: 23px; - background-color: #d6dff7; /* Needed because of a bug on ClearType */ - background-image: url(images/toolbar.bg.gif); - background-repeat: repeat-x; -/* background-color: inherit; Maybe this is needed wait to check */ -} - -.SC_FieldLabel -{ - white-space: nowrap; - padding: 2px; - width: 100%; - cursor: default; - background-color: #ffffff; - text-overflow: ellipsis; - overflow: hidden; -} - -.SC_FieldButton -{ - background-position: center center; - background-image: url(images/toolbar.buttonarrow.gif); - border-left: #b7b7a6 1px solid; - width: 14px; - background-repeat: no-repeat; -} - -.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption -{ - opacity: 0.30; /* Safari, Opera and Mozilla */ - filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ -} - -.SC_FieldOver -{ - border: #316ac5 1px solid; -} - -.SC_FieldOver .SC_FieldButton -{ - border-left: #316ac5 1px solid; -} - -/* - ### Color Selector Panel -*/ - -.ColorBoxBorder -{ - border: #808080 1px solid; - position: static; -} - -.ColorBox -{ - font-size: 1px; - width: 10px; - position: static; - height: 10px; -} - -.ColorDeselected, .ColorSelected -{ - cursor: default; -} - -.ColorDeselected -{ - border: #ffffff 1px solid; - padding: 2px; - float: left; -} - -.ColorSelected -{ - border: #330066 1px solid; - padding: 2px; - float: left; - background-color: #c4cdd6; -} +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the editor IFRAME and Toolbar. + */ + +/* + ### Basic Editor IFRAME Styles. +*/ + +body +{ + padding: 1px; + margin: 0; + background-color: #ffffff; +} + +#xEditingArea +{ + border: #696969 1px solid; +} + +.SourceField +{ + padding: 5px; + margin: 0px; + font-family: Monospace; +} + +/* + Toolbar +*/ + +.TB_ToolbarSet, .TB_Expand, .TB_Collapse +{ + cursor: default; + background-color: #f7f8fd; +} + +.TB_ToolbarSet +{ + border-top: #f7f8fd 1px outset; + border-bottom: #f7f8fd 1px outset; +} + +.TB_ToolbarSet TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.TB_Toolbar +{ + background-color: #d6dff7; + background-image: url(images/toolbar.bg.gif); + background-repeat: repeat-x; + display: inline-table; +} + +.TB_Separator +{ + width: 1px; + height: 16px; + margin: 2px; + background-color: #B2CBFF; +} + +.TB_Start +{ + background-image: url(images/toolbar.start.gif); + background-repeat: no-repeat; + background-position: center center; + margin: 0px; + width: 7px; + height: 24px; +} + +.TB_End +{ + background-image: url(images/toolbar.end.gif); + background-repeat: no-repeat; + background-position: center left; + height: 24px; + width: 4px; +} + +.TB_ExpandImg +{ + background-image: url(images/toolbar.expand.gif); + background-repeat: no-repeat; +} + +.TB_CollapseImg +{ + background-image: url(images/toolbar.collapse.gif); + background-repeat: no-repeat; +} + +.TB_SideBorder +{ + background-color: #696969; +} + +.TB_Expand, .TB_Collapse +{ + padding: 2px 2px 2px 2px; + border: #f7f8fd 1px outset; +} + +.TB_Collapse +{ + width: 5px; +} + +.TB_Break +{ + height: 24px; /* IE needs the height to be set, otherwise no break */ +} + +/* + Toolbar Button +*/ + +.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled +{ + margin: 1px; + height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */ +} + +.TB_Button_On +{ + margin: 0px; + border: #316ac5 1px solid; + background-color: #c1d2ee; +} + +.TB_Button_On_Over, .TB_Button_Off_Over +{ + margin: 0px ; + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +.TB_Button_Off +{ + filter: alpha(opacity=70); /* IE */ + opacity: 0.70; /* Safari, Opera and Mozilla */ +} + +.TB_Button_Disabled +{ + filter: gray() alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.TB_Button_Padding +{ + visibility: hidden; + width: 3px; + height: 22px; +} + +.TB_Button_Image +{ + overflow: hidden; + width: 16px; + height: 16px; + margin: 3px; + background-repeat: no-repeat; +} + +.TB_Button_Image img +{ + position: relative; +} + +.TB_Button_Off .TB_Button_Text +{ + background-color: #d6dff7; /* Needed because of a bug on ClearType */ + background-image: url(images/toolbar.bg.gif); + background-repeat: repeat-x; +} + +.TB_ConnectionLine +{ + background-color: #f7f8fd; + height: 1px; + margin-left: 1px; /* ltr */ + margin-right: 1px; /* rtl */ +} + +.TB_Button_Off .TB_Text +{ + background-color: #d6dff7; /* Needed because of a bug on ClearType */ + background-image: url(images/toolbar.bg.gif); + background-repeat: repeat-x; +} + +.TB_Button_On_Over .TB_Text +{ + background-color: #dff1ff ; /* Needed because of a bug on ClearType */ +} + +/* + Menu +*/ + +.MN_Menu +{ + border: 1px solid #8f8f73; + padding: 2px; + background-color: #f7f8fd; + cursor: default; +} + +.MN_Menu, .MN_Menu .MN_Label +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.MN_Item_Padding +{ + visibility: hidden; + width: 3px; + height: 20px; +} + +.MN_Icon +{ + background-color: #d6dff7; + text-align: center; + height: 20px; +} + +.MN_Label +{ + padding-left: 3px; + padding-right: 3px; +} + +.MN_Separator +{ + height: 3px; +} + +.MN_Separator_Line +{ + border-top: #b9b99d 1px solid; +} + +.MN_Item .MN_Icon IMG +{ + filter: alpha(opacity=70); + opacity: 0.70; +} + +.MN_Item_Over +{ + color: #ffffff; + background-color: #7096FA; +} + +.MN_Item_Over .MN_Icon +{ + background-color: #466ca6; +} + +.MN_Item_Disabled IMG +{ + filter: gray() alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.MN_Item_Disabled .MN_Label +{ + color: #b7b7b7; +} + +.MN_Arrow +{ + padding-right: 3px; + padding-left: 3px; +} + +.MN_ConnectionLine +{ + background-color: #f7f8fd; +} + +.Menu .TB_Button_On, .Menu .TB_Button_On_Over +{ + border: #8f8f73 1px solid; + background-color: #f7f8fd; +} + +/* + ### Panel Styles +*/ + +.FCK_Panel +{ + border: #8f8f73 1px solid; + padding: 2px; + background-color: #f7f8fd; +} + +.FCK_Panel, .FCK_Panel TD +{ + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-size: 11px; +} + +/* + ### Special Combos +*/ + +.SC_Panel +{ + overflow: auto; + white-space: nowrap; + cursor: default; + border: 1px solid #8f8f73; + padding-left: 2px; + padding-right: 2px; +} + +.SC_Panel, .SC_Panel TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.SC_Item, .SC_ItemSelected +{ + margin-top: 2px; + margin-bottom: 2px; + background-position: left center; + padding-left: 11px; + padding-right: 3px; + padding-top: 2px; + padding-bottom: 2px; + text-overflow: ellipsis; + overflow: hidden; + background-repeat: no-repeat; + border: #dddddd 1px solid; +} + +.SC_Item *, .SC_ItemSelected * +{ + margin-top: 0px; + margin-bottom: 0px; +} + +.SC_ItemSelected +{ + border: #9a9afb 1px solid; + background-image: url(images/toolbar.arrowright.gif); +} + +.SC_ItemOver +{ + border: #316ac5 1px solid; +} + +.SC_Field +{ + margin-top: 2px ; + border: #b7b7a6 1px solid; + cursor: default; +} + +.SC_FieldCaption +{ + overflow: visible; + padding-right: 5px; + padding-left: 5px; + opacity: 0.75; /* Safari, Opera and Mozilla */ + filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ + height: 23px; + background-color: #d6dff7; /* Needed because of a bug on ClearType */ + background-image: url(images/toolbar.bg.gif); + background-repeat: repeat-x; +/* background-color: inherit; Maybe this is needed wait to check */ +} + +.SC_FieldLabel +{ + white-space: nowrap; + padding: 2px; + width: 100%; + cursor: default; + background-color: #ffffff; + text-overflow: ellipsis; + overflow: hidden; +} + +.SC_FieldButton +{ + background-position: center center; + background-image: url(images/toolbar.buttonarrow.gif); + border-left: #b7b7a6 1px solid; + width: 14px; + background-repeat: no-repeat; +} + +.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption, .SC_FieldDisabled .TB_ButtonType_Text +{ + opacity: 0.30; /* Safari, Opera and Mozilla */ + filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ +} + +.SC_FieldOver +{ + border: #316ac5 1px solid; +} + +.SC_FieldOver .SC_FieldButton +{ + border-left: #316ac5 1px solid; +} + +/* + ### Color Selector Panel +*/ + +.ColorBoxBorder +{ + border: #808080 1px solid; + position: static; +} + +.ColorBox +{ + font-size: 1px; + width: 10px; + position: static; + height: 10px; +} + +.ColorDeselected, .ColorSelected +{ + cursor: default; +} + +.ColorDeselected +{ + border: #ffffff 1px solid; + padding: 2px; + float: left; +} + +.ColorSelected +{ + border: #330066 1px solid; + padding: 2px; + float: left; + background-color: #c4cdd6; +} Index: lams_central/web/fckeditor/editor/skins/office2003/fck_strip.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/Attic/fck_strip.gif,v diff -u -r1.2 -r1.3 Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/images/dialog.sides.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/images/Attic/dialog.sides.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/images/dialog.sides.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/images/Attic/dialog.sides.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/images/dialog.sides.rtl.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/images/Attic/dialog.sides.rtl.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/images/sprites.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/images/Attic/sprites.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/office2003/images/sprites.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/office2003/images/Attic/sprites.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/fck_dialog.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/Attic/fck_dialog.css,v diff -u -r1.4 -r1.5 --- lams_central/web/fckeditor/editor/skins/silver/fck_dialog.css 4 Jan 2008 07:41:07 -0000 1.4 +++ lams_central/web/fckeditor/editor/skins/silver/fck_dialog.css 6 Feb 2009 02:42:24 -0000 1.5 @@ -1,143 +1,402 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the dialog boxes. - */ - -body -{ - margin: 0px; - padding: 10px; - background-color: #f7f7f7; -} - -body, td, input, select, textarea -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; -} - -body, .BackColor -{ - background-color: #f7f7f7; -} - -.PopupBody -{ - margin: 0px; - padding: 0px; -} - -.PopupTitle -{ - padding-right: 10px; - padding-left: 10px; - font-weight: bold; - font-size: 14pt; - padding-bottom: 3px; - color: #504845; - padding-top: 3px; - background-color: #dedede; -} - -.PopupButtons -{ - border-top: #cec6b5 1px solid; - background-color: #DEDEDE; - padding: 7px 10px 7px 10px; -} - -.Button -{ - border: #7a7261 1px solid; - color: #504845; - background-color: #cec6b5; -} - -#btnOk -{ - width: 100px; -} - -.DarkBackground -{ - background-color: #d7d79f; -} - -.LightBackground -{ - background-color: #ffffbe; -} - -.PopupTitleBorder -{ - border-bottom: #cec6b5 1px solid; -} - -.PopupTabArea -{ - color: #504845; - background-color: #DEDEDE; -} - -.PopupTabEmptyArea -{ - padding-left: 10px ; - border-bottom: #cec6b5 1px solid; -} - -.PopupTab, .PopupTabSelected -{ - border-right: #cec6b5 1px solid; - border-top: #cec6b5 1px solid; - border-left: #cec6b5 1px solid; - padding: 3px 5px 3px 5px; - color: #504845; -} - -.PopupTab -{ - margin-top: 1px; - border-bottom: #cec6b5 1px solid; - cursor: pointer; - cursor: hand; -} - -.PopupTabSelected -{ - font-weight:bold; - cursor: default; - padding-top: 4px; - border-bottom: #f1f1e3 1px solid; - background-color: #f7f7f7; -} - -.PopupSelectionBox -{ - border: #a9a9a9 1px solid !important; - background-color: #dcdcdc !important; - cursor: pointer; - cursor: hand; -} - -#tdBrowse -{ - vertical-align: bottom; -} \ No newline at end of file +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the dialog boxes. + */ + +html, body +{ + background-color: transparent; + margin: 0px; + padding: 0px; +} + +body +{ + padding: 10px; +} + +body, td, input, select, textarea +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; +} + +body, .BackColor +{ + background-color: #f7f7f7; +} + +.PopupBody +{ + height: 100%; + width: 100%; + overflow: hidden; + background-color: transparent; + padding: 0px; +} + +#header +{ + cursor: move; +} + +.PopupTitle +{ + font-weight: bold; + font-size: 14pt; + color: #504845; + background-color: #dedede; + padding: 3px 10px 3px 10px; +} + +.PopupButtons +{ + position: absolute; + right: 0px; + left: 0px; + bottom: 0px; + border-top: #cec6b5 1px solid; + background-color: #DEDEDE; + padding: 7px 10px 7px 10px; +} + +.Button +{ + border: #7a7261 1px solid; + color: #504845; + background-color: #cec6b5; +} + +#btnOk +{ + width: 100px; +} + +.DarkBackground +{ + background-color: #f2f2f2; +} + +.LightBackground +{ + background-color: #ffffbe; +} + +.PopupTitleBorder +{ + border-bottom: #cec6b5 1px solid; +} + +.PopupTabArea +{ + color: #504845; + background-color: #DEDEDE; +} + +.PopupTabEmptyArea +{ + padding-left: 10px ; + border-bottom: #cec6b5 1px solid; +} + +.PopupTab, .PopupTabSelected +{ + border-right: #cec6b5 1px solid; + border-top: #cec6b5 1px solid; + border-left: #cec6b5 1px solid; + padding: 3px 5px 3px 5px; + color: #504845; +} + +.PopupTab +{ + margin-top: 1px; + border-bottom: #cec6b5 1px solid; + cursor: pointer; + cursor: hand; +} + +.PopupTabSelected +{ + font-weight:bold; + cursor: default; + padding-top: 4px; + border-bottom: #f1f1e3 1px solid; + background-color: #f7f7f7; +} + +.PopupSelectionBox +{ + border: #a9a9a9 1px solid !important; + background-color: #dcdcdc !important; + cursor: pointer; + cursor: hand; +} + +#tdBrowse +{ + vertical-align: bottom; +} + +/** + * Dialog frame related styles. + */ + +.contents +{ + position: absolute; + top: 2px; + left: 16px; + right: 16px; + bottom: 20px; + background-color: #f7f7f7; + overflow: hidden; + z-index: 1; +} + +.tl, .tr, .tc, .bl, .br, .bc +{ + position: absolute; + background-image: url(images/sprites.png); + background-repeat: no-repeat; +} + +* html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc +{ + background-image: url(images/sprites.gif); +} + +.ml, .mr +{ + position: absolute; + background-image: url(images/dialog.sides.png); + background-repeat: repeat-y; +} + +* html .ml, * html .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.rtl .ml, .rtl .mr +{ + position: absolute; + background-image: url(images/dialog.sides.rtl.png); + background-repeat: repeat-y; +} + +* html .rtl .ml, * html .rtl .mr +{ + background-image: url(images/dialog.sides.gif); +} + +.tl +{ + top: 0px; + left: 0px; + width: 16px; + height: 16px; + background-position: -16px -16px; +} + +.rtl .tl +{ + background-position: -16px -397px; +} + +.tr +{ + top: 0px; + right: 0px; + width: 16px; + height: 16px; + background-position: -16px -76px; +} + +.rtl .tr +{ + background-position: -16px -457px; +} + +.tc +{ + top: 0px; + right: 16px; + left: 16px; + height: 16px; + background-position: 0px -136px; + background-repeat: repeat-x; +} + +.ml +{ + top: 16px; + left: 0px; + width: 16px; + bottom: 51px; + background-position: 0px 0px; +} + +.mr +{ + top: 16px; + right: 0px; + width: 16px; + bottom: 51px; + background-position: -16px 0px; +} + +.bl +{ + bottom: 0px; + left: 0px; + width: 30px; + height: 51px; + background-position: -16px -196px; +} + +.rtl .bl +{ + background-position: -16px -517px; +} + +.br +{ + bottom: 0px; + right: 0px; + width: 30px; + height: 51px; + background-position: -16px -263px; +} + +.rtl .br +{ + background-position: -16px -584px; +} + +.bc +{ + bottom: 0px; + right: 30px; + left: 30px; + height: 51px; + background-position: 0px -330px; + background-repeat: repeat-x; +} + +/* For IE6. Do not change it. */ +* html .blocker +{ + position: absolute; + width: 100%; + height: 100%; + z-index: 12; + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); +} + +/* The layer used to cover the dialog when opening a child dialog. */ +.cover +{ + position: absolute; + top: 0px; + left: 14px; + right: 14px; + bottom: 18px; + z-index: 11; +} + +#closeButton +{ + position: absolute; + right: 0px; + top: 0px; + margin-top: 5px; + margin-right: 10px; + width: 20px; + height: 20px; + cursor: pointer; + background-image: url(images/sprites.png); + background-repeat: no-repeat; + background-position: -16px -651px; +} + +* html #closeButton +{ + cursor: hand; + background-image: url(images/sprites.gif); +} + +.rtl #closeButton +{ + right: auto; + left: 10px; + margin-right: 0px; +} + +#closeButton:hover +{ + background-position: -16px -687px; +} + +#throbberBlock +{ + z-index: 10; +} + +#throbberBlock div +{ + float: left; + width: 8px; + height: 9px; + margin-left: 2px; + margin-right: 2px; + font-size: 1px; /* IE6 */ +} + +/* + Color Gradient Generator: + http://www.herethere.net/~samson/php/color_gradient/?cbegin=504845&cend=DEDEDE&steps=4 +*/ + +.throbber_1 +{ + background-color: #504845; +} + +.throbber_2 +{ + background-color: #736D6B; +} + +.throbber_3 +{ + background-color: #979391; +} + +.throbber_4 +{ + background-color: #BAB8B7; +} + +.throbber_5 +{ + background-color: #DEDEDE; +} Index: lams_central/web/fckeditor/editor/skins/silver/fck_dialog_ie6.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/Attic/fck_dialog_ie6.js,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/skins/silver/fck_dialog_ie6.js 6 Feb 2009 02:42:24 -0000 1.1 @@ -0,0 +1,110 @@ +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + */ + +(function() +{ + // IE6 doens't handle absolute positioning properly (it is always in quirks + // mode). This function fixes the sizes and positions of many elements that + // compose the skin (this is skin specific). + var fixSizes = window.DoResizeFixes = function() + { + var fckDlg = window.document.body ; + + for ( var i = 0 ; i < fckDlg.childNodes.length ; i++ ) + { + var child = fckDlg.childNodes[i] ; + switch ( child.className ) + { + case 'contents' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top + break ; + + case 'blocker' : + case 'cover' : + child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 + child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 + break ; + + case 'tr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + break ; + + case 'tc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; + break ; + + case 'ml' : + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'mr' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; + child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; + break ; + + case 'bl' : + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'br' : + child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + + case 'bc' : + child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; + child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; + break ; + } + } + } + + var closeButtonOver = function() + { + this.style.backgroundPosition = '-16px -687px' ; + } ; + + var closeButtonOut = function() + { + this.style.backgroundPosition = '-16px -651px' ; + } ; + + var fixCloseButton = function() + { + var closeButton = document.getElementById ( 'closeButton' ) ; + + closeButton.onmouseover = closeButtonOver ; + closeButton.onmouseout = closeButtonOut ; + } + + var onLoad = function() + { + fixSizes() ; + fixCloseButton() ; + + window.attachEvent( 'onresize', fixSizes ) ; + window.detachEvent( 'onload', onLoad ) ; + } + + window.attachEvent( 'onload', onLoad ) ; + +})() ; Index: lams_central/web/fckeditor/editor/skins/silver/fck_editor.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/Attic/fck_editor.css,v diff -u -r1.5 -r1.6 --- lams_central/web/fckeditor/editor/skins/silver/fck_editor.css 4 Jan 2008 07:41:07 -0000 1.5 +++ lams_central/web/fckeditor/editor/skins/silver/fck_editor.css 6 Feb 2009 02:42:24 -0000 1.6 @@ -1,473 +1,473 @@ -/* - * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben - * - * == BEGIN LICENSE == - * - * Licensed under the terms of any of the following licenses at your - * choice: - * - * - GNU General Public License Version 2 or later (the "GPL") - * http://www.gnu.org/licenses/gpl.html - * - * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") - * http://www.gnu.org/licenses/lgpl.html - * - * - Mozilla Public License Version 1.1 or later (the "MPL") - * http://www.mozilla.org/MPL/MPL-1.1.html - * - * == END LICENSE == - * - * Styles used by the editor IFRAME and Toolbar. - */ - -/* - ### Basic Editor IFRAME Styles. -*/ - -body -{ - padding: 1px; - margin: 0; - background-color: #ffffff; -} - -#xEditingArea -{ - border: #696969 1px solid; -} - -.SourceField -{ - padding: 5px; - margin: 0px; - font-family: Monospace; -} - -/* - Toolbar -*/ - -.TB_ToolbarSet, .TB_Expand, .TB_Collapse -{ - cursor: default; - background-color: #f7f7f7; -} - -.TB_ToolbarSet -{ - padding: 1px; - border-top: #efefde 1px outset; - border-bottom: #efefde 1px outset; -} - -.TB_ToolbarSet TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.TB_Toolbar -{ - display: inline-table; -} - -.TB_Separator -{ - width: 1px; - height: 21px; - margin: 2px; - background-color: #C6C3BD; -} - -.TB_Start -{ - background-image: url(images/toolbar.start.gif); - margin-left: 2px; - margin-right: 2px; - width: 3px; - background-repeat: no-repeat; - height: 27px; - background-position: center center; -} - -.TB_End -{ - display: none; -} - -.TB_ExpandImg -{ - background-image: url(images/toolbar.expand.gif); - background-repeat: no-repeat; -} - -.TB_CollapseImg -{ - background-image: url(images/toolbar.collapse.gif); - background-repeat: no-repeat; -} - -.TB_SideBorder -{ - background-color: #696969; -} - -.TB_Expand, .TB_Collapse -{ - padding: 2px 2px 2px 2px; - border: #efefde 1px outset; -} - -.TB_Collapse -{ - border: #efefde 1px outset; - width: 5px; -} - -.TB_Break -{ - height: 27px; -} - -/* - Toolbar Button -*/ - -.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled -{ - padding: 1px ; - margin:1px; - height: 21px; -} - -.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled -{ - border: #cec6b5 1px solid; -} - -.TB_Button_On -{ - border-color: #316ac5; - background-color: #c1d2ee; -} - -.TB_Button_On_Over, .TB_Button_Off_Over -{ - border: #316ac5 1px solid; - background-color: #dff1ff; -} - -.TB_Button_Off -{ - background: #efefef url(images/toolbar.buttonbg.gif) repeat-x; -} - -.TB_Button_Off, .TB_Combo_Off -{ - opacity: 0.70; /* Safari, Opera and Mozilla */ - filter: alpha(opacity=70); /* IE */ - /* -moz-opacity: 0.70; Mozilla (Old) */ -} - -.TB_Button_Disabled -{ - opacity: 0.30; /* Safari, Opera and Mozilla */ - filter: gray() alpha(opacity=30); /* IE */ -} - -.TB_Button_Padding -{ - visibility: hidden; - width: 3px; - height: 21px; -} - -.TB_Button_Image -{ - overflow: hidden; - width: 16px; - height: 16px; - margin: 3px; - margin-top: 4px; - margin-bottom: 2px; - background-repeat: no-repeat; -} - -/* For composed button ( icon + text, icon + arrow ), we must compensate the table */ -.TB_Button_On TABLE .TB_Button_Image, -.TB_Button_Off TABLE .TB_Button_Image, -.TB_Button_On_Over TABLE .TB_Button_Image, -.TB_Button_Off_Over TABLE .TB_Button_Image, -.TB_Button_Disabled TABLE .TB_Button_Image -{ - margin-top: 3px; -} - -.TB_Button_Image img -{ - position: relative; -} - -.TB_ConnectionLine -{ - background-color: #ffffff; - height: 1px; - margin-left: 1px; /* ltr */ - margin-right: 1px; /* rtl */ -} - -/* - Menu -*/ - -.MN_Menu -{ - border: 1px solid #8f8f73; - padding: 2px; - background-color: #f7f7f7; - cursor: default; -} - -.MN_Menu, .MN_Menu .MN_Label -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.MN_Item_Padding -{ - visibility: hidden; - width: 3px; - height: 20px; -} - -.MN_Icon -{ - background-color: #dedede; - text-align: center; - height: 20px; -} - -.MN_Label -{ - padding-left: 3px; - padding-right: 3px; -} - -.MN_Separator -{ - height: 3px; -} - -.MN_Separator_Line -{ - border-top: #b9b99d 1px solid; -} - -.MN_Item .MN_Icon IMG -{ - filter: alpha(opacity=70); - opacity: 0.70; -} - -.MN_Item_Over -{ - color: #ffffff; - background-color: #8a857d; -} - -.MN_Item_Over .MN_Icon -{ - background-color: #6c6761; -} - -.MN_Item_Disabled IMG -{ - filter: gray() alpha(opacity=30); /* IE */ - opacity: 0.30; /* Safari, Opera and Mozilla */ -} - -.MN_Item_Disabled .MN_Label -{ - color: #b7b7b7; -} - -.MN_Arrow -{ - padding-right: 3px; - padding-left: 3px; -} - -.MN_ConnectionLine -{ - background-color: #ffffff; -} - -.Menu .TB_Button_On, .Menu .TB_Button_On_Over -{ - border: #8f8f73 1px solid; - background-color: #ffffff; -} - -/* - ### Panel Styles -*/ - -.FCK_Panel -{ - border: #8f8f73 1px solid; - padding: 2px; - background-color: #ffffff; -} - -.FCK_Panel, .FCK_Panel TD -{ - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; - font-size: 11px; -} - -/* - ### Special Combos -*/ - -.SC_Panel -{ - overflow: auto; - white-space: nowrap; - cursor: default; - border: 1px solid #8f8f73; - padding-left: 2px; - padding-right: 2px; -} - -.SC_Panel, .SC_Panel TD -{ - font-size: 11px; - font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; -} - -.SC_Item, .SC_ItemSelected -{ - margin-top: 2px; - margin-bottom: 2px; - background-position: left center; - padding-left: 11px; - padding-right: 3px; - padding-top: 2px; - padding-bottom: 2px; - text-overflow: ellipsis; - overflow: hidden; - background-repeat: no-repeat; - border: #dddddd 1px solid; -} - -.SC_Item *, .SC_ItemSelected * -{ - margin-top: 0px; - margin-bottom: 0px; -} - -.SC_ItemSelected -{ - border: #9a9afb 1px solid; - background-image: url(images/toolbar.arrowright.gif); -} - -.SC_ItemOver -{ - border: #316ac5 1px solid; -} - -.SC_Field -{ - margin-top:1px ; - border: #b7b7a6 1px solid; - cursor: default; -} - -.SC_FieldCaption -{ - padding-top: 1px ; - overflow: visible; - padding-right: 5px; - padding-left: 5px; - opacity: 0.75; /* Safari, Opera and Mozilla */ - filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ - height: 23px; - background-color: #f7f7f7; -} - -.SC_FieldLabel -{ - white-space: nowrap; - padding: 2px; - width: 100%; - cursor: default; - background-color: #ffffff; - text-overflow: ellipsis; - overflow: hidden; -} - -.SC_FieldButton -{ - background-position: center center; - background-image: url(images/toolbar.buttonarrow.gif); - border-left: #b7b7a6 1px solid; - width: 14px; - background-repeat: no-repeat; -} - -.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption -{ - opacity: 0.30; /* Safari, Opera and Mozilla */ - filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ -} - -.SC_FieldOver -{ - border: #316ac5 1px solid; -} - -.SC_FieldOver .SC_FieldButton -{ - border-left: #316ac5 1px solid; -} - -/* - ### Color Selector Panel -*/ - -.ColorBoxBorder -{ - border: #808080 1px solid; - position: static; -} - -.ColorBox -{ - font-size: 1px; - width: 10px; - position: static; - height: 10px; -} - -.ColorDeselected, .ColorSelected -{ - cursor: default; -} - -.ColorDeselected -{ - border: #ffffff 1px solid; - padding: 2px; - float: left; -} - -.ColorSelected -{ - border: #316ac5 1px solid; - padding: 2px; - float: left; - background-color: #c1d2ee; -} +/* + * FCKeditor - The text editor for Internet - http://www.fckeditor.net + * Copyright (C) 2003-2009 Frederico Caldeira Knabben + * + * == BEGIN LICENSE == + * + * Licensed under the terms of any of the following licenses at your + * choice: + * + * - GNU General Public License Version 2 or later (the "GPL") + * http://www.gnu.org/licenses/gpl.html + * + * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * http://www.gnu.org/licenses/lgpl.html + * + * - Mozilla Public License Version 1.1 or later (the "MPL") + * http://www.mozilla.org/MPL/MPL-1.1.html + * + * == END LICENSE == + * + * Styles used by the editor IFRAME and Toolbar. + */ + +/* + ### Basic Editor IFRAME Styles. +*/ + +body +{ + padding: 1px; + margin: 0; + background-color: #ffffff; +} + +#xEditingArea +{ + border: #696969 1px solid; +} + +.SourceField +{ + padding: 5px; + margin: 0px; + font-family: Monospace; +} + +/* + Toolbar +*/ + +.TB_ToolbarSet, .TB_Expand, .TB_Collapse +{ + cursor: default; + background-color: #f7f7f7; +} + +.TB_ToolbarSet +{ + padding: 1px; + border-top: #efefde 1px outset; + border-bottom: #efefde 1px outset; +} + +.TB_ToolbarSet TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.TB_Toolbar +{ + display: inline-table; +} + +.TB_Separator +{ + width: 1px; + height: 21px; + margin: 2px; + background-color: #C6C3BD; +} + +.TB_Start +{ + background-image: url(images/toolbar.start.gif); + margin-left: 2px; + margin-right: 2px; + width: 3px; + background-repeat: no-repeat; + height: 27px; + background-position: center center; +} + +.TB_End +{ + display: none; +} + +.TB_ExpandImg +{ + background-image: url(images/toolbar.expand.gif); + background-repeat: no-repeat; +} + +.TB_CollapseImg +{ + background-image: url(images/toolbar.collapse.gif); + background-repeat: no-repeat; +} + +.TB_SideBorder +{ + background-color: #696969; +} + +.TB_Expand, .TB_Collapse +{ + padding: 2px 2px 2px 2px; + border: #efefde 1px outset; +} + +.TB_Collapse +{ + border: #efefde 1px outset; + width: 5px; +} + +.TB_Break +{ + height: 27px; +} + +/* + Toolbar Button +*/ + +.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled +{ + padding: 1px ; + margin:1px; + height: 21px; +} + +.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled +{ + border: #cec6b5 1px solid; +} + +.TB_Button_On +{ + border-color: #316ac5; + background-color: #c1d2ee; +} + +.TB_Button_On_Over, .TB_Button_Off_Over +{ + border: #316ac5 1px solid; + background-color: #dff1ff; +} + +.TB_Button_Off +{ + background: #efefef url(images/toolbar.buttonbg.gif) repeat-x; +} + +.TB_Button_Off, .TB_Combo_Off +{ + opacity: 0.70; /* Safari, Opera and Mozilla */ + filter: alpha(opacity=70); /* IE */ + /* -moz-opacity: 0.70; Mozilla (Old) */ +} + +.TB_Button_Disabled +{ + opacity: 0.30; /* Safari, Opera and Mozilla */ + filter: gray() alpha(opacity=30); /* IE */ +} + +.TB_Button_Padding +{ + visibility: hidden; + width: 3px; + height: 21px; +} + +.TB_Button_Image +{ + overflow: hidden; + width: 16px; + height: 16px; + margin: 3px; + margin-top: 4px; + margin-bottom: 2px; + background-repeat: no-repeat; +} + +/* For composed button ( icon + text, icon + arrow ), we must compensate the table */ +.TB_Button_On TABLE .TB_Button_Image, +.TB_Button_Off TABLE .TB_Button_Image, +.TB_Button_On_Over TABLE .TB_Button_Image, +.TB_Button_Off_Over TABLE .TB_Button_Image, +.TB_Button_Disabled TABLE .TB_Button_Image +{ + margin-top: 3px; +} + +.TB_Button_Image img +{ + position: relative; +} + +.TB_ConnectionLine +{ + background-color: #ffffff; + height: 1px; + margin-left: 1px; /* ltr */ + margin-right: 1px; /* rtl */ +} + +/* + Menu +*/ + +.MN_Menu +{ + border: 1px solid #8f8f73; + padding: 2px; + background-color: #f7f7f7; + cursor: default; +} + +.MN_Menu, .MN_Menu .MN_Label +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.MN_Item_Padding +{ + visibility: hidden; + width: 3px; + height: 20px; +} + +.MN_Icon +{ + background-color: #dedede; + text-align: center; + height: 20px; +} + +.MN_Label +{ + padding-left: 3px; + padding-right: 3px; +} + +.MN_Separator +{ + height: 3px; +} + +.MN_Separator_Line +{ + border-top: #b9b99d 1px solid; +} + +.MN_Item .MN_Icon IMG +{ + filter: alpha(opacity=70); + opacity: 0.70; +} + +.MN_Item_Over +{ + color: #ffffff; + background-color: #8a857d; +} + +.MN_Item_Over .MN_Icon +{ + background-color: #6c6761; +} + +.MN_Item_Disabled IMG +{ + filter: gray() alpha(opacity=30); /* IE */ + opacity: 0.30; /* Safari, Opera and Mozilla */ +} + +.MN_Item_Disabled .MN_Label +{ + color: #b7b7b7; +} + +.MN_Arrow +{ + padding-right: 3px; + padding-left: 3px; +} + +.MN_ConnectionLine +{ + background-color: #ffffff; +} + +.Menu .TB_Button_On, .Menu .TB_Button_On_Over +{ + border: #8f8f73 1px solid; + background-color: #ffffff; +} + +/* + ### Panel Styles +*/ + +.FCK_Panel +{ + border: #8f8f73 1px solid; + padding: 2px; + background-color: #ffffff; +} + +.FCK_Panel, .FCK_Panel TD +{ + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; + font-size: 11px; +} + +/* + ### Special Combos +*/ + +.SC_Panel +{ + overflow: auto; + white-space: nowrap; + cursor: default; + border: 1px solid #8f8f73; + padding-left: 2px; + padding-right: 2px; +} + +.SC_Panel, .SC_Panel TD +{ + font-size: 11px; + font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; +} + +.SC_Item, .SC_ItemSelected +{ + margin-top: 2px; + margin-bottom: 2px; + background-position: left center; + padding-left: 11px; + padding-right: 3px; + padding-top: 2px; + padding-bottom: 2px; + text-overflow: ellipsis; + overflow: hidden; + background-repeat: no-repeat; + border: #dddddd 1px solid; +} + +.SC_Item *, .SC_ItemSelected * +{ + margin-top: 0px; + margin-bottom: 0px; +} + +.SC_ItemSelected +{ + border: #9a9afb 1px solid; + background-image: url(images/toolbar.arrowright.gif); +} + +.SC_ItemOver +{ + border: #316ac5 1px solid; +} + +.SC_Field +{ + margin-top:1px ; + border: #b7b7a6 1px solid; + cursor: default; +} + +.SC_FieldCaption +{ + padding-top: 1px ; + overflow: visible; + padding-right: 5px; + padding-left: 5px; + opacity: 0.75; /* Safari, Opera and Mozilla */ + filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ + height: 23px; + background-color: #f7f7f7; +} + +.SC_FieldLabel +{ + white-space: nowrap; + padding: 2px; + width: 100%; + cursor: default; + background-color: #ffffff; + text-overflow: ellipsis; + overflow: hidden; +} + +.SC_FieldButton +{ + background-position: center center; + background-image: url(images/toolbar.buttonarrow.gif); + border-left: #b7b7a6 1px solid; + width: 14px; + background-repeat: no-repeat; +} + +.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption, .SC_FieldDisabled .TB_ButtonType_Text +{ + opacity: 0.30; /* Safari, Opera and Mozilla */ + filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ +} + +.SC_FieldOver +{ + border: #316ac5 1px solid; +} + +.SC_FieldOver .SC_FieldButton +{ + border-left: #316ac5 1px solid; +} + +/* + ### Color Selector Panel +*/ + +.ColorBoxBorder +{ + border: #808080 1px solid; + position: static; +} + +.ColorBox +{ + font-size: 1px; + width: 10px; + position: static; + height: 10px; +} + +.ColorDeselected, .ColorSelected +{ + cursor: default; +} + +.ColorDeselected +{ + border: #ffffff 1px solid; + padding: 2px; + float: left; +} + +.ColorSelected +{ + border: #316ac5 1px solid; + padding: 2px; + float: left; + background-color: #c1d2ee; +} Index: lams_central/web/fckeditor/editor/skins/silver/fck_strip.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/Attic/fck_strip.gif,v diff -u -r1.2 -r1.3 Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/images/dialog.sides.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/images/Attic/dialog.sides.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/images/dialog.sides.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/images/Attic/dialog.sides.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/images/dialog.sides.rtl.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/images/Attic/dialog.sides.rtl.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/images/sprites.gif =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/images/Attic/sprites.gif,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/skins/silver/images/sprites.png =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/skins/silver/images/Attic/sprites.png,v diff -u Binary files differ Index: lams_central/web/fckeditor/editor/wsc/ciframe.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/wsc/Attic/ciframe.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/wsc/ciframe.html 6 Feb 2009 02:40:34 -0000 1.1 @@ -0,0 +1,65 @@ + + + + + + + + + +

+ + Index: lams_central/web/fckeditor/editor/wsc/tmpFrameset.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/wsc/Attic/tmpFrameset.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/wsc/tmpFrameset.html 6 Feb 2009 02:40:34 -0000 1.1 @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + Index: lams_central/web/fckeditor/editor/wsc/w.html =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/wsc/Attic/w.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/fckeditor/editor/wsc/w.html 6 Feb 2009 02:40:34 -0000 1.1 @@ -0,0 +1,227 @@ + + + + + + + + + + + + +