Menu JSON including name, type, optional default content (static or dynamic), and editor-specific configs.
Returns the last submitted editor content, or empty string if never run.
Resolves the default content: evaluates the function if dynamic, returns the string if static.
Sets the default content pre-populated in the editor. Accepts a static string or a function evaluated each time the editor opens.
Static string or dynamic function.
Returns the configs object for this editor menu.
Sets the configs from an instance or a plain JSON object.
MenuEditorConfigs instance or compatible JSON.
Sets the configs from an instance or a plain JSON object.
MenuEditorConfigs instance or compatible JSON.
Returns the labels container for this editor menu.
Serialises this editor menu to a plain JSON-compatible object.
Opens the system $EDITOR with the default content pre-populated. Returns the edited content string.
Optionallanguage: stringOptional language override for label translation.
Returns the menu's unique name.
Returns the menu type: "choice", "input", "field", or "editor".
Returns the plugin namespace this menu belongs to, or undefined for the default plugin.
Sets the plugin namespace for this menu.
Plugin name string.
Returns the display order index, or undefined if not set.
Sets the display order index.
Numeric sort position.
Returns all registered parent names as a flat array.
Returns the parent entry matching the given name, or undefined.
Parent name to look up.
Registers a parent menu name.
Parent name to add.
Returns true when this menu is accessible from every context.
Returns true when this menu is the anchor point of a wizard/flow.
Global actions that target this menu will be hidden in this menu
and in all its descendants, resolved through the regular parents chain.
Returns the styles container for this menu.
Sets the styles for this menu from an instance or a plain JSON object.
MenuStyles instance or compatible JSON.
Sets the styles for this menu from an instance or a plain JSON object.
MenuStyles instance or compatible JSON.
Sets the labels for this menu from an instance or a plain JSON object.
MenuLabels instance or compatible JSON.
Sets the labels for this menu from an instance or a plain JSON object.
MenuLabels instance or compatible JSON.
ProtectedtypeProtectedlabelsProtecteddefaultProtectedvalueProtectedconfigsProtectednameProtected OptionalpluginProtectedparentsProtectedindexProtectedglobalProtectedanchorProtectedstyles
Creates a new editor menu that opens the system $EDITOR with pre-populated content.