WordCountConfig (word-count)
@ckeditor/ckeditor5-word-count/src/wordcount
The configuration of the word count feature.
See all editor options.
Filtering
Properties
-
container : HTMLElement
Allows for providing the HTML element that the word count container will be appended to automatically.
-
displayCharacters : Boolean
This option allows for hiding the character counter. The element obtained through
wordCountContainer
will only preserve the words part. Character counter is displayed by default when this configuration option is not defined.The configuration above will result in the following container:
-
displayWords : Boolean
This option allows for hiding the word counter. The element obtained through
wordCountContainer
will only preserve the characters part. Word counter is displayed by default when this configuration option is not defined.The configuration above will result in the following container:
-
onUpdate : function
This configuration takes a function that is executed whenever the word count plugin updates its values. This function is called with one argument, which is an object with the
words
andcharacters
keys containing the number of detected words and characters in the document.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.