2

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!

1

You have to add the JS with a Craft plugin, either a custom one making use of includeJsResource (see this answer for code example) or with the Control Panel JS plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.