[annotator-dev] setting up with js to use annotate store

Nick Stenning nick at whiteink.com
Thu Jun 21 10:08:03 UTC 2012


On 21 Jun 2012, at 09:15, Rufus Pollock <rufus.pollock at okfn.org> wrote:

> On 20 June 2012 22:54, Nick Stenning <nick at whiteink.com> wrote:
>>
>> Really, I think you're making this far more complicated than it needs to
>> be by including the demo code. If you want AnnotateIt users to be able
>> to annotate your document, it's two lines of code:
>>
>>    $('.content').annotator()
>>                 .annotator('setupPlugins');
>>
>> If you want to use your own users, then it's four lines of code:
>>
>>    $('.content').annotator()
>>                 .annotator('setupPlugins', {
>>                   tokenUrl: 'http://example.com/getToken'
>>                 });
>>
>> Just take the time to implement the token endpoint (something you'll
>> have to do anyway -- as including the consumer key in the front-end is a
>> big no-go) and all these problems will go away, I promise =).
>
> Isn't it also possible just to have users log in to annotateit and
> then you don't need this token endpoint?

Yes. As I explain in the email above.

-N




More information about the annotator-dev mailing list