+
Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

multiple instances of Recogito / allowing per annotation readonly and styling #113

@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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载