Description
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