Index: /FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js
===================================================================
--- /FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js	(revision 966)
+++ /FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js	(revision 967)
@@ -30,28 +30,4 @@
 	this.IsDefaultAlign = ( alignValue == 'left' && contentDir == 'ltr' ) ||
 						  ( alignValue == 'right' && contentDir == 'rtl' ) ;
-
-	// Get the class name to be used by this instance.
-	var cssClassName = this._CssClassName = ( function()
-	{
-		var classes = FCKConfig.JustifyClasses ;
-		if ( classes )
-		{
-			switch ( alignValue )
-			{
-				case 'left' :
-					return classes[0] ;
-				case 'center' :
-					return classes[1] ;
-				case 'right' :
-					return classes[2] ;
-				case 'justify' :
-					return classes[3] ;
-			}
-		}
-		return null ;
-	} )() ;
-
-	if ( cssClassName && cssClassName.length > 0 )
-		this._CssClassRegex = new RegExp( '(?:^|\\s+)' + cssClassName + '(?=$|\\s)' ) ;
 }
 
@@ -100,6 +76,4 @@
 		// change the DOM tree and break selections.
 		var bookmark = range.CreateBookmark() ;
-
-		var cssClassName = this._CssClassName ;
 
 		// Apply alignment setting for each paragraph.
@@ -161,24 +135,12 @@
 
 		// Check if the desired style is already applied to the block.
-		var cssClassRegex = this._CssClassRegex ;
-		if ( !cssClassRegex )
-		{
-			var currentAlign ;
-			if ( FCKBrowserInfo.IsIE )
-				currentAlign = firstBlock.currentStyle.textAlign ;
-			else
-				currentAlign = FCK.EditorWindow.getComputedStyle( firstBlock, '' ).getPropertyValue( 'text-align' );
-			currentAlign = currentAlign.replace( /(-moz-|-webkit-|start|auto)/i, '' );
-			if ( ( !currentAlign && this.IsDefaultAlign ) || currentAlign == this.AlignValue )
-				return FCK_TRISTATE_ON ;
-			return FCK_TRISTATE_OFF ;
-		}
+		var currentAlign ;
+		if ( FCKBrowserInfo.IsIE )
+			currentAlign = firstBlock.currentStyle.textAlign ;
 		else
-		{
-			if ( ( this.IsDefaultAlign && !FCKJustifyCommand._GetClassNameRegex().test( firstBlock.className ) )
-					|| cssClassRegex.test( firstBlock.className ) )
-				return FCK_TRISTATE_ON ;
-		}
-
+			currentAlign = FCK.EditorWindow.getComputedStyle( firstBlock, '' ).getPropertyValue( 'text-align' );
+		currentAlign = currentAlign.replace( /(-moz-|-webkit-|start|auto)/i, '' );
+		if ( ( !currentAlign && this.IsDefaultAlign ) || currentAlign == this.AlignValue )
+			return FCK_TRISTATE_ON ;
 		return FCK_TRISTATE_OFF ;
 	}
