Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 4822)
+++ /CKEditor/trunk/CHANGES.html	(revision 4823)
@@ -75,4 +75,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/4901">#4901</a> : Fixed unable to edit any link with popup window's features in Firefox.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4904">#4904</a> : Fixed when paste happen from dialog, it always throw JavaScript error.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4905">#4905</a> : Fixed paste plain text result incorrect when content from dialog.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/pastetext/dialogs/pastetext.js
===================================================================
--- /CKEditor/trunk/_source/plugins/pastetext/dialogs/pastetext.js	(revision 4822)
+++ /CKEditor/trunk/_source/plugins/pastetext/dialogs/pastetext.js	(revision 4823)
@@ -23,6 +23,11 @@
 				{
 					// Get the textarea value.
-					var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue();
-					this.getParentEditor().fire( 'paste', { 'text' : text } );
+					var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue(),
+						editor = this.getParentEditor();
+
+					setTimeout( function()
+					{
+						editor.fire( 'paste', { 'text' : text } );
+					}, 0 );
 				},
 
Index: /CKEditor/trunk/_source/plugins/pastetext/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/pastetext/plugin.js	(revision 4822)
+++ /CKEditor/trunk/_source/plugins/pastetext/plugin.js	(revision 4823)
@@ -113,4 +113,5 @@
 	CKEDITOR.editor.prototype.insertText = function( text )
 	{
+		this.focus();
 		this.fire( 'saveSnapshot' );
 
