Hi All,
I am facing problems with client side validation of RadEditor.
I want to put a check on length of the string entered in editor.
Following is the code, I have written:
To put check on length, I used function get_html() and get_text(). But length of string returned by these function is sometimes smaller than length of server side attribute "Content".
Then I found online demo(http://demos.telerik.com/aspnet-ajax/editor/examples/validators/defaultcs.aspx) which had implementation like function "ValidateEditor1". But that also returned smaller length.
I observed that this problem consistently occurs with strings spanning over multiple lines. You can try this by entering any multi-line string in the editor.
So I think I will be able to solve this problem if I find some api on client side, which returns string exactly equal to the one returned by server side attribute "Content". Can anyone provide more insight into this problem?
Regards
Shrikant