Changeset 646

Show
Ignore:
Timestamp:
2007-08-10 07:27:05 (3 years ago)
Author:
martinkou
Message:

Fixed #1019 : Fixed the issue where toolbar buttons linked to FCKTableCommand are not context sensitive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fcktablecommand.js

    r435 r646  
    7777FCKTableCommand.prototype.GetState = function() 
    7878{ 
    79         return FCK_TRISTATE_OFF ; 
     79        if ( FCK.EditorDocument != null ) 
     80        { 
     81                if( FCKSelection.HasAncestorNode( 'TABLE' ) )  
     82                        return FCK_TRISTATE_OFF ; 
     83        } 
     84        return FCK_TRISTATE_DISABLED;  
    8085}