Ticket #676: 676_3.patch
File 676_3.patch, 842 bytes (added by , 17 years ago) |
---|
-
editor/dialog/common/fck_dialog_common.js
263 263 if ( oldNode ) 264 264 { 265 265 CopyAttributes( oldNode, oNewNode, oAttributes ) ; 266 MoveContents( oldNode, oNewNode ) ;266 oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ; 267 267 oldNode.parentNode.removeChild( oldNode ) ; 268 268 oldNode = null ; 269 269 … … 326 326 oDest.style.cssText = oSource.style.cssText ; 327 327 } 328 328 329 // Move the contents from one node to the other330 function MoveContents( oSource, oDest )331 {332 while ( oSource.firstChild )333 {334 var oNode = oSource.removeChild( oSource.firstChild ) ;335 oDest.appendChild( oNode ) ;336 }337 }