Hi,
I use the annotation library 1.8 for java and have a a strange problem: the toolbar is unvisible. In HTML is to see :
<div class=“tools_container embed_annotation_tools ui-draggable” style=“top: 100px; display: none; margin-right: 0px;” data-bind=“style: {display: $root.canAnnotate() && ($root.isToolbarEnabled || !$root.embeddedAnnotation) ? ‘’ : ‘none’}”>
In MainApplication.java there are following lines:
AnnotationHandler annotationHandler = new AnnotationHandler(serviceConfiguration, connector);
if (connector instanceof ICustomConnector){
((ICustomConnector)connector).setEnvironmentCreator(annotationHandler);
}
// This callback will be called for each case when collaborator should be created
annotationHandler.setCollaboratorCallback(new ICallback<Pair<Integer, Color>, Pair<IUser, IDocument>>() {
@Override
public Pair<Integer, Color> onCallback(Pair<IUser, IDocument> param) {
/*
IUser user = param.one;
IDocument document = param.two;
*/
// User collaborator for document will be created with returned access rights and color
// Default CollaboratorCallback is made similarly
return new Pair<Integer, Color>(AccessRights.All.value(), Color.red);
}
});
// Register annotation handler provider for possibility to inject annotationHandler as context
environment.addProvider(new AnnotationHandlerProvider(annotationHandler));
In configuration.yml:
#Show toolbar
showToolbar: true
Could you say me where and what must I change/add to make the tollbar visible?
Thanks in advance