Ticket #4910: 4910.patch

File 4910.patch, 1.4 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/clipboard/plugin.js

     
    188188                doc.getBody().append( pastebin );
    189189
    190190                // It's definitely a better user experience if we make the paste-bin pretty unnoticed
    191                 // by pulling it off the screen, while this hack will make the paste-bin a control type element
    192                 // and that become a selection plain later.
    193                 if ( !CKEDITOR.env.ie && mode != 'html' )
    194                 {
    195                         pastebin.setStyles(
    196                                 {
    197                                         position : 'absolute',
    198                                         left : '-1000px',
    199                                         // Position the bin exactly at the position of the selected element
    200                                         // to avoid any subsequent document scroll.
    201                                         top : sel.getStartElement().getDocumentPosition().y + 'px',
    202                                         width : '1px',
    203                                         height : '1px',
    204                                         overflow : 'hidden'
    205                                 });
    206                 }
     191                // by pulling it off the screen.
     192                pastebin.setStyles(
     193                        {
     194                                position : 'absolute',
     195                                left : '-1000px',
     196                                // Position the bin exactly at the position of the selected element
     197                                // to avoid any subsequent document scroll.
     198                                top : sel.getStartElement().getDocumentPosition().y + 'px',
     199                                width : '1px',
     200                                height : '1px',
     201                                overflow : 'hidden'
     202                        });
    207203
    208204                var bms = sel.createBookmarks();
    209205
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy