okfn/annotator — pull request #75 by ezietsman (2011-11-21 11:59:59+00:00)
Title: Categories plugin

Category plugin for annotator. No Docs as of yet.

The plugin is used like others and is, for the moment, configured in the html file where the annotator is loaded.

Here's instructions I added to the source code and will include on the wiki also.

#
# Usage in the HTML file:
# options.categories = {
# 'errata':'annotator-hl-errata',
# 'comment':'annotator-hl-comment',
# 'suggestion':'annotator-hl-suggestion' };
#
# annotator.addPlugin('Categories', options.categories);
#
# In .css add entries like these for each category
#
# .annotator-hl.annotator-hl-errata {
# background: rgba(169, 37, 0, 0.5);
# color: black;
#}
#