Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Limit Character Size for Text EditorLimit Character Size for Text Editor
Previous
 
Next
New Post
12/4/2011 7:06 AM
 

I am wondering if anyone has came across a solution for limiting the length of characters in either CKEditor or  RadEditor (either one will do).

I saw generic (non-DNN) implementation of this fearture, but many lack copy and and paste while it will limit keystokes only.

For me it is a vital feature. 

 

 
New Post
12/4/2011 7:13 AM
 
there are samples how to add character count to CKEditor (e.g. http://www.rodi.nu/blog/2010/06/ckeditor-maximum-length/), however, you might need to circumvent DNN texteditor control, which does not support passing this value per portal, module type or instance.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/5/2011 4:33 AM
 

Thanks Sebastian for your reply, but I found a better way, and would like to share it.

1. Install  dnnWerk.RadEditorProvider, one can customize the toolbox and other features, per user role.

 2. Open the ConfigDocumented.xml  in the Telerik folder \Providers\HtmlEditorProviders\Telerik  with full reference  to all the additional options.

 3. Copy

<property name="MaxTextLength">xxxxx</property>

and paste it in the config file of the user group and portal number you have customized  it is here \DesktopModules\dnnWerk.RadEditorProvider\ConfigFil

In my case it is ConfigFile.Registered.PortalId.0.xml

     xxxx state the max length of the text (integer)

I tried it and it works, I get popup dialog box with the error  “1000 . . “  1000 is  the the value of the max length of the text one has selected.

I can not find a way to place my own error message saying "The max length permitted is 1000 characters, please go back and reduce the text length"”

From the Repository module, I know this is implemented by the resx file, but I need to place the reference in the resx file and insert my custom error message.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Limit Character Size for Text EditorLimit Character Size for Text Editor


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out