8000 multiple instances of Recogito / allowing per annotation readonly and styling · Issue #113 · recogito/recogito-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
multiple instances of Recogito / allowing per annotation readonly and styling #113
Open
@jazzrabbit80

Description

@jazzrabbit80

This I really an awesome project, and very helpful starting point for various kinds of projects that include web annotation.
I am running into the following issue:

I would like some annotations to be read only, and others to be editable for the current user. However, "readonly" seems to be set for all annotations rather than per annotation. So, I am looking into the direction of including multiple instances of Recogito on the same content, so that one can contain the editable annotations, and the other the read only annotations. In addition, this way, I could format the readonly annotations differently, to clearly indicate the readonly status to the user.

However, when I try to instantiate 2 instances of Recogito, Recogito seems not to be class that can be instantiated. Is there a way to solve this / work around this or approach it differently entirely? Help is greatly appreciated!

Code:

var config = {
content: document.getElementById('content')
};

var r1 = new Recogito(config);
var r2 = new Recogito(config);

Output:
TypeError: Recogito is not a constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0