Ticket #4273: fcktablehandler_gecko.js-select-bug-2.patch

File fcktablehandler_gecko.js-select-bug-2.patch, 740 bytes (added by dshafik, 3 years ago)

Added missing semi-colon that breaks FCK when compressed

  • editor/_source/internals/fcktablehandler_gecko.js

    old new  
    3737 
    3838                return aCells ; 
    3939        } 
     40         
     41        // Keep the original anchorNode in case no child TD/TH found 
     42        var anchorNode = oSelection.anchorNode ; 
    4043 
    4144        for ( var i = 0 ; i < oSelection.rangeCount ; i++ ) 
    4245        { 
     
    5255                        aCells[aCells.length] = oCell ; 
    5356        } 
    5457 
     58        // We didn't find any child TD/TH, so look up for the nearest one. 
     59        if ( aCells.length == 0 ) { 
     60                var oParent = FCKTools.GetElementAscensor( anchorNode, 'TD,TH' ) ; 
     61                if ( oParent ) 
     62                        aCells[0] = oParent ; 
     63        } 
     64         
    5565        return aCells ; 
    5666} 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy