Naveen
  • Member for 2 years, 1 month
  • Last seen this week
how to disable a button added by a plugin in gutenberg toolbar?
0 votes

I have found that you could add a className attribute to the button and select the button by document.getElementsByClassName query selector. so the code would be this ( function( wp ) { var ...

View answer
applyformat in gutenberg doesnt work and no errors
Accepted answer
0 votes

Alright, after 5 hrs i have learnt this, you need to call applyFormat inside the props.onChange method, so the code would look like this props.onChange( applyFormat(props.value, { type: BLOCK_NAME }) ...

View answer
How to verify meta box is registered in Unit Testing?
Accepted answer
0 votes

Here is what i have did as a workaround, i realized we cant do that in TDD way.so its better to write the code first instead of writing the test when you face this problem. So in my code i have added ...

View answer