Skip to content
Advertisement

TinyMCE, show character count instead of word count

The title says it all. How do I get TinyMCE to show character count instead of word count?

enter image description here

Advertisement

Answer

Write your own plugin.

The following solution is based on this article. The charactercount plugin counts the actual characters that the user sees, all HTML and hidden characters are ignored. The number is updated on every “key up” event.

Character Count Plugin:

JavaScript

CSS Tweaks:

JavaScript

TinyMCE Initialization (using jQuery)

JavaScript

ps. Use JS minifier.

Advertisement