3 votes

Why is the Gutenberg editor not recognizing my updates?

You're not actually updating the block. You're just updating the current state of the block component in the editor. To have an option persist you need an attribute to store whether the option is ...
Jacob Peattie's user avatar
2 votes

Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks

Based on the use case that lead you to this, the answer is: You don't, that's what block styles and variations are for. Your entire block could be eliminated and replaced with this: wp.blocks....
Tom J Nowell's user avatar
  • 58.2k
1 vote

When does Wordpress wrap inline scripts in CDATA?

WordPress will wrap scripts in CDATA if the active theme does not explicitly declare HTML5 support. To declare that the theme supports HTML5 add the line: add_theme_support( 'html5', [ 'script', '...
jla's user avatar
  • 123

Only top scored, non community-wiki answers of a minimum length are eligible