Ticket #2525: 2525.patch

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

     
    6262                        now are shown properly.</li>
    6363                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2496">#2496</a>] Using the Paste
    6464                        dialogs in IE might insert the content at the start of the editor.</li>
     65                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2525">#2525</a>] Fixed JavaScript
     66                        error in Google Chrome when StartupShowBlocks is set to true.</li>
    6567        </ul>
    6668        <p>
    6769                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/commandclasses/fckshowblocks.js

     
    5656        else
    5757        {
    5858                var focus = FCK.EditorWindow.getSelection().focusNode ;
    59                 if ( focus.nodeType != 1 )
    60                         focus = focus.parentNode ;
    61                 FCKDomTools.ScrollIntoView( focus, false ) ;
     59                if ( focus )
     60                {
     61                        if ( focus.nodeType != 1 )
     62                                focus = focus.parentNode ;
     63                        FCKDomTools.ScrollIntoView( focus, false ) ;
     64                }
    6265        }
    6366
    6467        FCK.Events.FireEvent( 'OnSelectionChange' ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy