Index: /CKEditor/branches/versions/3.4.x/CHANGES.html
===================================================================
--- /CKEditor/branches/versions/3.4.x/CHANGES.html (revision 5898)
+++ /CKEditor/branches/versions/3.4.x/CHANGES.html (revision 5899)
@@ -35,4 +35,15 @@
CKEditor Changelog
+
+ CKEditor 3.4.2
+
+ New features:
+
+
+ Fixed issues:
+
+ - #6153 : Chrome: tab focus is wrong.
+
CKEditor 3.4.1
Index: /CKEditor/branches/versions/3.4.x/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.4.x/_source/plugins/wysiwygarea/plugin.js (revision 5898)
+++ /CKEditor/branches/versions/3.4.x/_source/plugins/wysiwygarea/plugin.js (revision 5899)
@@ -626,4 +626,6 @@
});
+ var wasFocused;
+
domWindow.on( 'focus', function()
{
@@ -634,4 +636,22 @@
else if ( CKEDITOR.env.opera )
doc.getBody().focus();
+ // Webkit needs focus for the first time on the HTML element.
+ else if ( CKEDITOR.env.webkit )
+ {
+ if ( !wasFocused )
+ {
+ editor.document.getDocumentElement().focus();
+ wasFocused = 1;
+
+ // Webkit does not scroll to the cursor position after first focus.
+ setTimeout(function()
+ {
+ doc.$.execCommand( 'inserthtml', false, '' );
+ var marker = doc.getById( 'cke_focus_marker' );
+ marker.scrollIntoView();
+ marker.remove();
+ }, 0 );
+ }
+ }
editor.focusManager.focus();