Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

333
Visualizações
Is this a right code to disable MathJax right-clicking menu?

I use the code below

<script type="tet/x-mathjax-config">
MathJax.Hub.Config({
  showMathMenu: false
});
</script>

to disable right-clicking menu on my math website, however It seems not to work. Is it an outdated code or something?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

For Mathjax version 3, the information is here: https://docs.mathjax.org/en/latest/options/menu.html

Use this configuration:

<script>
    MathJax = {
        ...
        options: {
            enableMenu: false
            ...
        }
    }
</script>

For version 2 the corresponding setting is documented here: https://docs.mathjax.org/en/v2.7-latest/options/hub.html#configure-hub

and involves the showMathMenu property listed in the question.

about 4 years ago · Juan Pablo Isaza Relatório

0

Well, if you want to disable the right clicking, you can use the event listener for it and prevent the default behavior, something like:

window.addEventListener('contextmenu', (e) => {
  e.preventDefault();
}, false);
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda