views:

48

answers:

0

Does anybody know how to stop document auto-scrolling caused by pasteBin in Internet Explorer? This does not happen with other browser because of the following code in clipboard plugin:

    if ( !CKEDITOR.env.ie && mode != 'html' )
  {
   pastebin.setStyles(
    {
     position : 'absolute',
     left : '-1000px',
     // Position the bin exactly at the position of the selected element
     // to avoid any subsequent document scroll.
     top : sel.getStartElement().getDocumentPosition().y + 'px',
     width : '1px',
     height : '1px',
     overflow : 'hidden'
    });
  }