Changeset 1731

Show
Ignore:
Timestamp:
2008-03-19 10:28:54 (6 months ago)
Author:
martinkou
Message:

Fixed #2028 : Fixed JavaScript error when EnterMode=br and user tries to insert a page break.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fck_othercommands.js

    r1629 r1731  
    258258        oRange.MoveToSelection() ; 
    259259        var oSplitInfo = oRange.SplitBlock() ; 
    260         if ( oSplitInfo.NextBlock ) 
    261                 oSplitInfo.NextBlock.parentNode.insertBefore( oFakeImage, oSplitInfo.NextBlock ) ; 
    262         else 
    263                 oSplitInfo.PreviousBlock.parentNode.insertBefore( oFakeImage, oSplitInfo.PreviousBlock.nextSibling ) ; 
     260        oRange.InsertNode( oFakeImage ) ; 
    264261 
    265262        FCK.Events.FireEvent( 'OnSelectionChange' ) ; 
  • FCKeditor/trunk/_whatsnew.html

    r1730 r1731  
    9898                        issue where context menus sometimes don't disappear after selecting an option. 
    9999                        </li> 
     100                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2028">#2028</a>] Fixed 
     101                        JavaScript error when EnterMode=br and user tries to insert a page break.</li> 
    100102        </ul> 
    101103        <h3>