Opened 17 years ago
Last modified 17 years ago
#2525 closed Bug
Google Chrome bug if FCKConfig.StartupShowBlocks is set to true. — at Initial Version
Reported by: | fournaise | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.6.4 |
Component: | General | Version: | FCKeditor 2.6.3 Beta |
Keywords: | Confirmed Chrome Firefox Review+ | Cc: | alexandre@… |
Description
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