Show
Ignore:
Timestamp:
2008-07-04 09:00:18 (6 months ago)
Author:
martinkou
Message:

Fixed the issue where the edit div and delete div context menues don't appear in Firefox/Windows when the user right clicks in the empty space inside the div or in the paragraphs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/div_container/editor/dialog/fck_div.html

    r2105 r2171  
    3838var AlwaysCreate = dialog.Args().CustomValue ; 
    3939 
    40 var ActiveEl = !AlwaysCreate ? dialog.Selection.GetSelection().MoveToAncestorNode( 'DIV' ) : null ; 
    41 if ( ActiveEl ) 
    42 { 
    43         ActiveEl = ( new FCKElementPath( ActiveEl ) ).BlockLimit ; 
     40var ActiveEl = null ; 
     41if ( !AlwaysCreate ) 
     42{ 
     43        var oSelection = dialog.Selection.GetSelection() ; 
     44        ActiveEl = ( new FCKElementPath( oSelection.GetSelectedElement() || oSelection.GetParentElement() ) ).BlockLimit ; 
    4445        if ( ActiveEl && ActiveEl.nodeName.toLowerCase() != 'div' ) 
    4546                ActiveEl = null ;