Index: editor/_source/internals/fcktools_gecko.js
===================================================================
--- editor/_source/internals/fcktools_gecko.js	(revision 1446)
+++ editor/_source/internals/fcktools_gecko.js	(working copy)
@@ -40,12 +40,21 @@
 // Appends a CSS file to a document.
 FCKTools._AppendStyleSheet = function( documentElement, cssFileUrl )
 {
-	var e = documentElement.createElement( 'LINK' ) ;
-	e.rel	= 'stylesheet' ;
-	e.type	= 'text/css' ;
-	e.href	= cssFileUrl ;
-	documentElement.getElementsByTagName("HEAD")[0].appendChild( e ) ;
-	return e ;
+	var cssText = FCKCSSManager.GetCachedCSS( cssFileUrl ) ;
+
+	if ( cssText == null )
+	{
+		var e = documentElement.createElement( 'LINK' ) ;
+		e.rel	= 'stylesheet' ;
+		e.type	= 'text/css' ;
+		e.href	= cssFileUrl ;
+		documentElement.getElementsByTagName( "HEAD" )[0].appendChild( e ) ;
+		return e ;
+	}
+	else
+	{
+		return FCKTools._AppendStyleString( documentElement, cssText ) ;
+	}
 }
 
 // Appends a CSS style string to a document.
Index: editor/_source/internals/fcktools_ie.js
===================================================================
--- editor/_source/internals/fcktools_ie.js	(revision 1446)
+++ editor/_source/internals/fcktools_ie.js	(working copy)
@@ -29,7 +29,16 @@
 // Appends one or more CSS files to a document.
 FCKTools._AppendStyleSheet = function( documentElement, cssFileUrl )
 {
-	return documentElement.createStyleSheet( cssFileUrl ).owningElement ;
+	var cssText = FCKCSSManager.GetCachedCSS( cssFileUrl );
+
+	if ( cssText )
+	{
+		return FCKTools._AppendStyleString( documentElement, cssText ) ;
+	}
+	else
+	{
+		return documentElement.createStyleSheet( cssFileUrl ).owningElement ;
+	}
 }
 
 // Appends a CSS style string to a document.
Index: editor/fckeditor.html
===================================================================
--- editor/fckeditor.html	(revision 1446)
+++ editor/fckeditor.html	(working copy)
@@ -83,7 +83,7 @@
 
 function LoadCss( url )
 {
-	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" />' ) ;
+	FCKCSSManager.PrintCSSInclude( url ) ;
 }
 
 // Main editor scripts.
@@ -186,6 +186,7 @@
 LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
 LoadScript( '_source/classes/fckcontextmenu.js' ) ;
 LoadScript( '_source/internals/fck_contextmenu.js' ) ;
+LoadScript( '_source/internals/fckcssmanager.js' ) ;
 LoadScript( '_source/classes/fckplugin.js' ) ;
 LoadScript( '_source/internals/fckplugins.js' ) ;
 
Index: fckpackager.xml
===================================================================
--- fckpackager.xml	(revision 1446)
+++ fckpackager.xml	(working copy)
@@ -160,6 +160,11 @@
 
 		<File path="editor/_source/classes/fckplugin.js" />
 		<File path="editor/_source/internals/fckplugins.js" />
+
+		<File path="editor/_source/internals/fckcssmanager.js" />
+		<File path="editor/skins/silver/fck_editor.css" />
+		<File path="editor/css/fck_editorarea.css" />
+		<File path="editor/css/fck_internal.css" />
 	</PackageFile>
 
 	<PackageFile path="editor/js/fckeditorcode_gecko.js">
@@ -255,6 +260,12 @@
 
 		<File path="editor/_source/classes/fckplugin.js" />
 		<File path="editor/_source/internals/fckplugins.js" />
+
+		<File path="editor/_source/internals/fckcssmanager.js" />
+		<File path="editor/skins/silver/fck_editor.css" />
+		<File path="editor/css/fck_showtableborders_gecko.css" />
+		<File path="editor/css/fck_editorarea.css" />
+		<File path="editor/css/fck_internal.css" />
 	</PackageFile>
 
 </Package>
