Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 5579)
+++ /CKEditor/trunk/CHANGES.html	(revision 5580)
@@ -45,5 +45,5 @@
 			Fixed issues:</p>
 	<ul>
-		<li><a href="http://dev.fckeditor.net/ticket/5780">#5780</a> : Text selection lost when open some of the dialogs.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/5780">#5780</a> : Text selection lost when opening some of the dialogs.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/5787">#5787</a> : Liststyle plugin wasn't packaged into the core (CKEDITOR.resourceManager.load exception).</li>
 		<li><a href="http://dev.fckeditor.net/ticket/5637">#5637</a> : Fix wrong nesting that generated "&lt;head&gt; must be a child of &lt;html&gt;" warning in Webkit.</li>
Index: /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js	(revision 5579)
+++ /CKEditor/trunk/_source/plugins/htmldataprocessor/plugin.js	(revision 5580)
@@ -184,5 +184,5 @@
 					delete element.attributes[ 'class' ];
 				},
-				
+
 				body : function( element )
 				{
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 5579)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 5580)
@@ -833,24 +833,26 @@
 			function blinkCursor( retry )
 			{
-				CKEDITOR.tools.tryThese( function ()
-				{
-					editor.document.$.designMode = 'on';
-					setTimeout( function ()
+				CKEDITOR.tools.tryThese(
+					function()
 					{
+						editor.document.$.designMode = 'on';
+						setTimeout( function ()
+						{
+							editor.document.$.designMode = 'off';
+							editor.document.getBody().focus();
+						}, 50 );
+					},
+					function()
+					{
+						// The above call is known to fail when parent DOM
+						// tree layout changes may break design mode. (#5782)
+						// Refresh the 'contentEditable' is a cue to this.
 						editor.document.$.designMode = 'off';
-						editor.document.getBody().focus();
-					}, 50 );
-				}, function ()
-				{
-					// The above call is known to fail when parent DOM
-					// tree layout changes may break design mode. (#5782)
-					// Refresh the 'contentEditable' is a cue to this.
-					editor.document.$.designMode = 'off';
-					var body = editor.document.getBody();
-					body.setAttribute( 'contentEditable', false );
-					body.setAttribute( 'contentEditable', true );
-					// Try it again once..
-					!retry && blinkCursor( 1 );
-				})
+						var body = editor.document.getBody();
+						body.setAttribute( 'contentEditable', false );
+						body.setAttribute( 'contentEditable', true );
+						// Try it again once..
+						!retry && blinkCursor( 1 );
+					});
 			}
 
