The title says it all. How do I get TinyMCE to show character count instead of word count?
Show a word count in the TinyMCE status bar.Clicking Word Count in the status bar switches between counting words and characters. A dialog box with both word and character counts can be opened using the menu item situated in the Tools drop-down, or the toolbar button.
You can get a character count in a Word document by selecting the "Review" tab and clicking "Word Count." You can find both the number of characters with spaces and the character count not including spaces.
Use the branding option to disable the “Powered by Tiny” link displayed in the status bar for product attribution.
wordcount plugin now can count and show characters:
Clicking Word Count in the status bar switches between counting words and characters.
By default mode is "words", but it's pretty easy emulate click in status bar to switch it.
Alter your editor config following way:
tinymce.init({
plugins: "wordcount",
// ...
init_instance_callback: function (editor) {
$(editor.getContainer()).find('button.tox-statusbar__wordcount').click(); // if you use jQuery
}
});
That's all. You have character count now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With