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

How to set Maximum length for RadEditor

2 Answers 91 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 28 May 2009, 07:57 PM
I'm struggling how to implement this with the latest version of the RadEditor.

I tried this KB article but I believe this might be for the old version of the controls as when it gets to AttachEventHandler it says that method is not implemented
http://www.telerik.com/help/aspnet/editor/includingsymbolcounterandlimitthetextlength.html

I've also tried just implementing a asp:customvalidator and using javascript to get the innerText.trim().count - but it appears that is always inflated do to the inclusion of  "DesignHTMLPreview   " and some other charecters at the end.

What's the best way to do this with the lastest version and why isn't this functionality baked in?




2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 May 2009, 03:22 PM
Hi Jeremy,

Please, see the solutions provided in this forum thread for RadEditor for ASP.NET AJAX:
Character Counter on HTML Source side of Editor.

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.
0
Jeremy Coenen
Top achievements
Rank 1
answered on 29 May 2009, 03:41 PM
Thanks I had a slightly different version that must have been a little outdated.  This works great.
Tags
Editor
Asked by
Jeremy Coenen
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jeremy Coenen
Top achievements
Rank 1
Share this question
or