Answers.Body: <p>You have to add the JS with a Craft plugin, either a custom one making use of <code>includeJsResource</code> (see <a href="https://craftcms.stackexchange.com/questions/267/can-a-plugin-add-js-or-css-to-the-control-panel">this answer</a> for code example) or with the <a href="https://github.com/lindseydiloreto/craft-cpjs" rel="nofollow noreferrer">Control Panel JS</a> plugin.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-18T19:45:44.810Z
Answers.LastActivityDate: 2015-05-18T19:45:44.810Z
Answers.LastEditDate: 2017-04-13T12:51:00.200Z
Answers.UserDisplayName: carlcs
Body: <p>I'm trying to limit the amount of characters by adding the 'limiter' plugin to the redactor field which can be found here: </p>
  
  <p><a href="http://imperavi.com/redactor/plugins/limiter/" rel="nofollow">http://imperavi.com/redactor/plugins/limiter/</a></p>
  
  <p>I've added the limiter.js file to my /craft/app/resources/lib/redactor/plugins folder. </p>
  
  <p>Next I changed the Standard.json in /craft/config/redactor/Standard.json to</p>
  
  <pre><code>{
   focus: true,
   limiter: 20,
   buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
   plugins: ['fullscreen','limiter'],
   toolbarFixedBox: true
  }
  </code></pre>
  
  <p>Unfortunately it doesn't work. Anybody a good suggestion how I can fix this easily. Thanks!</p>
  
Tags: <redactor><fieldtypes><wysiwyg>
Title: Limit characters in redactor wysiwyg field
ThreadText: # Limit characters in redactor wysiwyg field
  
  (Asked by: username_0 on 2015-05-18)
  
  I'm trying to limit the amount of characters by adding the 'limiter' plugin to the redactor field which can be found here:
  
  <http://imperavi.com/redactor/plugins/limiter/>
  
  I've added the limiter.js file to my /craft/app/resources/lib/redactor/plugins folder.
  
  Next I changed the Standard.json in /craft/config/redactor/Standard.json to
  
  ```
  {
   focus: true,
   limiter: 20,
   buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
   plugins: ['fullscreen','limiter'],
   toolbarFixedBox: true
  }
  
  ```
  
  Unfortunately it doesn't work. Anybody a good suggestion how I can fix this easily. Thanks!
  
  **Tags:** redactor, fieldtypes, wysiwyg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-18. Score: 1 | Accepted answer
  
  You have to add the JS with a Craft plugin, either a custom one making use of `includeJsResource` (see [this answer](https://craftcms.stackexchange.com/questions/267/can-a-plugin-add-js-or-css-to-the-control-panel) for code example) or with the [Control Panel JS](https://github.com/lindseydiloreto/craft-cpjs) plugin.
  
  
  ---
  
  