Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 827)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 828)
@@ -219,4 +219,6 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/525">#525</a>] The union
 			if successive DIVs will work properly now if EnterMode!=div.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1227">#1227</a>] The color 
+			commands used an unnecessary temporary variable. Thanks to Matthias Miller</li>
 	</ul>
 	<h3>
Index: /FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js
===================================================================
--- /FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js	(revision 827)
+++ /FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js	(revision 828)
@@ -49,7 +49,4 @@
 FCKTextColorCommand.prototype.Execute = function( panelX, panelY, relElement )
 {
-	// We must "cache" the actual panel type to be used in the SetColor method.
-	FCK._ActiveColorPanelType = this.Type ;
-
 	// Show the Color Panel at the desired position.
 	this._Panel.Show( panelX, panelY, relElement ) ;
@@ -59,5 +56,5 @@
 {
 	var style = FCKStyles.GetStyle( '_FCK_' +
-		( FCK._ActiveColorPanelType == 'ForeColor' ? 'Color' : 'BackColor' ) ) ;
+		( this.Type == 'ForeColor' ? 'Color' : 'BackColor' ) ) ;
 
 	if ( !color || color.length == 0 )
@@ -68,7 +65,4 @@
 		FCKStyles.ApplyStyle( style ) ;
 	}
-
-	// Delete the "cached" active panel type.
-	delete FCK._ActiveColorPanelType ;
 }
 
