Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 6908)
+++ /CKEditor/trunk/CHANGES.html	(revision 6909)
@@ -40,5 +40,5 @@
 			New features:</p>
 	<ul>
-		<li></li>
+		<li><a href="http://dev.ckeditor.com/ticket/6492">#6492</a> : Find/replace dialog now will be populated with editor's selected text.</li>
 	</ul>
 	<p>
Index: /CKEditor/trunk/_source/plugins/find/dialogs/find.js
===================================================================
--- /CKEditor/trunk/_source/plugins/find/dialogs/find.js	(revision 6908)
+++ /CKEditor/trunk/_source/plugins/find/dialogs/find.js	(revision 6909)
@@ -854,4 +854,12 @@
 				finder.searchRange = getSearchRange();
 
+				// Fill in the find field with selected text.
+				var selectedText = this.getParentEditor().getSelection().getSelectedText(),
+					patternFieldId = ( startupPage == 'find' ? 'txtFindFind' : 'txtFindReplace' );
+
+				var field = this.getContentElement( startupPage, patternFieldId );
+				field.setValue( selectedText );
+				field.select();
+
 				this.selectPage( startupPage );
 
Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6908)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 6909)
@@ -1139,4 +1139,24 @@
 		},
 
+		/**
+		 * Retrieves the text contained within the range, empty string is returned for non-text selection.
+		 * @returns {String} string of text of the current selection.
+		 * @example
+		 * var text = editor.getSelectedText();
+		 * alert( text );
+		 */
+		getSelectedText : function()
+		{
+			var cache = this._.cache;
+			if ( cache.selectedText !== undefined )
+				return cache.selectedText;
+
+			var text = '', native = this.getNative();
+			if ( this.getType() == CKEDITOR.SELECTION_TEXT )
+				text = CKEDITOR.env.ie ? native.createRange().text : native.toString();
+
+			return ( cache.selectedText = text );
+		},
+
 		lock : function()
 		{
@@ -1145,4 +1165,5 @@
 			this.getStartElement();
 			this.getSelectedElement();
+			this.getSelectedText();
 
 			// The native selection is not available when locked.
