Editing HTML structure of Gutenberg layout recent post?
Editing HTML structure of Gutenberg layout recent post?
Editing HTML structure of Gutenberg layout recent post?
ResizableBox component is not selectable in block editor
I recently had the same issue. The workaround I used was to save the current post id as an attribute of the block: const currentPostId = useSelect( ( select ) => { return select( ‘core/editor’ ).getCurrentPostId(); }, [] ); useEffect( () => { if ( currentPostId && currentPostId !== postId ) { setAttributes( { postId: … Read more
I found the problem. I needed to add -perso-chacha-bases-block-editor after fr_FR in the json filename. I found out this solution here: Gutenberg translation is not working Big thank you!
You have a number of options. But the best method I have found is to use combination of custom blocks that allow the user to rearrange content themselves and custom post meta (depending on the situation). For simple things, I stick to custom blocks. I create section blocks, card blocks etc, that have strict functionality … Read more
Video Block does not autoplay
If someone stumbles upon same issue I found a way to achieve what I wanted (I hope someone is helped by this). This is my solution: getEditedPostContent() contains the temporary post (modified) content: let old_content=””; if ($(‘textarea#content’).length >0) { old_content = $(‘textarea#content’).html(); } else { //”Gutenburg” style (>=WP 5.8) old_content = wp.data.select( ‘core/editor’ ).getCurrentPost().content; if … Read more
You probably can’t, or at least it is not going to be easy and will not result with the savings you want. As gutenberg do not have separation between content and meta data about the content you will have to parse the current content to strip the meta data from the content and store it … Read more
How to call a react hook on edit of registerBlockType?
Count Gutenberg blocks on the front-end?