Index: /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php
===================================================================
--- /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php	(revision 520)
+++ /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php	(revision 521)
@@ -256,4 +256,5 @@
         global $wgFCKEditorToolbarSet;
         global $wgFCKEditorExtDir, $wgFCKEditorDir, $wgFCKEditorHeight, $wgUser;
+        global $wgStylePath, $wgStyleVersion;
         
         $options = new FCKeditorParserOptions();
@@ -272,4 +273,6 @@
         }
 
+		$printsheet = htmlspecialchars( "$wgStylePath/common/wikiprintable.css?$wgStyleVersion" );		
+        
         $script = <<<HEREDOC
 <script type="text/javascript" src="$wgScriptPath/$wgFCKEditorDir/fckeditor.js"></script>
@@ -282,5 +285,5 @@
 		oFCKeditor.BasePath = '$wgScriptPath/$wgFCKEditorDir/' ;
 		oFCKeditor.Config['CustomConfigurationsPath'] = '$wgScriptPath/$wgFCKEditorExtDir/fckeditor_config.js' ;
-		oFCKeditor.Config['EditorAreaCSS'] = '' ;
+		oFCKeditor.Config['EditorAreaCSS'] = '$printsheet' ;
 		oFCKeditor.Height = '$wgFCKEditorHeight' ;
 		oFCKeditor.ToolbarSet = '$wgFCKEditorToolbarSet' ;
@@ -414,5 +417,5 @@
     }       
     function replaceVariables( $text, $args = array(), $argsOnly = false ) {
-        return $text;
+        return preg_replace("/\{\{([^}]+)\}\}(\}+)/", '<span class="fck_template">{{$1}}$2</span>', $text);
     }
 }
