add_editor_style now copying html styles to .editor-styles-wrapper?

I had a look at the code history in the Gutenberg repository, and it looks like html and body have been transformed since the very beginning, 5 years ago: https://github.com/WordPress/gutenberg/blame/15fc0c13eb33a6e4426ff4ad681b6bfb6d0adaec/packages/editor/src/editor-styles/transforms/wrap.js :root was added several months later. So yes, it appears to be intentional, but not new. If something has changed in your styles in 6.3 … Read more

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.registerBlockStyle( ‘core/paragraph’, { name: ‘bc-synopsis’, label: ‘Back Cover Synopsis’, } ); .is-style-bc-synopsis { // styling etc… } Benefits: You can change your … Read more