Ticket #2028: 2028.patch

File 2028.patch, 1.3 KB (added by Martin Kou, 13 years ago)
  • _whatsnew.html

     
    9292                        opened.</li>
    9393                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2024">#2024</a>] Fixed
    9494                        JavaScript error in IE when the user tries to open dialogs in Source mode.</li>
     95                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2028">#2028</a>] Fixed
     96                        JavaScript error when EnterMode=br and user tries to insert a page break.</li>
    9597        </ul>
    9698        <h3>
    9799                Version 2.6 Beta 1</h3>
  • editor/_source/commandclasses/fck_othercommands.js

     
    257257        var oRange = new FCKDomRange( FCK.EditorWindow ) ;
    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' ) ;
    266263}
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy