Changeset 2158
- Timestamp:
- 2008-07-03 12:22:20 (21 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 modified
-
editor/_source/internals/fcktablehandler.js (modified) (4 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fcktablehandler.js
r1565 r2158 678 678 FCKTableHandler._InstallTableMap = function( tableMap, table ) 679 679 { 680 // Workaround for #1917 : MSIE will always report a cell's rowSpan as 1 as long 681 // as the cell is not attached to a row. So we'll need an alternative attribute 682 // for storing the calculated rowSpan in IE. 683 var rowSpanAttr = FCKBrowserInfo.IsIE ? "_fckrowspan" : "rowSpan" ; 684 680 685 // Clear the table of all rows first. 681 686 while ( table.rows.length > 0 ) … … 693 698 if ( cell.parentNode ) 694 699 cell.parentNode.removeChild( cell ) ; 695 cell.colSpan = cell .rowSpan= 1 ;700 cell.colSpan = cell[rowSpanAttr] = 1 ; 696 701 } 697 702 } … … 728 733 continue ; 729 734 if ( tableMap[j-1] && tableMap[j-1][i] == cell ) 730 cell .rowSpan++ ;735 cell[rowSpanAttr]++ ; 731 736 if ( ! tableMap[j+1] || tableMap[j+1][i] != cell ) 732 737 cell._rowScanned = true ; … … 766 771 } 767 772 rowObj.appendChild( cell ) ; 773 if ( rowSpanAttr != 'rowSpan' ) 774 { 775 cell.rowSpan = cell[rowSpanAttr] ; 776 cell.removeAttribute( rowSpanAttr ) ; 777 } 768 778 j += cell.colSpan ; 769 779 if ( cell.colSpan == 1 ) -
FCKeditor/trunk/_whatsnew.html
r2157 r2158 68 68 where the fit window command loses the current selection and scroll position in the 69 69 editing area.</li> 70 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1917">#1917</a>] Fixed the issue 71 where the merge down command for tables cells does not work in IE for more than two 72 cells.</li> 70 73 </ul> 71 74 <p>