Changeset 1076

Show
Ignore:
Timestamp:
2007-11-14 00:54:35 (2 years ago)
Author:
martinkou
Message:

Fixed #1524 : Fixed the issue where the cursor jumps to start or end of a list block when it is placed at the end of a list item consisting of a link at the end.

Files:
1 modified

Legend:

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

    r1066 r1076  
    143143                                        && node.parentNode != FCK.EditorDocument.documentElement 
    144144                                        && node == node.parentNode.lastChild 
    145                                         && ( ! FCKListsLib.BlockElements[node.parentNode.tagName.toLowerCase()] ) ) 
     145                                        && ( ! FCKListsLib.BlockElements[node.parentNode.tagName.toLowerCase()] 
     146                                          && ! FCKListsLib.NonEmptyBlockElements[node.parentNode.tagName.toLowerCase()] ) ) 
    146147                                        node = node.parentNode ; 
    147148 
     
    172173 
    173174                                                var stopTag = stopNode.tagName.toLowerCase() ; 
    174                                                 if ( FCKListsLib.BlockElements[stopTag] || FCKListsLib.EmptyElements[stopTag] ) 
     175                                                if ( FCKListsLib.BlockElements[stopTag] || FCKListsLib.EmptyElements[stopTag]  
     176                                                        || FCKListsLib.NonEmptyBlockElements[stopTag] ) 
    175177                                                        break ; 
    176178                                                stopNode = stopNode.nextSibling ;