Ticket #2874: 2874_2.patch

File 2874_2.patch, 837 bytes (added by kwillems, 3 years ago)
  • fck_table.html

     
    287287 
    288288        var eCaption = oEditor.FCKDomTools.GetFirstChild( table, 'CAPTION' ) ; 
    289289 
     290        if ( eCaption && !oEditor.FCKBrowserInfo.IsIE ) 
     291                eCaption.parentNode.removeChild( eCaption ) ; 
     292 
    290293        if ( document.getElementById('txtCaption').value != '' ) 
    291294        { 
    292                 if ( !eCaption ) 
     295                if ( !eCaption || !oEditor.FCKBrowserInfo.IsIE ) 
    293296                { 
    294297                        eCaption = oDoc.createElement( 'CAPTION' ) ; 
    295298                        table.insertBefore( eCaption, table.firstChild ) ; 
     
    303306                // table.deleteCaption() (see #505). 
    304307                if ( oEditor.FCKBrowserInfo.IsIE ) 
    305308                        eCaption.innerHTML = '' ; 
    306                 else 
    307                         eCaption.parentNode.removeChild( eCaption ) ; 
    308309        } 
    309310 
    310311        return true ; 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy