Highlighter provides a view/model/update to display a view to highlight text.
Currently, highlighter is used in the following places:
staging.noredink.com/admin/grammar_questions/types)Messages used by highlighter when interacting with a mouse or finger.
Setup initial model
Update for highlighter returning additional info about whether there was a change
Possible intents or "external effects" that the Highlighter can request (see perform).
Check if the highlighter has changed.
Get a list of fragment texts and whether or not they are marked. Useful for encoding answers.
Get unique markers that have been used.
Fetch the text from a series of highlightables.
TODO: Add documentation about how to wire in event listeners and subscriptions so the highlighter is functional!
Model of a highlighter