Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5223)
+++ /CKEditor/trunk/CHANGES.html (revision 5224)
@@ -55,4 +55,5 @@
#4661 : Translation missing in link dialog.
#5240 : Flash alignment property is not presented visually.
+ #4910 : Pasting in IE scrolls document to the end.
Index: /CKEditor/trunk/_source/plugins/clipboard/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/clipboard/plugin.js (revision 5223)
+++ /CKEditor/trunk/_source/plugins/clipboard/plugin.js (revision 5224)
@@ -189,20 +189,16 @@
// It's definitely a better user experience if we make the paste-bin pretty unnoticed
- // by pulling it off the screen, while this hack will make the paste-bin a control type element
- // and that become a selection plain later.
- 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'
- });
- }
+ // by pulling it off the screen.
+ 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'
+ });
var bms = sel.createBookmarks();