Changeset 1136

Show
Ignore:
Timestamp:
2007-11-29 10:12:40 (2 years ago)
Author:
martinkou
Message:

Fix for #1491 : Attempt to fix johng's bug by allowing for the _EnsureFocusIE() kludge to run when the caret is directly under the <body> element.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r1134 r1136  
    310310 
    311311        // Only apply the fix when in a block, and the block is empty. 
    312         if ( parentNode.childNodes.length > 0 || 
    313                  !( FCKListsLib.BlockElements[parentTag] ||  
    314                     FCKListsLib.NonEmptyBlockElements[parentTag] ) ) 
    315         { 
    316                 return ; 
     312        if ( parentTag != 'body' ) 
     313        { 
     314                if ( parentNode.childNodes.length > 0 || 
     315                                !( FCKListsLib.BlockElements[parentTag] ||  
     316                                        FCKListsLib.NonEmptyBlockElements[parentTag] ) ) 
     317                        return ; 
    317318        } 
    318319