I have a form with an FCKEditor in it. Upon form submission, I want to check whether the user typed anything into the FCKEditor, and if not, popup a Javascript alert window telling them to put something in.
What is the recommended way of doing this?
The code for a regular textarea would be:
if (trim(theForm.theTextarea.value) == '') alert("You must type something in there!");
I tried using oEditor.GetXHTML(true) but it returns: <br type="_moz" />
Suggestions?
What is the recommended way of doing this?
The code for a regular textarea would be:
if (trim(theForm.theTextarea.value) == '') alert("You must type something in there!");
I tried using oEditor.GetXHTML(true) but it returns: <br type="_moz" />
Suggestions?