// get the cute editor instance
var editor1 = document.getElementById('<%=editor.clientID%>');
// retrieving the content of Cute Editor as HTML
var content = editor1.getHTML();
//split the content by spaces to get the array of words
//use the length property of the array to count words.
//Probably should trim any leading or trailing spaces.
strWordLength="Words: " + arWords.length;
//this just prints out the length, but you could use it to fail the onsubmit
There is only do or not do - there is no try.