[annotator-dev] How to get all created annotations on DOM loaded?

rusik rusik3 at gmail.com
Thu Mar 27 12:05:12 UTC 2014


How to get all created annotations on DOM loaded?
I have some typical initializing code in coffee:

/text = $(".solution-text")[0]//
//devStore =//
//      type: Annotator.Plugin.Store//
//      prefix: url//
//      urls://
//        create: "/"//
//        read: "/:id"//
//        update: "/:id"//
//        destroy: "/:id"//
//devAnnotator = new Annotator(text,//
//       store: devStore//
//)//
/
In console/network i have a search request , and it is ok, and i am 
getting json in this format:(like in doc without permissions)

/[{"id":22,"quote":"morbi","text":"25","uri":"http://localhost:3000/notebook/courses/7/personal/exercises/9/solutions/15/check","created":"2014-03-27T13:28:22+04:00","updated":"2014-03-27T13:42:27+04:00","ranges":[{"end":"","endOffset":27,"start":"","startOffset":22}]}]/

But no annotations is highlighted, why?:-(
( i am having annotator.js from github rep clone)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20140327/ef965cd4/attachment-0003.html>


More information about the annotator-dev mailing list