While registering a new block, I can only assign the default categories formatting | layout | widgets | embeds. What I would like to do is extend the categories. I can't seem to find a way to do that. I think there should be an API to register new categories as well.
Looking forward!
Hi @ahmadawais,
Actually, there is already a conversation about that.
Here you can find my pull request #1732 waiting for a review.
Any feedback is highly appreciated.
@kuoko That's great. I just reviewed it. Not sure how I can contribute to it (guess you have to allow access), but I added comments.
Thanks @ahmadawais. I've updated the PR #1732 following your suggestions.
Don't know why you aren't able to contribute. The flag "allow edits from maintainers" is already checked.
I am only a contributor :)
Oh I see. me too.
Anyway, your advices were very helpful.
Thanks @ahmadawais
Going to close this as looks like the other ticket has this being dealt with, no need to duplicate.
@karmatosed which other ticket? The PR? I suppose?
The PR which was inspired by https://github.com/WordPress/gutenberg/issues/1352
Most helpful comment
The PR which was inspired by https://github.com/WordPress/gutenberg/issues/1352