Skip to content

How to save annotations with store plugin? #711

Open
@ANONIMNIQ

Description

@ANONIMNIQ

I test annotator on wordpress site, stable version works great, but can't understand how to use store plugin to save annotations. I use this code:

`jQuery(function ($) {
$('.main-container').annotator()
.annotator('addPlugin', 'Store', {
prefix: 'http://mysite.com/api' ,
annotationData: {
'uri': '/annotations'
},

urls: {
    create:  '/highlighter?page_id=',
    update:  '/update',
    destroy: '/delete',
    search:  '/annotations?page_id='
}

});
});
`
the plugin gets error messeges and in the console i see this error:

API request failed: '200'

I'm not sure how to make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions