Spent the evening experimenting with Gutenberg’s `PluginPrePublishPanel`. Thought …

Spent the evening experimenting with Gutenberg’s PluginPrePublishPanel. Thought it’d be nice if I could move Share on Mastodon’s “meta box” there. Think Jetpack does something similar.

Now I’m not so sure anymore. On the one hand, it may help prevent sharing when updating old posts. On the other, it’s almost too easy to simply disable the panel, so I’d probably still need a regular PluginDocumentSettingPanel.

Also, the way I currently process the old-style meta box interferes with Gutenberg’s setMeta(). No biggie, we can turn that off. Except … there’s still that “Custom Fields” panel (which I have open often): https://github.com/WordPress/gutenberg/issues/23078.

Conclusion, at least for now: I’m sticking with a regular meta box. (Which within Gutenberg looks somewhat out of place, but not horribly so.)

One response to “Spent the evening experimenting with Gutenberg’s `PluginPrePublishPanel`. Thought …”

  1. Jan Boddez

    It’d be nice, too, to have a dedicated panel (or, why not, PluginSidebar). That’d give us some room to eventually add a small textarea for customizing Mastodon statuses—I’ve been adding something similar to Share on Pixelfed’s “old-style” meta box, and it all becomes kind of clunky. (Someone mention feature creep?)