MaxLength property or something similar.

Jun 10, 2009 at 2:32 PM

First off, this is an excellent control. So far, it works flawlessly.

 Is there a way to set the maximum number of characters the control can handle? 

Is there currently a max length and if so, what is it?

Thanks again for a great control!


Jun 10, 2009 at 3:00 PM

The Basic Edition of the editor does not have a word or character count feature, nor a maximum setting for either. Without a built-in feature to control this, one approach might be to to use a CustomValidator with client-side JavaScript to enforce such a constraint on a postback, something like the following:

function ValidateEditorSize(validator, args)
    var editor = $find("<%= Editor.ClientID %>");
    var text = editor.GetText();

    args.IsValid = text.length <= 10000;



Jun 10, 2009 at 3:26 PM

Ah, I've just found the Pro edition.  I think that it will fit my purposes much better.