Insert Button in to the Block Editor (Header) Toolbar
There is no official public API to inject custom buttons into that area. This can be confirmed by inspecting the source code for this area, rendered by the DocumentTools component in the @wordpress/editor package. As alternatives, you could render a button to the right of the Save/Publish button on the right side. This button would … Read more