This is a migrated thread and some comments may be shown as answers.

How to check max(length) on a RadEditor with Spellcheck

1 Answer 150 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jeremy Coenen
Top achievements
Rank 1
Jeremy Coenen asked on 25 Jun 2009, 03:35 PM
I've implemented a version of the javascript checking for the RadEditor that is found on this forum, but I am still having issues because if a person spellchecks the RadEditor they are able to bypass the checking.

For example if you want the max to be 100 charscters and they are at 100 characters, but in their text they have mispelled words that when fixed add characters it goes over the maximum length.  How would I tie into the spellcheck control to know the text has been changed and to recount it?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Jun 2009, 01:44 PM
Hello Jeremy,

The client side validation is not so secure as the server validation, because the advanced users can set the editor's content via Firebug, Fiddler or another tool and therefore exceed the allowed character count. Nevertheless, you can check the content length in the editor on submit by attaching to the OnClientSubmit event property of the editor or implement a custom validator as it is shown in the following live example: Validator Support.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Jeremy Coenen
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or