Hi,
I am also learning how to develop a zotero plugin as the
OP of this post where they said that they can get the selection using the following snippet:
- `readerinstance._iframeWindow?.getSelection()`
- `readerinstance._iframeWindow?.document.getSelection()`
- `window.getSelection()` which listens to the `selectionchange` event.
I am stuck. I get nothing in the Tools > Developer > Run JavaScript after running any line of the above code.
Could anyone please kindly point me the right direction?
Thanks
Best,
Lerner