Changeset 837


Ignore:
Timestamp:
09/17/2007 12:31:21 PM (8 years ago)
Author:
martinkou
Message:

FCKDebug.Debug should not be true in the SVN. It is only meant for doing experiments.
Fixed style not defined error on IE startup.

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

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

    r836 r837  
    9090                var path = new FCKElementPath( startContainer ) ;
    9191                var firstBlock = path.Block || path.BlockLimit ;
     92                if ( !firstBlock )
     93                        return FCK_TRISTATE_DISABLED ;
     94
    9295                if ( FCKIndentCommand._UseIndentClasses )
    9396                {
     
    178181                while ( endContainer && ! endContainer.nodeName.IEquals( ['li', 'ul', 'ol'] ) )
    179182                        endContainer = endContainer.parentNode ;
     183
     184                if ( ! startContainer || ! endContainer )
     185                        return ;
     186
    180187                range.SetStart( startContainer, 1 ) ;
    181188                range.SetEnd( endContainer, 2 ) ;
    182 
    183                 if ( ! startContainer || ! endContainer )
    184                         return ;
    185189
    186190                // Now we can iterate over the individual items.
  • FCKeditor/trunk/fckconfig.js

    r835 r837  
    4040FCKConfig.StartupShowBlocks = false ;
    4141
    42 FCKConfig.Debug = true ;
     42FCKConfig.Debug = false ;
    4343FCKConfig.AllowQueryStringDebug = true ;
    4444
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy