Skip to content
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

Open
JINO-ROHIT opened this issue Oct 11, 2024 · 1 comment
Open

Comments

@JINO-ROHIT
Copy link

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

@rsimon
Copy link
Member

rsimon commented Oct 11, 2024

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 display: none. to the reply container element in your own CSS stylesheet.

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 test/ directories.) The new version will be especially useful if you use React, BTW. But even the vanilla JS is probably easier to handle than old RecogitoJS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants