Problem extending a core block
SOLUTION After days of unsuccessful attempts, having tried all kinds of solutions, I decided to remove any reference to the method __experimentalGetElementClassName and solved the problem.
SOLUTION After days of unsuccessful attempts, having tried all kinds of solutions, I decided to remove any reference to the method __experimentalGetElementClassName and solved the problem.
To prevent this kind of error whenever you change the block structure, I suggest using Dynamic Block instead. You can read more about it here.
Creating a custom slider block from InnerBlocks using React Slick
In short, use the useSelect() hook or the withSelect() HOC utility from @wordpress/data to create a subscription to selected value. Either will trigger a render whenever the selected value changes in state: import { useSelect } from ‘@wordpress/data’; edit() { const selectedBlock = useSelect( ( select ) => select( ‘core/block-editor’ ).getSelectedBlock() ); useEffect( () => … Read more
This works. I’m not sure why, but separating the Player component in other component I can update the component from the button callback. Just to explain the use of useState here: the videoId attribute is saved in the comment delimiter block when saving the post. That is something that has already been achieved, it is … Read more
Gutenberg blocks (block editor) with get_the_excerpt and get_the_content, using ACF
Strange effect when I scroll in the editor
Change default rel attributes for Image Block & Button Block
Custom post type set default template using block editor
Download Image from URL and Create a new Folder in wp-contents and save them there