Add button to Block toolbar: toggleFormat is undefined


I’m try to add a custom button to the toolbar for paragraph blocks.

I followed the steps reproduced in this great tutorial:

The button is correctly showing up and every piece of code in that project is working good.

I have some trouble to get the content updated inside the editor when the button is clicked.

I tried to follow this guidelines: but I get a console error saying that the method toggleFormat is undefined.

I share this github: Gutenberg Buttons, if someone can help me to fix the issue.

Thank you

SuPerGiu 8 months 2020-11-26T11:10:45-05:00 0 Answers 12 views 0

Leave an answer