Daga Daga - 1 month ago 20
jQuery Question

Store comment (annotations) in mysql database using annotator js

I am using "annotator js" for comment on PDF files. All working fine.
Now i want to store comment (annotations) on Mysql Database.

Please help me.

Thanks

Answer

I solved my issue using,this request var annotation = $('#content').annotator(); setTimeout(function(){

    annotation.annotator('addPlugin', 'Store', {
    prefix: prefixUrl,
      annotationData: {
        'uri': '/annotations'
      },

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