Context Menu Level


(Matthew G. Saroff) #1

I am working on duplicating the functionality of bbCodeXtra to the maximum degree posibility (Permission from the developer, who won’t be moving it to Web Extensions has been received).

I am wondering if the way that the program handles context menus can be duplicated in Web Extensions, and if so, how.

In bbCodeXtra, the top level options show directly in the context menu:

While in the current version of my clone what appears in the menu is the item for the addon, which means an extra step, and a difference from the original:

context_level

Obviously, one could duplicate the functionality by making each menu item a separate addon, but that is the proverbial ungodly mess to install and maintain.


(Martin Giger) #2

An extension only gets one top level menu item, correct.


(Matthew G. Saroff) #3

No work arounds, huh?

Belgium, man, just Belgium.


(Niklas Gollenstede) #4

Until it is actually removed (no idea when that will happen), you could use the deprecated HTML context menu: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu