You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Before Login:
After Login:
The text was updated successfully, but these errors were encountered:
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.
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.
Before Login:
After Login:
The text was updated successfully, but these errors were encountered: