Changeset 836


Ignore:
Timestamp:
09/17/07 11:53:15 (7 years ago)
Author:
martinkou
Message:

Fixed "path.Block not defined" error in indenting command code.

File:
1 edited

Legend:

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

    r835 r836  
    8989 
    9090                var path = new FCKElementPath( startContainer ) ; 
     91                var firstBlock = path.Block || path.BlockLimit ; 
    9192                if ( FCKIndentCommand._UseIndentClasses ) 
    9293                { 
    93                         var indentClass = path.Block.className.match( FCKIndentCommand._ClassNameRegex ) ; 
     94                        var indentClass = firstBlock.className.match( FCKIndentCommand._ClassNameRegex ) ; 
    9495                        var indentStep = 0 ; 
    9596                        if ( indentClass != null ) 
     
    105106                else 
    106107                { 
    107                         var indent = parseInt( path.Block.style[this.IndentCSSProperty], 10 ) ; 
     108                        var indent = parseInt( firstBlock.style[this.IndentCSSProperty], 10 ) ; 
    108109                        if ( isNaN( indent ) ) 
    109110                                indent = 0 ; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy