openannotation / annotator

Annotation tools for the web. Select text, images, or (nearly) anything else, and add your notes.
http://annotatorjs.org
Other
2.67k stars 532 forks source link

How can I load manual annotations? #698

Closed tugcanolgun closed 5 years ago

tugcanolgun commented 5 years ago

I would like to know how to load annotations manually. I am guessing either I have to feed a funtion with /search type object {'total':1, rows:[]} or the annotation object itself.

I would appreciate if you could help.

tilgovi commented 5 years ago

What version?

tugcanolgun commented 5 years ago

2.x version. I know I need to write a StorageAdapter but I dont know how. Can you give me a one very simple example how to bind store and runHook?

tilgovi commented 5 years ago

How do you create the annotator? If you are using the stock UI, you can call annotationsLoaded with your annotations.

tugcanolgun commented 5 years ago

I managed to do what I wanted with creating a server instead. In the end it worked. Thank you for the help.