We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6aa231 + 1fe0478 commit 8341c16Copy full SHA for 8341c16
plugins/clipboard/plugin.js
@@ -743,8 +743,15 @@
743
} );
744
}
745
746
+ var scrollTop = CKEDITOR.document.getWindow().getScrollPosition().y;
747
+
748
// Wait a while and grab the pasted contents.
749
setTimeout( function() {
750
+ // Restore main window's scroll position which could have been changed
751
+ // by browser in cases described in #9771.
752
+ if ( CKEDITOR.env.webkit || CKEDITOR.env.opera )
753
+ CKEDITOR.document[ CKEDITOR.env.webkit ? 'getBody' : 'getDocumentElement' ]().$.scrollTop = scrollTop;
754
755
// Blur will be fired only on non-native paste. In other case manually remove listener.
756
blurListener && blurListener.removeListener();
757
0 commit comments