Namespace: counter

Marked.counter

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.

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
type string

The CriticMarkup view to update [default,markup,edited]

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
count object

The count object

type string

CriticMarkup type [default,markup,edited]