Ticket #2874: 2874_2.patch
File 2874_2.patch, 837 bytes (added by , 15 years ago) |
---|
-
fck_table.html
287 287 288 288 var eCaption = oEditor.FCKDomTools.GetFirstChild( table, 'CAPTION' ) ; 289 289 290 if ( eCaption && !oEditor.FCKBrowserInfo.IsIE ) 291 eCaption.parentNode.removeChild( eCaption ) ; 292 290 293 if ( document.getElementById('txtCaption').value != '' ) 291 294 { 292 if ( !eCaption )295 if ( !eCaption || !oEditor.FCKBrowserInfo.IsIE ) 293 296 { 294 297 eCaption = oDoc.createElement( 'CAPTION' ) ; 295 298 table.insertBefore( eCaption, table.firstChild ) ; … … 303 306 // table.deleteCaption() (see #505). 304 307 if ( oEditor.FCKBrowserInfo.IsIE ) 305 308 eCaption.innerHTML = '' ; 306 else307 eCaption.parentNode.removeChild( eCaption ) ;308 309 } 309 310 310 311 return true ;