Ticket #2525 (closed Bug: fixed)
Chrome: error if FCKConfig.StartupShowBlocks = true
| Reported by: | fournaise | Owned by: | martinkou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6.4 |
| Component: | General | Version: | FCKeditor 2.6.3 Beta |
| Keywords: | Confirmed Chrome Firefox Review+ | Cc: | alexandre@… |
Description (last modified by martinkou) (diff)
Hello, If you execute FCKEditor on Google Chrome on the latest trunk (seem appear in the 2.6.3), I have an error if FCKConfig.StartupShowBlocks is set to true.
Uncaught TypeError: Cannot read property 'nodeType' of null http://127.0.0.1/www.lib/fckeditor/edit ... wblocks.js (line 59)
[...]
if ( FCKBrowserInfo.IsIE )
{
try
{
FCK.EditorDocument.selection.createRange().select() ;
}
catch ( e )
{}
}
else
{
var focus = FCK.EditorWindow.getSelection().focusNode ;
if ( focus.nodeType != 1 )
Uncaught TypeError: Cannot read property 'nodeType' of null
focus = focus.parentNode ;
FCKDomTools.ScrollIntoView( focus, false ) ;
}
[...]
To fix the problem I have just added "try catch" in the "else" branch.
regards Frederic
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
