2009-06-26

 

ValidateFCKEditor

Fckeditor: "am using 4 fckeditor in page and i need to validate them . but for this i have to make 4 different functions as shown below.....

May i know optimize solution.....






CustomValidator Javascript Function:

function ValidateFCKEditor(source, args)
{
var fckEditorClientID = document.getElementById('<%=HTMLFCKeditor.ClientID%>');
args.IsValid = FCKeditorAPI.GetInstance(fckEditorClientID.id).GetXHTML(true) != '';
}"

This page is powered by Blogger. Isn't yours?