Ticket #1917: fcktablehandler.js.patch

File fcktablehandler.js.patch, 1.2 KB (added by Karen Ananiev, 16 years ago)
  • editor/_source/internals/fcktablehandler.js

     
    1 /*
     1/*
    22 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
    33 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
    44 *
     
    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            {
     733                if ( cell.rowSpan > 1 && FCKBrowserInfo.IsIE )
     734                    rowSpan += cell.rowSpan ;
     735                cell.rowSpan = ++rowSpan ;
     736            }
     737            else
     738            {
     739                rowSpan = 1 ;
     740            }
    731741            if ( ! tableMap[j+1] || tableMap[j+1][i] != cell )
    732742                cell._rowScanned = true ;
    733743        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy