[annotator-dev] Plugin Development Question

Ulrike Schmidt ulrike at gol.com
Tue Oct 8 15:34:13 UTC 2013


Hello,

I am trying to develop a plugin for annotator that adds fields to the 
viewer and had a close look at 
https://github.com/okfn/annotator/wiki/Plugin-Development. Unfortunately 
the following example code from the wiki does not work:

Annotator.Plugin.Message  =  function  (element,  message)  {
   var  plugin  =  {};

   plugin.pluginInit:  function  ()  {
       annotator.viewer.addField({
         load:  function  (field,  annotation)  {
           field.innerHTML  =  message;
         }
       })
   };

   return  plugin;
}


Could someone enlighten me on how to get this working?

Thanks!

Ulrike


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20131008/fcbfcb9e/attachment-0001.html>


More information about the annotator-dev mailing list