TinyMCE:Plugins/wordcount

From Moxiecode Documentation Wiki

Jump to: navigation, search

Plugin: wordcount

This adds a word counter to the editor. It will display the number of words down in the right corner of the editor.

To activate this plugin, just add "wordcount" to TinyMCE plugin option list.

Initialization Example

tinyMCE.init({
        theme : "advanced",
        mode : "textareas",
        plugins : "wordcount"
});

Table controls/buttons

wordcount_cleanregex
Specify the pattern used to remove numbers and punctuation characters. Numbers are considered "words" in some languages but not in others. The default pattern does not count them as words.
wordcount_countregex
Specify the pattern used for counting words Each match is counted as a word. The default should work in most European languages but for Middle-Eastern and most Asian languages both this pattern and "wordcount_cleanregex" will have to be specified.
wordcount_target_id
Enables you to set a target element other than the status bar.
Personal tools