Changeset 958
- Timestamp:
- 10/03/07 11:31:57 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js
r931 r958 164 164 if ( !cssClassRegex ) 165 165 { 166 // Definitions in the "style" override the "align" attribute, so it 167 // gets precedence. 168 var currentAlign = firstBlock.style.textAlign || firstBlock.align ; 169 166 var currentAlign ; 167 if ( FCKBrowserInfo.IsIE ) 168 currentAlign = firstBlock.currentStyle.textAlign ; 169 else 170 currentAlign = FCK.EditorWindow.getComputedStyle( firstBlock, '' ).getPropertyValue( 'text-align' ); 171 currentAlign = currentAlign.replace( /(-moz-|-webkit-|start|auto)/i, '' ); 170 172 if ( ( !currentAlign && this.IsDefaultAlign ) || currentAlign == this.AlignValue ) 171 173 return FCK_TRISTATE_ON ; 174 return FCK_TRISTATE_OFF ; 172 175 } 173 176 else
Note: See TracChangeset
for help on using the changeset viewer.
