Is there a straightforward way to enable support for space separated tags
in the default annotator tag plugin? I need to support spaces in tag names
and also be able to enter multiple tags at a time separated by say a comma.
For each of the tags, we need to fetch auto completion source via ajax. I
tried the following but it did not work:

    var content = $('body');
    var tags = ["python" ,"javascript", "C++"];
    content.annotator();
    content.annotator('addPlugin', 'Tags')
    content.data('annotator').plugins.Tags.input.autocomplete({
        source: tags,
        multiple: true,
        minLength: 1,
        multipleSeparator: ","
    })

For the sake of simplicity, I have used a local source instead of ajax

Thanks,
Apurva Jalit
_______________________________________________
annotator-dev mailing list
[email protected]
https://lists.okfn.org/mailman/listinfo/annotator-dev
Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev

Reply via email to