troubleshooting Question

Suppressing native right-click menu in FireFox.

Avatar of Bitlab
BitlabFlag for United States of America asked on
Scripting LanguagesWeb FrameworksWeb Languages and Standards
2 Comments1 Solution797 ViewsLast Modified:
Hello Experts.

We have a successful example of suppressing right click menu in FireFox in TinyMCE. We attached an image.

How to reproduce this behavior?
Note, we apparently did not modify security settings in FireFox and don't want to.

We tried or looked on following examples for your reference, but were unable to make them working in FireFox:

Thank you.

//simple cure from:
//does not work in FF:
var preventRightClickInFireFox=function(e)
            //alert('no native menu is not disabled yet in FF, we are working on this ...');
            e.cancelBubble = true;
        return false;

var preventContentMenuInFireFox=function(e)
            e.cancelBubble = true;
console.log('trying to prevent in content menu');
        return false;
//"modern browsers may not let to disable content menu"

//not possible to prevent context menu:

//go in depth:
 Works in TinyMCE
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros