Char counter not working when switching to HTML view

  •  01-08-2008, 4:21 PM

    Char counter not working when switching to HTML view

    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
View Complete Thread