Ticket #5144: 5144_2.patch

File 5144_2.patch, 774 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/clipboard/plugin.js

     
    181181                        range = new CKEDITOR.dom.range( doc );
    182182
    183183                // Create container to paste into
    184                 var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : 'div', doc );
     184                var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : CKEDITOR.env.webkit ? 'body' : 'div', doc );
    185185                pastebin.setAttribute( 'id', 'cke_pastebin' );
    186186                // Safari requires a filler node inside the div to have the content pasted into it. (#4882)
    187187                CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy