[annotator-dev] How to add a field in editor

dilip kumar dskd.s01 at gmail.com
Tue Jul 23 16:06:39 UTC 2013


Hi,

I want to add a field in editor but i want to use write code in my "HTML".
What i am trying :

content.editor.addField({
      type: 'input'
      label:  'text'
      load:   this.updateField
      submit: this.setAnnotationTags
    });
content.viewer.addField({
      load: this.updateViewer
    });



But it's showing in console  error below:

Error: SyntaxError: missing } after property list
Source File: http://localhost/Annotate/
Line: 62, Column: 6
Source Code:
      label:  'text'


Please help me
-- 
Thanks & Regards,
Dilip Kumar ( Sr.PHP Programmer)
91+9958513919
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20130723/6e8a8595/attachment-0001.html>


More information about the annotator-dev mailing list