annotator.offline.js icon indicating copy to clipboard operation
annotator.offline.js copied to clipboard

always offline mode and support multiple pages ?

Open rafaelpapa opened this issue 11 years ago • 3 comments

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

rafaelpapa avatar Jun 07 '14 09:06 rafaelpapa

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

casql avatar Jul 09 '14 07:07 casql

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;
  }
});

aron avatar Jul 09 '14 09:07 aron

HI! greatly appreciate the answer to always offline?

pixp avatar Feb 19 '16 10:02 pixp