[annotator-dev] Accessing store options in demo.html

Nick Stenning nick at whiteink.com
Wed Aug 10 09:20:31 UTC 2011


On 10 Aug 2011, at 10:05, Ewald Zietsman wrote:

> I need to set the store's prefix to some value but I can't see how its done anywhere in the documentation.

Hi Ewald,

This is done as seen on the front page of the Annotator website:

    http://okfn.github.com/annotator/

You pass an extra argument to the annotator() function, i.e.

    $('#content').annotator()
                 .annotator('addPlugin', 'Store', {
                   prefix: '/my/custom/prefix'
                 });

Hope that helps,

Nick



More information about the annotator-dev mailing list