Skip to content

mwasiluk/angular-annotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

An angularjs directive that wraps annotator.js functionality.

Resources

License

Stars

Watchers

Forks

Packages

No packages published