Open simison opened 1 week ago
Perhaps for another issue, but I noticed the 'Preview in new tab' line has more left/right padding than the rest of the items.
This is great as I understand it will eliminate some brittle code we've had to implement to work around this limitation:
Hi! I wanted to let you know that it's now possible to add items under "Preview" menu in Gutenberg since:
More here: https://make.wordpress.org/core/2024/10/18/extending-the-preview-dropdown-menu-in-wordpress-6-7/
I recommend moving the AMP preview there from the plugin toolbar conditionally when
PreviewDropdownMenuItem
is available:The original issue at Gutenberg repo used AMP as an example of why the Preview dropdown had to be extendable:
I wrote more ideas here on how to improve preview extensibility. Feel free to share AMP perspective!