Hello,
i have a form with a fckeditor and when the user click on submit button i want before of send validate all fields from the form, but when y try validate the fckeditor in this form:
can anybody help me??
thanks !!
i have a form with a fckeditor and when the user click on submit button i want before of send validate all fields from the form, but when y try validate the fckeditor in this form:
if(document.getElementById('FCKeditor1').value == '') the fckeditor keep the default value and it don´t update changes that y do.can anybody help me??
thanks !!

Re: How to validate fckeditor with javascript
//var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var oEditor = FCKeditorAPI.GetInstance('<%=txtFCKEditor1.ClientID %>');
var oDOM = oEditor.EditorDocument;
var strFCKEditorText = "";
if (document.all)// If I.E.
{
strFCKEditorText = oDOM.body.innerText;
}
else
{
var r = oDOM.createRange();
r.selectNodeContents(oDOM.body);
strFCKEditorText = r.toString();
}
alert(strFCKEditorText);