Changeset 2283

Show
Ignore:
Timestamp:
2008-07-25 07:47:28 (6 months ago)
Author:
martinkou
Message:

Fixed #2394: Fixed JavaScript error with the "split vertically" command in IE when attempting to split cells in the last row of a table.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fcktablehandler.js

    r2158 r2283  
    551551                var newCellRowIndex = currentRowIndex + 1 ; 
    552552                var newRow = FCK.EditorDocument.createElement( 'tr' ) ; 
    553                 currentCell.parentNode.parentNode.insertBefore( newRow, currentCell.parentNode.parentNode.rows[newCellRowIndex] ) ; 
     553                var tBody = currentCell.parentNode.parentNode ; 
     554                if ( tBody.rows.length > newCellRowIndex ) 
     555                        tBody.insertBefore( newRow, tBody.rows[newCellRowIndex] ) ; 
     556                else 
     557                        tBody.appendChild( newRow ) ; 
    554558 
    555559                // 2. +1 to rowSpan for all cells crossing currentCell's row. 
  • FCKeditor/trunk/_whatsnew.html

    r2281 r2283  
    110110                        source logic for comments in IE.</li> 
    111111                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2387">#2387</a>] Fixed JavaScript 
    112                         with list commands when the editable document is selected with Ctrl-A.</li> 
     112                        error with list commands when the editable document is selected with Ctrl-A.</li> 
    113113                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2390">#2390</a>] Fixed the issue where  
    114114                        indent styles in JavaScript-generated &lt;p&gt; blocks are erased in IE.</li>  
     115                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2394">#2394</a>] Fixed JavaScript 
     116                        error with the "split vertically" command in IE when attempting to split cells in the last 
     117                        row of a table.</li> 
    115118        </ul> 
    116119        <p>