[annotator-dev] Add annotate function only to content of some divs

Alexander Wülfing alexander.wuelfing at gmail.com
Fri Nov 28 19:38:13 UTC 2014


my question:

the text inside a div can be annotated. But what if I have certain divs and
want to specify which content can be annotated (not all divs)? How can I
add the annotate function only to some of my many divs?

For example:
<div id="content">
<div id="content2">
<div id="content3">

 var content = jQuery("#content").annotator();
// Works for content but if I specify
 var content3 = jQuery("#content3").annotator();
// as well only the text inside the div with id content can be annotated
// The content inside content2 should no be annotatable

How can I solve this problem?

Thanks and regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20141128/e352b779/attachment-0003.html>

More information about the annotator-dev mailing list