Ticket #1917: fcktablehandler.js.patch
File fcktablehandler.js.patch, 1.2 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fcktablehandler.js
1 /*1 /* 2 2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 3 3 * Copyright (C) 2003-2008 Frederico Caldeira Knabben 4 4 * … … 719 719 // Scan by columns and set rowSpan. 720 720 for ( var i = 0 ; i <= maxCol ; i++ ) 721 721 { 722 var rowSpan = 1 ; 723 722 724 for ( var j = 0 ; j < tableMap.length ; j++ ) 723 725 { 724 726 if ( ! tableMap[j] ) … … 727 729 if ( ! cell || cell._rowScanned === true ) 728 730 continue ; 729 731 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 } 731 741 if ( ! tableMap[j+1] || tableMap[j+1][i] != cell ) 732 742 cell._rowScanned = true ; 733 743 }