[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


Hi,

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">
    <p>Bla</p><p>Blub</p>
</div>
<div id="content2">
    <p>Bla</p><p>Blub</p>
</div>
<div id="content3">
    <p>Bla</p><p>Blub</p>
</div>

 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

Alexander
-------------- 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