Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Limit the number of characters in a Forum Post View modes: 
User avatar
Member
Member
vspudic - 12/11/2009 9:25:46 AM
   
Limit the number of characters in a Forum Post
Does anyone know of a way to specify a limit to the number of characters in a forum post? We've seen some strange behavior in our test environment with really really long posts.

If not, is there a way to access the code for this control directly: <cms:CMSHtmlEditor .../>?

Thank you!
Valerie

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 12/28/2009 4:36:39 AM
   
RE:Limit the number of characters in a Forum Post
Hi Valerie,

You can modify directly the ~\CMSModules\Forums\Controls\NewPost.ascx(.cs) control to ensure required functionality. The content of CMSHtmlEditor is stored in its 'Value' property, e.g. in this control it's: htmlTemplateBody.Value

Please note there is HTML source code of the content stored (i.e. including HTML tags).

Best Regards,

Martin Dobsicek