Index: /CKEditor.NET/trunk/CHANGES.html
===================================================================
--- /CKEditor.NET/trunk/CHANGES.html	(revision 7284)
+++ /CKEditor.NET/trunk/CHANGES.html	(revision 7285)
@@ -75,13 +75,14 @@
 			New features:</p>
 	<ul>
-		<li><a href="http://dev.ckeditor.com/ticket/7850">#7850</a> : CKEditor now fires the OnTextChanged event.</li>
-		<li><a href="http://dev.ckeditor.com/ticket/7851">#7851</a> : AutoPostBack property is now available.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/7850">#7850</a> : CKEditor now fires the <code>OnTextChanged</code> event.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/7851">#7851</a> : <code>AutoPostBack</code> property is now available.</li>
 	</ul>
 	<p>
 			Fixed issues:</p>
 	<ul>
-		<li><a href="http://dev.ckeditor.com/ticket/8154">#8154</a> : Configurations were not honoured when set by code. Moved scripts registration from OnLoad to OnPreRender.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/8154">#8154</a> : Configuration is not preserved when set by code. Moved scripts registration from <code>OnLoad</code> to <code>OnPreRender</code>.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/8089">#8089</a> : Editor disappears on Ajax postback.</li>
-		<li><a href="http://dev.ckeditor.com/ticket/8005">#8005</a> : Editor not displayed after postback in Dynamic Data site.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/8005">#8005</a> : Editor not displayed after a postback in a Dynamic Data site.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/8381">#8381</a> : <code>RequiredFieldValidator</code> returns wrong result on a first submit.</li>
 	</ul>
 	<h2>
Index: /CKEditor.NET/trunk/CKEditor.NET/CKEditorControl.cs
===================================================================
--- /CKEditor.NET/trunk/CKEditor.NET/CKEditorControl.cs	(revision 7284)
+++ /CKEditor.NET/trunk/CKEditor.NET/CKEditorControl.cs	(revision 7285)
@@ -1035,5 +1035,5 @@
 			// http://msdn.microsoft.com/en-us/library/bb386417.aspx
 			// Check _dev/msajax.js for an uncompressed version (available in CKEditor.Net downloaded from SVN).
-			scriptInit += @"var CKEditor_Controls=[],CKEditor_Init=[];function CKEditor_TextBoxEncode(d,e){var f;if(typeof CKEDITOR=='undefined'||typeof CKEDITOR.instances[d]=='undefined'){f=document.getElementById(d);if(f)f.value=f.value.replace(/</g,'&lt;').replace(/>/g,'&gt;');}else{var g=CKEDITOR.instances[d];if(e&&(typeof Page_BlockSubmit=='undefined'||!Page_BlockSubmit)){g.destroy();f=document.getElementById(d);if(f)f.style.visibility='hidden';}else g.updateElement();}};(function(){if(typeof CKEDITOR!='undefined'){var d=document.getElementById('#this.ClientID#');if(d)d.style.visibility='hidden';}var e=function(){var f=CKEditor_Controls,g=CKEditor_Init,h=window.pageLoad,i=function(){for(var j=f.length;j--;){var k=document.getElementById(f[j]);if(k&&k.value&&(k.value.indexOf('<')==-1||k.value.indexOf('>')==-1))k.value=k.value.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');}if(typeof CKEDITOR!='undefined')for(var j=0;j<g.length;j++)g[j].call(this);};window.pageLoad=function(j,k){if(k.get_isPartialLoad())setTimeout(i,0);if(h&&typeof h=='function')h.call(this,j,k);};setTimeout(i,0);};if(typeof Sys!='undefined'&&typeof Sys.Application!='undefined')Sys.Application.add_load(e);if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();";
+			scriptInit += @"var CKEditor_Controls=[],CKEditor_Init=[];function CKEditor_TextBoxEncode(d,e){var f;if(typeof CKEDITOR=='undefined'||typeof CKEDITOR.instances[d]=='undefined'){f=document.getElementById(d);if(f)f.value=f.value.replace(/</g,'&lt;').replace(/>/g,'&gt;');}else{var g=CKEDITOR.instances[d];if(e&&(typeof Page_BlockSubmit=='undefined'||!Page_BlockSubmit)){g.destroy();f=document.getElementById(d);if(f)f.style.visibility='hidden';}else g.updateElement();}};(function(){if(typeof CKEDITOR!='undefined'){var d=document.getElementById('#this.ClientID#');if(d)d.style.visibility='hidden';}var e=function(){var f=CKEditor_Controls,g=CKEditor_Init,h=window.pageLoad,i=function(){for(var j=f.length;j--;){var k=document.getElementById(f[j]);if(k&&k.value&&(k.value.indexOf('<')==-1||k.value.indexOf('>')==-1))k.value=k.value.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');}if(typeof CKEDITOR!='undefined')for(var j=0;j<g.length;j++)g[j].call(this);};window.pageLoad=function(j,k){if(k.get_isPartialLoad())setTimeout(i,0);if(h&&typeof h=='function')h.call(this,j,k);};if(typeof Page_ClientValidate=='function'&&typeof CKEDITOR!='undefined')Page_ClientValidate=CKEDITOR.tools.override(Page_ClientValidate,function(j){return function(){for(var k in CKEDITOR.instances){if(document.getElementById(k))CKEDITOR.instances[k].updateElement();}return j.apply(this,arguments);};});setTimeout(i,0);};if(typeof Sys!='undefined'&&typeof Sys.Application!='undefined')Sys.Application.add_load(e);if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();";
 			scriptInit = scriptInit.Replace("#this.ClientID#", this.ClientID);
 			this.RegisterStartupScript(this.GetType(), "CKEditorForNet", scriptInit, true);
Index: /CKEditor.NET/trunk/_dev/msajax.js
===================================================================
--- /CKEditor.NET/trunk/_dev/msajax.js	(revision 7284)
+++ /CKEditor.NET/trunk/_dev/msajax.js	(revision 7285)
@@ -69,4 +69,19 @@
 		};
 
+		// RequiredFieldValidator returns wrong result on first submit
+		// http://dev.ckeditor.com/ticket/8381
+		if (typeof(Page_ClientValidate) == 'function' && typeof(CKEDITOR) != 'undefined')
+		{
+			Page_ClientValidate = CKEDITOR.tools.override(Page_ClientValidate, function(originalPage_ClientValidate) {
+					return function() {
+						for (var name in CKEDITOR.instances) {
+							if (document.getElementById(name))
+								CKEDITOR.instances[name].updateElement();
+						}
+						return originalPage_ClientValidate.apply(this, arguments);
+					};
+			});
+		}
+
 		setTimeout(loadEditors, 0);
 	};
