gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Extending Block Categories

Open ahmadawais opened this issue 9 years ago • 8 comments

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!

ahmadawais avatar Sep 13 '17 19:09 ahmadawais

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 avatar Sep 15 '17 12:09 kuoko

@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.

ahmadawais avatar Sep 15 '17 13:09 ahmadawais

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.

kuoko avatar Sep 18 '17 14:09 kuoko

I am only a contributor :)

ahmadawais avatar Sep 18 '17 17:09 ahmadawais

Oh I see. me too. Anyway, your advices were very helpful. Thanks @ahmadawais

kuoko avatar Sep 19 '17 08:09 kuoko

Going to close this as looks like the other ticket has this being dealt with, no need to duplicate.

karmatosed avatar Sep 21 '17 15:09 karmatosed

@karmatosed which other ticket? The PR? I suppose?

ahmadawais avatar Sep 21 '17 15:09 ahmadawais

The PR which was inspired by https://github.com/WordPress/gutenberg/issues/1352

karmatosed avatar Sep 21 '17 16:09 karmatosed