Closed josephfusco closed 3 months ago
This PR introduces the registerDocumentEditorToolbarButton
access function.
This function allows registering a new editor toolbar button with the following parameters:
name
(string): The name of the button to register.config
(Object): The configuration object for the button.priority
(number, optional): The priority for the button, with lower numbers meaning higher priority. Default is 10.Example usage:
const { registerDocumentEditorToolbarButton } = window.WPGraphQLIDE;
registerDocumentEditorToolbarButton( 'toggle-auth', toggleAuthButton, 1 );
These changes include:
main
are passing