Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5872)
+++ /CKEditor/trunk/CHANGES.html (revision 5873)
@@ -75,4 +75,5 @@
#5421 : ­ entity not converted when config.entities=false.
#5769 : xhtml code generation problem instead of   (htmlentities, entities,entities_additional,..., configuration).
+ #4472 : [FF3] Browserwindow scrolls to loaded ckEditor.
Updated the following language files:
- #6246 : Chinese Simplified;
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 5872)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js (revision 5873)
@@ -249,4 +249,10 @@
restoreDirty( editor );
+ // Memorize scroll position to restore it later (#4472).
+ var hostDocument = editor.element.getDocument();
+ var hostDocumentElement = hostDocument.getDocumentElement();
+ var scrollTop = hostDocumentElement.$.scrollTop;
+ var scrollLeft = hostDocumentElement.$.scrollLeft;
+
// Simulating keyboard character input by dispatching a keydown of white-space text.
var keyEventSimulate = doc.$.createEvent( "KeyEvents" );
@@ -254,4 +260,7 @@
false, false, false, 0, 32 );
doc.$.dispatchEvent( keyEventSimulate );
+
+ if ( scrollTop != hostDocumentElement.$.scrollTop || scrollLeft != hostDocumentElement.$.scrollLeft )
+ hostDocument.getWindow().$.scrollTo( scrollLeft, scrollTop );
// Restore the original document status by placing the cursor before a bogus br created (#5021).