There is some info in the fckeditor forums on getting the correct
count. I think the CF8 cftextarea is repackaging fckeditor, and if so,
this should work (although I haven't tried it in CF8 myself).
You need to reference the object.GetXHTML() function. The example
below is just for checking for any length, but you could use the
referenced function for your situation as well.
var oEditor = FCKeditorAPI.GetInstance('theBody');
var theBodyTest = oEditor.GetXHTML(true);
if (theBodyTest.length==0) {
alert('You need to enter something for the body of your story.');
return false;
}
HTH,
Kris
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303764
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4