- Timestamp:
- 2008-07-04 09:00:18 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/div_container/editor/dialog/fck_div.html
r2105 r2171 38 38 var AlwaysCreate = dialog.Args().CustomValue ; 39 39 40 var ActiveEl = !AlwaysCreate ? dialog.Selection.GetSelection().MoveToAncestorNode( 'DIV' ) : null ; 41 if ( ActiveEl ) 42 { 43 ActiveEl = ( new FCKElementPath( ActiveEl ) ).BlockLimit ; 40 var ActiveEl = null ; 41 if ( !AlwaysCreate ) 42 { 43 var oSelection = dialog.Selection.GetSelection() ; 44 ActiveEl = ( new FCKElementPath( oSelection.GetSelectedElement() || oSelection.GetParentElement() ) ).BlockLimit ; 44 45 if ( ActiveEl && ActiveEl.nodeName.toLowerCase() != 'div' ) 45 46 ActiveEl = null ;