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

Handle content in iframes #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Handle content in iframes #90

wants to merge 3 commits into from

Conversation

ig3
Copy link

@ig3 ig3 commented Feb 9, 2022

This is only tested in Firefox 91.4.1esr 64bit, against my Calibre-Web website but in this case it supports lookup for content in the embedded iframe and handles the iframe being removed and recreated when the browser window size changes. I have only tested character lookup because I have only used character lookup. In particular, I haven't tried any of the keyboard shortcuts to ensure they work for content in an iframe.

Much of this is new to me and I don't have knowledge or expertise to suggest that this is a good solution but it does seem to be working for me. If you find any faults in the implementation, I would be pleased to hear about them. Otherwise, I hope this helps you towards an enhancement to address the limitation reported in issue #85, should you be so inclined. And thank you for a great add-on, in any case.

@ig3
Copy link
Author

ig3 commented Feb 10, 2022

This later change seems to fix highlighting selected text in the iframe and, I hope, avoids trying to modify the iframe if it is a different domain. Also, I made the mistake of committing a .vimrc, which I have now removed from the history, thus the force push.

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

Successfully merging this pull request may close these issues.

1 participant