Changeset 543
- Timestamp:
- 2007-07-26 01:03:49 (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/commandclasses/fckfitwindow.js
r529 r543 57 57 if ( eParent.nodeType == 1 ) 58 58 { 59 var hijackNode = null ; 60 var hijackSibling = null ; 61 if ( eParent.tagName.toLowerCase() == 'form' && eParent.elements.namedItem( 'style' ) ) 62 { 63 hijackNode = eParent.elements.namedItem( 'style' ) ; 64 hijackSibling = hijackNode.nextSibling ; 65 eParent.removeChild( hijackNode ) ; 66 } 59 67 eParent._fckSavedStyles = FCKTools.SaveStyles( eParent ) ; 60 68 eParent.style.zIndex = FCKConfig.FloatingPanelsZIndex - 1 ; 69 if ( hijackNode ) 70 { 71 if ( hijackSibling ) 72 eParent.insertBefore( hijackNode, hijackSibling ) ; 73 else 74 eParent.appendChild( hijackNode ) ; 75 } 61 76 } 62 77 }