How to disable right clicking mathjax in shiny? For example, see
https://shiny.rstudio.com/gallery/mathjax.html
Ideally, I would like users not to be abe to interact with the mathjax text at all.
You can turn off the MathJax contextual menu by adding
<script type="tet/x-mathjax-config">
MathJax.Hub.Config({
showMathMenu: false
});
</script>
to your page just before the script that loads MathJax.js itself.
I would encourage you not to do this, however. There are important functions in the menu, including the controls for those using assistive technology like screen readers. Those users may need access to those controls to set things appropriately for their assistive needs. If you disable the menu, you may prevent them from being able to use your pages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With