-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for adding a -top- Toolbar Button #30901
Comments
❤️
It isn't possible at the moment with the extension points that exist in the editor. It was discussed many times but it never happened mostly because the primary way to include an item in the toolbar is through the More Menu on the right side and the concept of pinned items. The reasoning always was to improve the current way of extending the UI before opening more places in the editor for extensibility. |
Hello I too would like to know how best to add top toolbar button in Gutenberg page / post editor. Here is a useful example I have not tried yet - but it seems there are few resources on this matter. For example, if one wishes to replace the "W" logo at the top left of the editor, with a drop down instead... |
This issue #16988 from @ryanwelcher looks like a very similar proposal. There is also a broader discussion in #37448 about making the editor’s interface more extensible. |
@TomasHurtz there is an existing SlotFill for that location that you can use to modify the W logo. See - https://developer.wordpress.org/block-editor/reference-guides/slotfills/main-dashboard-button/ Just keep in mind they are marked as If there is interest, I'd love to pick up that old issue/PR and see where we can take :) |
With #16988 looking very similar - I'll close this in favour of that issue. |
Hi there,
is there an API to add a Button to the Top-Toolbar? I can't find anything (just unanswered posts):
Thanks in advance & thanks for this great project -!-
mostl33
The text was updated successfully, but these errors were encountered: