Changeset 599

Show
Ignore:
Timestamp:
2007-07-31 09:45:18 (16 months ago)
Author:
martinkou
Message:

Fix for #393 : Fixed the JavaScript error "node.parentNode.tagName has no properties" when caret reaches the end of document.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_gecko.js

    r598 r599  
    124124                                // no suitable next siblings under our grandparent! what to do next? 
    125125                                while ( node.parentNode  
     126                                        && node.parentNode != FCK.EditorDocument.body 
     127                                        && node.parentNode != FCK.EditorDocument.documentElement 
    126128                                        && node == node.parentNode.lastChild  
    127129                                        && ( ! FCKListsLib.BlockElements[node.parentNode.tagName.toLowerCase()] ) )