[annotator-dev] Add ids to annotators
Jamie M Folsom
jfolsom at MIT.EDU
Fri Jul 20 16:02:12 UTC 2012
Great solution. Would you post the one liner you wrote again here too? I left the chat transcript on my office machine...
And is it best to listen for those events directly in the page that's loading the Annotator, or in the Annotator class? I'll post an updated gist, or a link to our fork once I have it working.
On Jul 20, 2012, at 11:52 AM, Randall Leeds wrote:
> Just remembered to follow up here. Jamie and I talked about this and I recommended he use the annotationsLoaded and annotationUpdated events to set up the id on the first highlight rather than change the call signatures of any of the methods of Annotator.
> On Jul 12, 2012 8:33 AM, "Jamie M Folsom" <jfolsom at mit.edu> wrote:
> Hi Folks,
> I am attempting to link to specific annotations within a text, and I think the way to do it is to add their ids to the highlight span, as the value of an id attribute.
> Based on this posting from last September, I have added a few lines to annotator.coffee (lines 44-48, AKA lines 311-315 in the original), which results in an Uncaught ReferenceError: Delegator is not defined.
> Any thoughts?
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1583 bytes
Desc: not available
More information about the annotator-dev