• Hi

    If one were to make a plugin for gutenberg, is it better to extend a core block’s functionality to add a custom button to a block’s toolbar(in my case, the paragraph block), or make a new block altogether?

    I want to add a new button to the toolbar for the paragraph block, and I feel like it is a waste of time to make a new paragraph block just for one button because I want to keep all the existing paragraph block functionality.

    I have read about the Format API and I’m not sure it is what I need because that API seems to be specifically for HTML wrapping tags, which I don’t think is what I need.

    When I googled this issue of adding custom buttons, it seems like people are recommending to make a new block altogether. This is problematic for me because I just want to extend the paragraph block – not change it up altogether. If gutenberg were to be updated in the future I’d want to upgrade all that functionality and add my own extension as an optional plugin.

    Are there any recommendations on how to tackle this?

    • This topic was modified 5 years, 9 months ago by electrifried.
    • This topic was modified 5 years, 9 months ago by electrifried.
    • This topic was modified 5 years, 9 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extend core gutenberg block or make a new one?’ is closed to new replies.