http://forums.asp.net/t/1021255.aspx
FCKeditorV2:FCKeditor ID="FCKeditorDecs" runat="server">
FCKeditorV2:FCKeditor
asp:CustomValidator runat="server" ID="cvBody" SetFocusOnError="true" Display="dynamic" Text="Please Enter Description !!" ValidationGroup="Property" ClientValidationFunction="ValidateContentText">
asp:CustomValidator
--Js Function
function ValidateContentText(source,args)
{
var fckBody= FCKeditorAPI.GetInstance('<%=FCKeditorDecs.ClientID %>');
sTemp1 = fckBody.EditorDocument.body.innerHTML
var _blankspace=' ';
var _nospace='';
isValid = true;
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
_blankspace='
';
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
_blankspace='
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
_blankspace='
';
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
_blankspace='
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
_blankspace='
';
regX = new RegExp(_blankspace,"g");
sTemp1 = sTemp1.replace(regX,_nospace);
var sTemp1 = sTemp1.replace(/^\s+/, '');
sTemp1 = sTemp1.replace(/\s+$/, '');
if(sTemp1.length == 0)
{
fckBody.EditorDocument.body.innerHTML = '';
source.innerHTML = "Please Enter Description !!";
isValid = false;
}
args.IsValid = isValid;
}