Skip to content
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 Menu Button to Gutenberg #11351

Closed
rahulraykor opened this issue Nov 1, 2018 · 3 comments
Closed

Add Menu Button to Gutenberg #11351

rahulraykor opened this issue Nov 1, 2018 · 3 comments
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@rahulraykor
Copy link

rahulraykor commented Nov 1, 2018

In TinyMCE I have created a MCE Button which was displaying menus dynamically. (e.g if user is not logged in then login menu, and if user is logged in then menus as provided by rest api.)

How can I create such plugin in gutenberg?

Attached screenshot for my requirement.

current

Before Login:
beforelogin

After Login:
afterlogin

@earnjam earnjam added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Nov 1, 2018
@rahulraykor
Copy link
Author

Can anybody please guide me with this?

@designsimply
Copy link
Member

I noticed that Gutenberg 2.9 added support for pinning plugin items in the main editor header and I think that could work as a better solution for your case. See #6442 for the original mockups and to see the details of the original implementation. I don't know of a tutorial explaining how to do it, but I do know that the Jetpack and Yoast SEO plugins have pinned menu items and you might consider looking at those plugins for inspiration.

@designsimply
Copy link
Member

Closing in favor to ask you to check out #6442 and to please post to https://wordpress.org/support/forum/wp-advanced/ or at https://wordpress.stackexchange.com/ if you find you are still wanting help with advice and direction for the specifics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

3 participants