Ticket #5667: 5667.patch

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

     
    190190                CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) );
    191191                doc.getBody().append( pastebin );
    192192
    193                 // It's definitely a better user experience if we make the paste-bin pretty unnoticed
    194                 // by pulling it off the screen.
    195193                pastebin.setStyles(
    196194                        {
    197195                                position : 'absolute',
    198                                 left : '-1000px',
    199196                                // Position the bin exactly at the position of the selected element
    200197                                // to avoid any subsequent document scroll.
    201198                                top : sel.getStartElement().getDocumentPosition().y + 'px',
     
    204201                                overflow : 'hidden'
    205202                        });
    206203
     204                // It's definitely a better user experience if we make the paste-bin pretty unnoticed
     205                // by pulling it off the screen.
     206                pastebin.setStyle( this.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' );
     207
    207208                var bms = sel.createBookmarks();
    208209
    209210                // Turn off design mode temporarily before give focus to the paste bin.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy