Ticket #5667: 5667.patch
File 5667.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/clipboard/plugin.js
190 190 CKEDITOR.env.webkit && pastebin.append( doc.createText( '\xa0' ) ); 191 191 doc.getBody().append( pastebin ); 192 192 193 // It's definitely a better user experience if we make the paste-bin pretty unnoticed194 // by pulling it off the screen.195 193 pastebin.setStyles( 196 194 { 197 195 position : 'absolute', 198 left : '-1000px',199 196 // Position the bin exactly at the position of the selected element 200 197 // to avoid any subsequent document scroll. 201 198 top : sel.getStartElement().getDocumentPosition().y + 'px', … … 204 201 overflow : 'hidden' 205 202 }); 206 203 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 207 208 var bms = sel.createBookmarks(); 208 209 209 210 // Turn off design mode temporarily before give focus to the paste bin.