aron / annotator.offline.js

Offline storage for the Annotator
http://github.com/aron/annotator.offline.js
MIT License
43 stars 9 forks source link

always offline mode and support multiple pages ? #1

Open rafaelpapa opened 10 years ago

rafaelpapa commented 10 years ago

I can't figure how to annotate multiple pages using only localstorage offline, without being forced to use "remote" store api. How may i add a uri property to every annotation stored locally ? so i can later retrieve only the annotations for each page, and not treat all annotations as common to all pages ?

Thank you

casql commented 10 years ago

I think I am having the same problem. The annotations are repeating in different pages but in equivalent places. Any progress on that @rafaelpapa ?

aron commented 10 years ago

Thanks for the messages. It sounds like the setAnnotationData option is what you're looking for:

jQuery('#content').annotator().annotator("addPlugin", "Offline", {
  setAnnotationData: function (ann) {
    ann.uri = window.location.href;
  }
});
pixp commented 8 years ago

HI! greatly appreciate the answer to always offline?