Using Text Annotator together with Annotorious #546
-
|
Hi, I am interested in using both React versions of the Text Annotator and Annotorious for images together on one page in my app. Given a document like this: <h1>The Role of Curiosity in Human Progress</h1>
<p>
First paragraph with some things you might want to annotate
</p>
<img src="cat.png" />
<p>
Second paragraph with some more things to annotate
</p>
<img src="dog.png" />
<p>
Third paragraph with even more things to comment on
</p>Is there a recommended way to use both the Some things I tried:
Is there some other recommended way of combining text and images that I'm totally missing? Any other recommendations or guides or examples that could help me would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @tessawiedmann, in short: yes, one However:
|
Beta Was this translation helpful? Give feedback.
Hi @tessawiedmann,
in short: yes, one
<Annotorious>context root is for one annotator instance exactly. (An annotator, in Annotorious terminology provides the annotation layer for either a single image, or a single text/HTML section) Therefore, the 3rd approach will be the only one that works, as you say.However:
I believe you should also be able to put one
<Annotorious>root tag around the text as a whole, and then one<Annotorious>root tag around each image. This way, you'd at least avoid the need to split the text. The root tags around the images should, essentially, "mask" the root tag around the text. Or, in other words, using theuseAnnotatorhook inside a wrapped image would gi…