Ticket #1917: 1917.patch

File 1917.patch, 1.6 KB (added by martinkou, 21 months ago)
  • _whatsnew.html

     
    6464                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed the issue 
    6565                        where the fit window command loses the current selection and scroll position in the 
    6666                        editing area.</li> 
     67                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1917">#1917</a>] Fixed the issue 
     68                        where the merge down command for tables cells does not work in IE for more than two 
     69                        cells.</li> 
    6770        </ul> 
    6871        <p> 
    6972                <a href="_whatsnew_history.html">See previous versions history</a></p> 
  • editor/_source/internals/fcktablehandler.js

     
    692692                        var cell = tableMap[i][j] ; 
    693693                        if ( cell.parentNode ) 
    694694                                cell.parentNode.removeChild( cell ) ; 
    695                         cell.colSpan = cell.rowSpan = 1 ; 
     695                        cell.colSpan = 1 ; 
    696696                } 
    697697        } 
    698698 
     
    719719        // Scan by columns and set rowSpan. 
    720720        for ( var i = 0 ; i <= maxCol ; i++ ) 
    721721        { 
     722                var rowSpan = 1 ; 
     723 
    722724                for ( var j = 0 ; j < tableMap.length ; j++ ) 
    723725                { 
    724726                        if ( ! tableMap[j] ) 
     
    727729                        if ( ! cell || cell._rowScanned === true ) 
    728730                                continue ; 
    729731                        if ( tableMap[j-1] && tableMap[j-1][i] == cell ) 
    730                                 cell.rowSpan++ ; 
     732                                cell.rowSpan = ++rowSpan ; 
     733                        else 
     734                                rowSpan = 1 ; 
    731735                        if ( ! tableMap[j+1] || tableMap[j+1][i] != cell ) 
    732736                                cell._rowScanned = true ; 
    733737                }