Hi @radiantpunch,
That is an excellent question, and kudos to you for diving into Gutenberg extensibility! Where have you looked so far for documentation?
I didn’t know the answer to this off the top of my head, so I did a little digging, and I found something that might get you a bit closer to what you’re looking for:
https://github.com/WordPress/gutenberg/blob/master/docs/blocks/block-controls-toolbars-and-inspector.md
There’s actually a lot of documentation like this right in the Gutenberg GitHub repo, though sometimes you have to dig pretty deep to find it.
Hi Corey,
Thanks so much for replying. I’ve been looking at the documentation here: https://ww.wp.xz.cn/gutenberg/handbook/
The page you linked does give a little bit of insight, but it doesn’t describe how to really register or create inline formats. I think this is really important. There’s a lot about Gutenberg’s ability to be adapted with custom blocks that I like, but I think it should be just as easy to create an inline HTML element that you can then assign to certain kinds of blocks. If that capability doesn’t exist, I would be happy to submit a feature request for it.
@radiantpunch
Ok, I did a little more research, and it turns out that the API for adding/modifying formatting buttons is still a work in progress. Here’s a GitHub ticket that you may want to follow that outlines the approach pretty well, and links out to some related issues:
https://github.com/WordPress/gutenberg/pull/6642
For _removing_ any of the default formatting buttons, here’s a pretty good tutorial:
https://modularwp.com/disable-gutenberg-toolbar-buttons/
Hi Corey,
Thanks so much for looking into this. I will bookmark the link you shared and follow the pull request on github to see how this progresses.