Ticket #1537: 1537.patch

File 1537.patch, 775 bytes (added by Alfonso Martínez de Lizarrondo, 15 years ago)

Patch for IE

  • editor/_source/internals/fck_ie.js

     
    172172        oSel.createRange().pasteHTML( html ) ;
    173173
    174174        // Remove the fake node
    175         FCK.EditorDocument.getElementById('__fakeFCKRemove__').removeNode( true ) ;
     175        var fake = FCK.EditorDocument.getElementById('__fakeFCKRemove__') ;
     176        // If the span is the only child of a node (so the inserted HTML is beyond that),
     177        // remove also that parent that isn't needed. #1537
     178        if (fake.parentNode.childNodes.length == 1)
     179                fake = fake.parentNode ;
     180        fake.removeNode( true ) ;
    176181
    177182        FCKDocumentProcessor.Process( FCK.EditorDocument ) ;
    178183
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy