Changeset 1598
- Timestamp:
- 2008-02-24 13:38:08 (5 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 25 modified
-
editor/css/fck_internal.css (modified) (1 diff)
-
editor/css/fck_showtableborders_gecko.css (modified) (1 diff)
-
editor/dialog/common/fck_dialog_common.css (modified) (1 diff)
-
editor/dialog/common/fck_dialog_common.js (modified) (1 diff)
-
editor/dialog/fck_flash/fck_flash.js (modified) (1 diff)
-
editor/dialog/fck_flash/fck_flash_preview.html (modified) (1 diff)
-
editor/dialog/fck_flash.html (modified) (1 diff)
-
editor/dialog/fck_image/fck_image.js (modified) (1 diff)
-
editor/dialog/fck_image/fck_image_preview.html (modified) (1 diff)
-
editor/dialog/fck_image.html (modified) (1 diff)
-
editor/dialog/fck_source.html (modified) (2 diffs)
-
editor/fckdialog.html (modified) (2 diffs)
-
editor/fckeditor.html (modified) (3 diffs)
-
editor/_source/classes/fckcontextmenu.js (modified) (1 diff)
-
editor/_source/classes/fckmenublockpanel.js (modified) (1 diff)
-
editor/_source/classes/fckspecialcombo.js (modified) (1 diff)
-
editor/_source/commandclasses/fcktextcolorcommand.js (modified) (1 diff)
-
editor/_source/internals/fckconfig.js (modified) (1 diff)
-
editor/_source/internals/fck.js (modified) (2 diffs)
-
editor/_source/internals/fcktoolbarset.js (modified) (1 diff)
-
editor/_source/internals/fcktools_gecko.js (modified) (1 diff)
-
editor/_source/internals/fcktools_ie.js (modified) (1 diff)
-
editor/_source/internals/fcktools.js (modified) (1 diff)
-
fckconfig.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/css/fck_internal.css
r1565 r1598 20 20 * 21 21 * This CSS Style Sheet defines rules used by the editor for its internal use. 22 */ 23 24 /* ######### 25 * WARNING 26 * ######### 27 * When changing this file, the minified version of it must be updated in the 28 * fckeditor.html file (see FCK_InternalCSS). 22 29 */ 23 30 -
FCKeditor/trunk/editor/css/fck_showtableborders_gecko.css
r1565 r1598 22 22 */ 23 23 24 /* ######### 25 * WARNING 26 * ######### 27 * When changing this file, the minified version of it must be updated in the 28 * fckeditor.html file (see FCK_ShowTableBordersCSS). 29 */ 30 24 31 /* For tables with the "border" attribute set to "0" */ 25 32 table[border="0"], -
FCKeditor/trunk/editor/dialog/common/fck_dialog_common.css
r1565 r1598 21 21 * This is the CSS file used for interface details in some dialog 22 22 * windows. 23 */ 24 25 /* ######### 26 * WARNING 27 * ######### 28 * When changing this file, the minified version of it must be updated in the 29 * fck_dialog_common.js file (see GetCommonDialogCss). 23 30 */ 24 31 -
FCKeditor/trunk/editor/dialog/common/fck_dialog_common.js
r1565 r1598 54 54 } 55 55 })() ; 56 57 // Attention: FCKConfig must be available in the page. 58 function GetCommonDialogCss( prefix ) 59 { 60 return ( prefix || '' ) + 'common/fck_dialog_common.css' ; // @Packager.RemoveLine 61 /* @Packager.RemoveLine 62 // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor 63 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:hand}' ; 64 @Packager.RemoveLine */ 65 } 56 66 57 67 // Gets a element by its Id. Used for shorter coding. -
FCKeditor/trunk/editor/dialog/fck_flash/fck_flash.js
r1565 r1598 27 27 var FCKLang = oEditor.FCKLang ; 28 28 var FCKConfig = oEditor.FCKConfig ; 29 var FCKTools = oEditor.FCKTools ; 29 30 30 31 //#### Dialog Tabs -
FCKeditor/trunk/editor/dialog/fck_flash/fck_flash_preview.html
r1565 r1598 27 27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 28 28 <meta name="robots" content="noindex, nofollow"> 29 <link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" />30 29 <script src="../common/fck_dialog_common.js" type="text/javascript"></script> 31 30 <script language="javascript"> 32 31 32 var FCKTools = window.parent.FCKTools ; 33 var FCKConfig = window.parent.FCKConfig ; 34 33 35 // Sets the Skin CSS 34 document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; 36 document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; 37 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ; 35 38 36 39 if ( window.parent.FCKConfig.BaseHref.length > 0 ) -
FCKeditor/trunk/editor/dialog/fck_flash.html
r1565 r1598 29 29 <script src="common/fck_dialog_common.js" type="text/javascript"></script> 30 30 <script src="fck_flash/fck_flash.js" type="text/javascript"></script> 31 <link href="common/fck_dialog_common.css" type="text/css" rel="stylesheet"> 31 <script type="text/javascript"> 32 33 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; 34 35 </script> 32 36 </head> 33 37 <body scroll="no" style="OVERFLOW: hidden"> -
FCKeditor/trunk/editor/dialog/fck_image/fck_image.js
r1576 r1598 28 28 var FCKConfig = oEditor.FCKConfig ; 29 29 var FCKDebug = oEditor.FCKDebug ; 30 var FCKTools = oEditor.FCKTools ; 30 31 31 32 var bImageButton = ( document.location.search.length > 0 && document.location.search.substr(1) == 'ImageButton' ) ; -
FCKeditor/trunk/editor/dialog/fck_image/fck_image_preview.html
r1565 r1598 29 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 30 30 <meta name="robots" content="noindex, nofollow" /> 31 <link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" />32 31 <script src="../common/fck_dialog_common.js" type="text/javascript"></script> 33 32 <script type="text/javascript"> 34 33 34 var FCKTools = window.parent.FCKTools ; 35 var FCKConfig = window.parent.FCKConfig ; 36 35 37 // Sets the Skin CSS 36 document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ; 38 document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; 39 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ; 37 40 38 41 if ( window.parent.FCKConfig.BaseHref.length > 0 ) -
FCKeditor/trunk/editor/dialog/fck_image.html
r1565 r1598 29 29 <script src="common/fck_dialog_common.js" type="text/javascript"></script> 30 30 <script src="fck_image/fck_image.js" type="text/javascript"></script> 31 <link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" /> 31 <script type="text/javascript"> 32 33 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; 34 35 </script> 32 36 </head> 33 37 <body scroll="no" style="overflow: hidden"> -
FCKeditor/trunk/editor/dialog/fck_source.html
r1565 r1598 27 27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 28 28 <meta name="robots" content="noindex, nofollow"> 29 < link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />29 <script src="common/fck_dialog_common.js" type="text/javascript"></script> 30 30 <script language="javascript"> 31 31 … … 33 33 var FCK = oEditor.FCK ; 34 34 var FCKConfig = oEditor.FCKConfig ; 35 var FCKTools = oEditor.FCKTools ; 36 37 document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; 35 38 36 39 window.onload = function() -
FCKeditor/trunk/editor/fckdialog.html
r1586 r1598 83 83 84 84 // Sets the Skin CSS 85 document.write( '<link href="' + FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">') ;85 document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; 86 86 87 87 // Sets the language direction. … … 644 644 645 645 // Sets the Skin CSS. 646 innerDoc.write( '<link href="' + FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">') ;646 innerDoc.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; 647 647 648 648 setOnKeyDown( innerDoc ) ; -
FCKeditor/trunk/editor/fckeditor.html
r1596 r1598 80 80 { 81 81 document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ; 82 }83 84 function LoadCss( url )85 {86 document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" />' ) ;87 82 } 88 83 … … 243 238 FCKConfig_PreProcess() ; 244 239 240 var FCK_InternalCSS = FCKConfig.FullBasePath + 'css/fck_internal.css' ; // @Packager.RemoveLine 241 var FCK_ShowTableBordersCSS = FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ; // @Packager.RemoveLine 242 /* @Packager.RemoveLine 243 // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor 244 var FCK_InternalCSS = FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ; 245 var FCK_ShowTableBordersCSS = FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ; 246 @Packager.RemoveLine */ 247 245 248 // Popup the debug window if debug mode is set to true. It guarantees that the 246 249 // first debug message will not be lost. … … 249 252 250 253 // Load the active skin CSS. 251 LoadCss( FCKConfig.SkinPath + 'fck_editor.css') ;254 document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ; 252 255 253 256 // Load the language file. -
FCKeditor/trunk/editor/_source/classes/fckcontextmenu.js
r1565 r1598 27 27 28 28 var oPanel = this._Panel = new FCKPanel( parentWindow ) ; 29 oPanel.AppendStyleSheet( FCKConfig.Skin Path + 'fck_editor.css') ;29 oPanel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ; 30 30 oPanel.IsContextMenu = true ; 31 31 -
FCKeditor/trunk/editor/_source/classes/fckmenublockpanel.js
r1565 r1598 37 37 { 38 38 var oPanel = this.Panel = ( this.Parent && this.Parent.Panel ? this.Parent.Panel.CreateChildPanel() : new FCKPanel() ) ; 39 oPanel.AppendStyleSheet( FCKConfig.Skin Path + 'fck_editor.css') ;39 oPanel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ; 40 40 41 41 // Call the "base" implementation. -
FCKeditor/trunk/editor/_source/classes/fckspecialcombo.js
r1565 r1598 38 38 39 39 this._Panel = new FCKPanel( parentWindow || window ) ; 40 this._Panel.AppendStyleSheet( FCKConfig.Skin Path + 'fck_editor.css') ;40 this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ; 41 41 this._PanelBox = this._Panel.MainNode.appendChild( this._Panel.Document.createElement( 'DIV' ) ) ; 42 42 this._PanelBox.className = 'SC_Panel' ; -
FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js
r1565 r1598 40 40 41 41 this._Panel = new FCKPanel( oWindow ) ; 42 this._Panel.AppendStyleSheet( FCKConfig.Skin Path + 'fck_editor.css') ;42 this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ; 43 43 this._Panel.MainNode.className = 'FCK_Panel' ; 44 44 this._CreatePanelBody( this._Panel.Document, this._Panel.MainNode ) ; -
FCKeditor/trunk/editor/_source/internals/fckconfig.js
r1565 r1598 132 132 oConfig.PluginsPath += '/' ; 133 133 134 // EditorAreaCSS accepts a single path string, a list of paths separated by 135 // a comma or and array of paths. 136 // In the string cases, transform it in an array. 137 if ( typeof( oConfig.EditorAreaCSS ) == 'string' ) 138 oConfig.EditorAreaCSS = oConfig.EditorAreaCSS.split(',') ; 139 134 // If no ToolbarComboPreviewCSS, point it to EditorAreaCSS. 140 135 var sComboPreviewCSS = oConfig.ToolbarComboPreviewCSS ; 141 136 if ( !sComboPreviewCSS || sComboPreviewCSS.length == 0 ) 142 137 oConfig.ToolbarComboPreviewCSS = oConfig.EditorAreaCSS ; 143 else if ( typeof( sComboPreviewCSS ) == 'string' )144 oConfig.ToolbarComboPreviewCSS = [ sComboPreviewCSS ] ;145 138 } 146 139 -
FCKeditor/trunk/editor/_source/internals/fck.js
r1565 r1598 440 440 sHeadExtra += FCK._GetBehaviorsStyle() ; 441 441 else if ( FCKConfig.ShowBorders ) 442 sHeadExtra += '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />';443 444 sHeadExtra += '<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css" rel="stylesheet" type="text/css" _fcktemp="true" />';442 sHeadExtra += FCKTools.GetStyleHtml( FCK_ShowTableBordersCSS, true ) ; 443 444 sHeadExtra += FCKTools.GetStyleHtml( FCK_InternalCSS, true ) ; 445 445 446 446 // Attention: do not change it before testing it well (sample07)! … … 971 971 function _FCK_GetEditorAreaStyleTags() 972 972 { 973 var sTags = '' ; 974 var aCSSs = FCKConfig.EditorAreaCSS ; 975 var sStyles = FCKConfig.EditorAreaStyles ; 976 977 for ( var i = 0 ; i < aCSSs.length ; i++ ) 978 sTags += '<link href="' + aCSSs[i] + '" rel="stylesheet" type="text/css" />' ; 979 980 if ( sStyles && sStyles.length > 0 ) 981 sTags += "<style>" + sStyles + "</style>" ; 982 983 return sTags ; 973 return FCKTools.GetStyleHtml( FCKConfig.EditorAreaCSS ) + 974 FCKTools.GetStyleHtml( FCKConfig.EditorAreaStyles ) ; 984 975 } 985 976 -
FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js
r1596 r1598 122 122 // Load external resources (must be done here, otherwise Firefox will not 123 123 // have the document DOM ready to be used right away. 124 FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.Skin Path + 'fck_editor.css') ;124 FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.SkinEditorCSS ) ; 125 125 126 126 oToolbarSet = eToolbarTarget.__FCKToolbarSet = new FCKToolbarSet( eTargetDocument ) ; -
FCKeditor/trunk/editor/_source/internals/fcktools_gecko.js
r1565 r1598 50 50 51 51 // Appends a CSS style string to a document. 52 FCKTools._AppendStyleString = function( documentElement, cssStyles ) 53 { 52 FCKTools.AppendStyleString = function( documentElement, cssStyles ) 53 { 54 if ( !cssStyles ) 55 return ; 56 54 57 var e = documentElement.createElement( "STYLE" ) ; 55 58 e.appendChild( documentElement.createTextNode( cssStyles ) ) ; -
FCKeditor/trunk/editor/_source/internals/fcktools_ie.js
r1565 r1598 34 34 35 35 // Appends a CSS style string to a document. 36 FCKTools._AppendStyleString = function( documentElement, cssStyles ) 37 { 36 FCKTools.AppendStyleString = function( documentElement, cssStyles ) 37 { 38 if ( !cssStyles ) 39 return ; 40 38 41 var s = documentElement.createStyleSheet( "" ) ; 39 42 s.cssText = cssStyles ; -
FCKeditor/trunk/editor/_source/internals/fcktools.js
r1565 r1598 32 32 } 33 33 34 // Returns a reference to the appended style sheet or an array with all the appended references 35 FCKTools.AppendStyleSheet = function( documentElement, cssFileUrlOrArray ) 36 { 37 if ( typeof( cssFileUrlOrArray ) == 'string' ) 38 return this._AppendStyleSheet( documentElement, cssFileUrlOrArray ) ; 34 /** 35 * Fixes relative URL entries defined inside CSS styles by appending a prefix 36 * to them. 37 * @param (String) cssStyles The CSS styles definition possibly containing url() 38 * paths. 39 * @param (String) urlFixPrefix The prefix to append to relative URLs. 40 */ 41 FCKTools.FixCssUrls = function( urlFixPrefix, cssStyles ) 42 { 43 if ( !urlFixPrefix || urlFixPrefix.length == 0 ) 44 return cssStyles ; 45 46 return cssStyles.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g, function( match, opener, path, closer ) 47 { 48 if ( /^\/|^\w?:/.test() ) 49 return match ; 50 else 51 return 'url(' + opener + urlFixPrefix + path + closer + ')' ; 52 } ) ; 53 } 54 55 FCKTools._GetUrlFixedCss = function( cssStyles, urlFixPrefix ) 56 { 57 var match = cssStyles.match( /^([^|]+)\|([\s\S]*)/ ) ; 58 59 if ( match ) 60 return FCKTools.FixCssUrls( match[1], match[2] ) ; 39 61 else 40 { 41 var aStyleSheeArray = new Array() ; 42 43 for ( var i = 0 ; i < cssFileUrlOrArray.length ; i++ ) 44 aStyleSheeArray.push(this._AppendStyleSheet( documentElement, cssFileUrlOrArray[i] ) ) ; 45 46 return aStyleSheeArray ; 47 } 48 } 49 50 FCKTools.AppendStyleString = function ( documentElement, cssStyles ) 51 { 52 this._AppendStyleString( documentElement, cssStyles ) ; 53 } 62 return cssStyles ; 63 } 64 65 /** 66 * Appends a <link css> or <style> element to the document. 67 * @param (Object) documentElement The DOM document object to which append the 68 * stylesheet. 69 * @param (Variant) cssFileOrDef A String pointing to the CSS file URL or an 70 * Array with many CSS file URLs or the CSS definitions for the <style> 71 * element. 72 * @return {Array} An array containing all elements created in the target 73 * document. It may include <link> or <style> elements, depending on the 74 * value passed with cssFileOrDef. 75 */ 76 FCKTools.AppendStyleSheet = function( domDocument, cssFileOrArrayOrDef ) 77 { 78 if ( !cssFileOrArrayOrDef ) 79 return [] ; 80 81 if ( typeof( cssFileOrArrayOrDef ) == 'string' ) 82 { 83 // Test if the passed argument is an URL. 84 if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) ) 85 { 86 // The string may have several URLs separated by comma. 87 return this.AppendStyleSheet( domDocument, cssFileOrArrayOrDef.split(',') ) ; 88 } 89 else 90 return [ this.AppendStyleString( domDocument, FCKTools._GetUrlFixedCss( cssFileOrArrayOrDef ) ) ] ; 91 } 92 else 93 { 94 var styles = [] ; 95 for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ ) 96 styles.push( this._AppendStyleSheet( domDocument, cssFileOrArrayOrDef[i] ) ) ; 97 return styles ; 98 } 99 } 100 101 FCKTools.GetStyleHtml = (function() 102 { 103 var getStyle = function( styleDef, markTemp ) 104 { 105 if ( styleDef.length == 0 ) 106 return '' ; 107 108 var temp = markTemp ? ' _fcktemp="true"' : '' ; 109 return '<' + 'style type="text/css"' + temp + '>' + styleDef + '<' + '/style>' ; 110 } 111 112 var getLink = function( cssFileUrl, markTemp ) 113 { 114 if ( cssFileUrl.length == 0 ) 115 return '' ; 116 117 var temp = markTemp ? ' _fcktemp="true"' : '' ; 118 return '<' + 'link href="' + cssFileUrl + '" type="text/css" rel="stylesheet" ' + temp + '/>' ; 119 } 120 121 return function( cssFileOrArrayOrDef, markTemp ) 122 { 123 if ( !cssFileOrArrayOrDef ) 124 return '' ; 125 126 if ( typeof( cssFileOrArrayOrDef ) == 'string' ) 127 { 128 // Test if the passed argument is an URL. 129 if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) ) 130 { 131 // The string may have several URLs separated by comma. 132 return this.GetStyleHtml( cssFileOrArrayOrDef.split(',') ) ; 133 } 134 else 135 return getStyle( this._GetUrlFixedCss( cssFileOrArrayOrDef ), markTemp ) ; 136 } 137 else 138 { 139 var html = '' ; 140 141 for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ ) 142 html += getLink( cssFileOrArrayOrDef[i], markTemp ) ; 143 144 return html ; 145 } 146 } 147 })() ; 54 148 55 149 FCKTools.GetElementDocument = function ( element ) -
FCKeditor/trunk/fckconfig.js
r1565 r1598 44 44 45 45 FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; 46 FCKConfig.SkinEditorCSS = FCKConfig.SkinPath + 'fck_editor.css' ; 47 FCKConfig.SkinDialogCSS = FCKConfig.SkinPath + 'fck_dialog.css' ; 48 46 49 FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ; 47 50 -
FCKeditor/trunk/_whatsnew.html
r1596 r1598 45 45 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/123">#123</a>] Full support 46 46 for <strong>document.domain</strong> with automatic domain detection.</li> 47 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1622">#1622</a>] New <strong> 48 inline CSS cache</strong> feature, making it possible to avoid downloading the CSS 49 files for the editing area and skins. For that, it is enough to set the EditorAreaCSS, 50 SkinEditorCSS and SkinDialogCSS to string values in the format "/absolute/path/for/urls/|<minified 51 CSS styles". All internal CSS links are already using this feature. </li> 47 52 <li>New language file for <strong>Canadian French</strong>.</li> 48 53 </ul>