Ticket #4882: 4882.patch

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

     
    170170                // Create container to paste into
    171171                var pastebin = new CKEDITOR.dom.element( mode == 'text' ? 'textarea' : 'div', doc );
    172172                pastebin.setAttribute( 'id', 'cke_pastebin' );
     173                // Safari requires a filler node inside the div to have the content pasted into it. (#4882)
     174                CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) );
    173175                doc.getBody().append( pastebin );
    174176
    175177                // It's definitely a better user experience if we make the paste-bin pretty unnoticed
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy