Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I would like to write an document extension that removes some of the menu items on the right click menu.
For instance Clear all selections.
Is it possible?
I have read the articles on building your own extension object, but I haven't found on how to alter the right click menu.
The easiest way is to use a tool like the Firebug extension (or just plain Firebug if you're running on QVS).
Then you can click the inspect button:
And click on the right menu item you're looking to hide (in this example New Sheet Object) and you'll see the HTML show up in firebug. You can then see the class you're looking for:
There's a doc extension that can do this. You need to determine the CSS classes of the items you want to remove, but once you do, you can tell the extension to hide all elements with that CSS class. It's not too difficult.
Hi
We use HideIt and it works very well.
The problem I have is " You need to determine the CSS classes", how do I determine which classes? 🙂
The easiest way is to use a tool like the Firebug extension (or just plain Firebug if you're running on QVS).
Then you can click the inspect button:
And click on the right menu item you're looking to hide (in this example New Sheet Object) and you'll see the HTML show up in firebug. You can then see the class you're looking for:
Ah, thanks a lot.
I am a former C/C# coder, but I haven't done any javascript.
Hi Jerry, did you succeed ? I try to do the same thing but I don't succeed