Char Counter Plugin

by Froala_marketing

HTML

<script src="https://cdn.jsdelivr.net/npm/froala-editor@4.0.4/js/froala_editor.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/froala-editor@4.0.4/css/froala_editor.min.css">
<script src="https://cdn.jsdelivr.net/npm/froala-editor@4.0.4/js/plugins/char_counter.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/froala-editor@4.0.4/css/plugins/char_counter.css">
<h1>
Char Counter Plugin
</h1>
<div id='froala'>
The number of characters will be displayed at the bottom bar of the editor and will be updated with every character you add or remove.
</div>

JavaScript

var editor = new FroalaEditor('#froala', {
  pluginsEnabled: ['charCounter'],
  charCounterCount: true,
  charCounterMax: 140,
});