-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
How to add a toolbar button in toolbar but not in dropdown menu #14881
Comments
Have the same problem...none of the examples around work...toolbar buttons always added to the end of More Rich Text Controls dropdown menu...even sample code from WordPress does not work and the screenshot in documentation is dated because I do not see strikethrough in main toolbar either - only dropdown so annoying...!!!!! |
@QiShaoXuan: can you please share example, how to do that ? |
use <BlockControls>
<Toolbar>
<IconButton
icon="edit"
/>
</Toolbar>
</BlockControls> |
Or in ES2015:
|
What are the differences between |
Same issue for me. Any news ? |
Hi @nickhamze how did you solve it? |
Look here at George's commit: |
It would be great to see the Long term a similar pinning approach to plugin sidebars would be pretty neat, or like the block visibility modal. |
It has been quite some time since the assignment was submitted, but I have been thinking about this issue again. The answer to this issue is to use |
Reigniting this with a potential issue—when adding the icon using |
@mjjwatson |
Took a while as I've been away, sorry.
And then creating a RichText component with inlineToolbar:
This renders the new block control within the RichText's parent block, in the top left, as seen on this screenshot: |
@mjjwatson |
I try to add a toolbar button in toolbar like this:
This is copied in gutenberg document
My question is why the button is always in the dropdown menu, how can I add it in toolbar.
And it seems like it is not allow to add in toolbar after I view the code in format-toolbar and rich-text
It is dependent on the props but none be passed.
Wait online, it's urgent
The text was updated successfully, but these errors were encountered: