Ticket #1622: 1622_FCKeditor.patch
File 1622_FCKeditor.patch, 3.5 KB (added by , 17 years ago) |
---|
-
editor/_source/internals/fcktools_gecko.js
40 40 // Appends a CSS file to a document. 41 41 FCKTools._AppendStyleSheet = function( documentElement, cssFileUrl ) 42 42 { 43 var e = documentElement.createElement( 'LINK' ) ; 44 e.rel = 'stylesheet' ; 45 e.type = 'text/css' ; 46 e.href = cssFileUrl ; 47 documentElement.getElementsByTagName("HEAD")[0].appendChild( e ) ; 48 return e ; 43 var cssText = FCKCSSManager.GetCachedCSS( cssFileUrl ) ; 44 45 if ( cssText == null ) 46 { 47 var e = documentElement.createElement( 'LINK' ) ; 48 e.rel = 'stylesheet' ; 49 e.type = 'text/css' ; 50 e.href = cssFileUrl ; 51 documentElement.getElementsByTagName( "HEAD" )[0].appendChild( e ) ; 52 return e ; 53 } 54 else 55 { 56 return FCKTools._AppendStyleString( documentElement, cssText ) ; 57 } 49 58 } 50 59 51 60 // Appends a CSS style string to a document. -
editor/_source/internals/fcktools_ie.js
29 29 // Appends one or more CSS files to a document. 30 30 FCKTools._AppendStyleSheet = function( documentElement, cssFileUrl ) 31 31 { 32 return documentElement.createStyleSheet( cssFileUrl ).owningElement ; 32 var cssText = FCKCSSManager.GetCachedCSS( cssFileUrl ); 33 34 if ( cssText ) 35 { 36 return FCKTools._AppendStyleString( documentElement, cssText ) ; 37 } 38 else 39 { 40 return documentElement.createStyleSheet( cssFileUrl ).owningElement ; 41 } 33 42 } 34 43 35 44 // Appends a CSS style string to a document. -
editor/fckeditor.html
83 83 84 84 function LoadCss( url ) 85 85 { 86 document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" />') ;86 FCKCSSManager.PrintCSSInclude( url ) ; 87 87 } 88 88 89 89 // Main editor scripts. … … 186 186 LoadScript( '_source/classes/fckmenublockpanel.js' ) ; 187 187 LoadScript( '_source/classes/fckcontextmenu.js' ) ; 188 188 LoadScript( '_source/internals/fck_contextmenu.js' ) ; 189 LoadScript( '_source/internals/fckcssmanager.js' ) ; 189 190 LoadScript( '_source/classes/fckplugin.js' ) ; 190 191 LoadScript( '_source/internals/fckplugins.js' ) ; 191 192 -
fckpackager.xml
160 160 161 161 <File path="editor/_source/classes/fckplugin.js" /> 162 162 <File path="editor/_source/internals/fckplugins.js" /> 163 164 <File path="editor/_source/internals/fckcssmanager.js" /> 165 <File path="editor/skins/silver/fck_editor.css" /> 166 <File path="editor/css/fck_editorarea.css" /> 167 <File path="editor/css/fck_internal.css" /> 163 168 </PackageFile> 164 169 165 170 <PackageFile path="editor/js/fckeditorcode_gecko.js"> … … 255 260 256 261 <File path="editor/_source/classes/fckplugin.js" /> 257 262 <File path="editor/_source/internals/fckplugins.js" /> 263 264 <File path="editor/_source/internals/fckcssmanager.js" /> 265 <File path="editor/skins/silver/fck_editor.css" /> 266 <File path="editor/css/fck_showtableborders_gecko.css" /> 267 <File path="editor/css/fck_editorarea.css" /> 268 <File path="editor/css/fck_internal.css" /> 258 269 </PackageFile> 259 270 260 271 </Package>