Skip to content

Version 1.4.6

Compare
Choose a tag to compare
@rsimon rsimon released this 13 Sep 16:40
· 88 commits to main since this release

Features

  • Added Finnish and Korean UI translation
  • Made editor component auto-position behavior optional (via a the autoPosition prop, defaults to true)
  • Added support for tagging vocabularies with ontology terms, where each vocabulary item consists of a label and a URI.
var r = Recogito.init({
  content: 'content', // Element id or DOM node to attach to
  widgets: [{ 
    widget: 'TAG',
    vocabulary: [ 
      { label: 'Place', uri: 'http://www.example.com/ontology/place' },
      { label: 'Person', uri: 'http://www.example.com/ontology/place' }, 
      { label: 'Event', uri: 'http://www.example.com/ontology/event' },
      { label: 'Organization', uri: 'http://www.example.com/ontology/organization' },
      { label: 'Animal', uri: 'http://www.example.com/ontology/animal' }
    ] 
  }]
});

It's also possible to mix normal terms and ontology terms.

var r = Recogito.init({
  content: 'content', // Element id or DOM node to attach to
  widgets: [{ 
    widget: 'TAG',
    vocabulary: [ 
      { label: 'Place', uri: 'http://www.example.com/ontology/place' },
      'Person', 
      { label: 'Event', uri: 'http://www.example.com/ontology/event' },
    ] 
  }]
});

Behavior/bugfixes

  • Widget API: saveImmediately and onUpsertBody now properly exposed to VanillaJS widgets