Customizing the top-right Scrivito menu can make the life of editors easier. Custom menu items allow you to easily integrate editing tools like a third-party translation management system, for example. They can also simplify creating complex content by providing dialogs for navigating the editor through the required steps.
With Scrivito.extendMenu
, you specify a callback that describes your changes to the top-right Scrivito menu. The argument passed to the menu
callback represents an interface which provides the insert
method for adding custom menu actions. This method can be called multiple times, typically there is one call per menu item.