Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
Habilitar clic derecho en el editor de texto

Estoy usando este código en mi archivo index.html, para evitar usar el botón derecho, excepto en los campos de edición:

 <script type="text/javascript"> $(document).ready(function(data){ $(document).bind('contextmenu',function(e){ var t = $(e.target).closest('#editor,.validatebox-text'); // enable right click on HTML editor and all input's if (!t.length){ e.preventDefault(); } }); }); </script>

la pregunta es: ¿cómo habilitar el clic derecho en el editor de texto también? Gracias

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Probé con:

 var t = $(e.target).closest('#editor,.validatebox-text,textarea');

Descargo de responsabilidad

about 4 years ago · Juan Pablo Isaza Report

0

Agregar etiquetas a la función closest() debería permitir hacer clic con el botón derecho en ellas.

 var t = $(e.target).closest('input, textarea');
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!