It looks like you’re browsing an old version of Froala. Please go to the newer version of our docs for a more updated version.
Miscellaneous
Character Counter
Using the char_counter.min.js
plugin it is possible to limit the number of characters that can be introduced into the WYSIWYG HTML editor.
Try it yourself:
You can type only 140 characters.
The maximum number of characters can be changed using the charCounterMax option.
HTML
<div id="froala-editor"> <p>You can type only 140 characters.</p> </div>
JAVASCRIPT
<script> $(function() { $('div#froala-editor').froalaEditor({ // Set maximum number of characters. charCounterMax: 140, }) }); </script>