Skip to content

Version 0.2.0

Compare
Choose a tag to compare
@rsimon rsimon released this 20 Sep 06:50

This is a minor version upgrade which introduces a number of backwards compatible bugfixes and additions, but also includes some minimal changes to how RecogitoJS is configured.

Important: CSS styles are no longer embedded in the JavaScript file, but now have to be imported separately:

<link rel="recogito.min.css" href="styles.css">

Important: editor widgets are becoming more flexible. This release is the first to include beta support for a plugin API.
As a consequence, this version introduces a minimal change to how the tag widget is configured with a controlled vocabulary.

// Previously
var r = Recogito.init({
  content: 'content',
  tagVocabulary: ['Protagonist', 'Antagonist', 'Epic Struggle']
});

// From this version onwards
var r = Recogito.init({
  content: 'content',
  widgets: [
    'COMMENT',
    { widget: 'TAG', vocabulary: ['Protagonist', 'Antagonist', 'Epic Struggle'] }
  ]
});

Further additions include:

  • Editor behavior
    • Comment text element & tag input element now extend to the full size of the parent, resolving the issue that
      clicking inside the widget sometimes didn't focus
    • Comment field now gets focus automatically after popup opens
  • Tag widget
    • Style bugfixes for IE11
    • When adding a tag, it's no longer required to press Enter to save it
  • Comment widget
    • The comment widget now has an additional editable config option so you can switch (separately from the global setting) between
      editable (editable: true), not editable (editable: false) and editable, but don't allow editing other users' contributions
      (editable: 'MINE_ONLY).