-
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
Add more advanced formatting documentation #29181
Comments
@mahnunchik the RichTextToolbarButton is a shortcut for adding simple formatting, but the edit function when registering a format can be any react component. The easiest option is to implement a component that uses a The Link format is probably the only one in the gutenberg codebase that's a bit more advanced: Agree that this is something the docs could expand on, so will leave this ticket open as a documentation enhancement. |
There are issues related to
|
Right, I see, the formats that appear on the main toolbar are hard-coded. And a dropdown in a dropdown may be undesirable. |
This looks to have been addressed with #43581 so I'll close it. If there are further issues, please feel free to open a new issue. |
What problem does this address?
It is not clear how to show
Popover
onRichTextToolbarButton
click?gutenberg/packages/block-editor/src/components/rich-text/toolbar-button.js
Line 7 in e3d64f5
What is your proposed solution?
It would be useful to have sample here: https://developer.wordpress.org/block-editor/tutorials/format-api/2-toolbar-button/
The text was updated successfully, but these errors were encountered: