-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove the "add reply" part and change UI of the annotation box #110
Comments
Hi, thanks for the kind feedback! Unfortunately, the old RecogitoJS hasn't aged well. Extending the functionality is, by now, almost impossible - at least if you want to use a framework (React etc.) If you just want to get rid of the reply box, I recommend simply applying If you want to implement a more comprehensively customized popup, you may want to consider switching to RecogitoJS's successor project. (Currently called, simply, "Recogito Text Annotator"): https://github.com/recogito/text-annotator-js The caveat: I did not yet have the time to write documentation. At the moment, you'd have to dig yourself through the source code. (Specifically the demo setups in the |
I don't think you could get rid of reply box with display:none as it is used to have comments too. Instead if you are using vanillajs then create your own widget as follows var MyWidget = function (a) {
const textarea = document.createElement("textarea");
textarea.classList.add("form-control");
const body = a.annotation.underlying.body;
const item = body.find((x) => x.type == "customTa");
if (item) {
textarea.value = item.value;
}
textarea.onchange = function () {
a.onUpsertBody(item, {type:'customTa', value:textarea.value})
};
return textarea;
}; And remove other widgets like comment and tag and include this widget
Sharing the screenshot in realtime implementation |
Thanks for the wonderful tool. Can you help me remove the "add reply" part and changing the UI of the annotation box? Id like to extend functionality of this for a personal project
The text was updated successfully, but these errors were encountered: