An angularjs directive for annotating and citations text

angular-annotator

angular-annotator

Stars : 10

Forks : 10

Created by mwasiluk

bower install angular-annotator

Download GitHub

angular-annotator

An angularjs directive that wraps annotator.js functionality.

Requirements

  • JQuery >=1.6
  • AngularJS >=1.2
  • annotatorjs 1.2.x

Bower

You can install this package through Bower by using the following command :

bower install angular-annotator

Demo

Demo

Plunker demo

Usage

Basic:

<div mw-annotator></div>

You can optionally specify annotator.js options:

<div mw-annotator="options"></div>

You can enable annotator plugins e.g.:

<div mw-annotator annotator-tags="{}" annotator-permissions="{user: 'Alice'}" annotator-store="storeOptions" annotator-filter="filterOptions" annotatorMarkdown="true"></div>

You can also enable any custom plugins e.g.:

<div mw-annotator annotator-plugins="[{name: 'Store', options: storeOptions}, 'Tags', 'AnnotatorViewer']"></div>

Javscript

Javascript plugin

Angular-js