-
Notifications
You must be signed in to change notification settings - Fork 16
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
glightbox plugin doesn't work when encrypt is enabled #62
Comments
I didn't test with this plugin. Maybe we just need to re-call some javascript after decryption. I'll check. Edit: Did you make sure that the plugin order is correct? plugins:
- glightbox:
zoomable: true
draggable: true
skip_classes:
- skip-lightbox
- encryptcontent: {} I did a brief test with the plugin's documentation, and it worked kind of (first image I clicked sent the browser to the image, but second click opened the GLightbox). |
Oh, I never changed the order! I'll have to check. I didn't know that the order would matter. Is there any reason it does? |
Yes it works. Thank you! However, as you noted, the first click opens in browser - not default behavior. Any idea how I could fix this? |
The first-click behaviour is strange indeed. It doesn't trigger any javascript errors or such... I'd need to dig into how the glightbox plugin works to find the cause. It's probably just some intialization that needs to be triggered. But no idea why it works on the second click. Not top priority for me at the moment. However, you could try opening an issue here and hope that the developer of the plugin got some ideas. |
I had the same problem, my site was also constantly asking for the password while navigating. I saw #61 and fixing that problem by removing the |
Did you also try setting |
The new Version 0.4.0 of mkdocs-glightbox can be fixed by plugins:
- glightbox:
zoomable: true
draggable: true
skip_classes:
- skip-lightbox
- encryptcontent:
reload_scripts:
- '#init-glightbox' I'll update the documentation on this. |
I would like to make images zoom able and clickable, which the mkdocs-glightbox enables. However, it does not seem to work at all when this plugin is installed and active.
Any idea how I can fix this?
The text was updated successfully, but these errors were encountered: