Hi,
I have a character counter that's roughly like this:
function CuteEditor_OnInitialized(editor) {
var edQ = document.getElementById("<% =ceQuestions.ClientID %>");
editdocQ.attachEvent("onkeyup", function() { CalcChars ("<% =ceQuestions.ClientID %>", 100); });
}
The function CalcChars does the count pretty much from your examples.
When I switch to the HTML view and then back the counter stops working.
Any suggestions?
Thanks,
David