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

Converting URLs to links in comment popup (read mode only) #58

Open
abrlam opened this issue Jun 8, 2021 · 1 comment
Open

Converting URLs to links in comment popup (read mode only) #58

abrlam opened this issue Jun 8, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@abrlam
Copy link

abrlam commented Jun 8, 2021

Hi,

I would like to know what would be the best way to modify/extend this plugin so that it converts URLs to links automatically in the comment popup (read mode only).

Here's an example:
https://alexcorvi.github.io/anchorme.js/#demo

I have a feeling it will be similar to issue recogito/annotorious-openseadragon#15 in recogito-js but if you could provide some pointers, that would be great.

Thank you.

@rsimon
Copy link
Member

rsimon commented Jun 8, 2021

Hi,

the part of the code where the comment is rendered is here:

https://github.com/recogito/recogito-client-core/blob/main/src/editor/widgets/comment/Comment.jsx#L48

In theory, modifying that line is all you'd need I guess.

@rsimon rsimon transferred this issue from annotorious/annotorious-openseadragon Jun 12, 2021
@rsimon rsimon added enhancement New feature or request help wanted Extra attention is needed labels Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants