Word count properties and methods. The methods in this namespace communicates directly with the Cocoa object, updating word count statistics for the view. Currently only used for CriticMarkup word counts.
- Source:
- counter.js
Properties:
| Name | Type | Description |
|---|---|---|
wordCount |
object | Word count for current document and CriticMarkup types |
Requires
Methods
-
count(type)
-
Pass preview's text for specified CriticMarkup view to app for display update
Parameters:
Name Type Description typestring The CriticMarkup view to update [default,markup,edited]
- Source:
- counter.js
-
storeCount(count, type)
-
Store the count object for type, updating the display if the type passed is the same as the current view
Parameters:
Name Type Description countobject The count object
typestring CriticMarkup type [default,markup,edited]
- Source:
- counter.js
Marked.API