[annotator-dev] Plugin Development Question
Randall Leeds
tilgovi at hypothes.is
Tue Oct 8 17:11:13 UTC 2013
Looks like it should be "this.annotator".
Do you get a stack trace? Console errors?
On Oct 8, 2013 8:43 AM, "Ulrike Schmidt" <ulrike at gol.com> wrote:
> 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
>
>
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/annotator-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20131008/e3f0f84e/attachment-0002.html>
More information about the annotator-dev
mailing list