How do I access onMerge, onReplace, onRemove functions for a Rich Text component in Gutenberg block code?
How do I access onMerge, onReplace, onRemove functions for a Rich Text component in Gutenberg block code?
How do I access onMerge, onReplace, onRemove functions for a Rich Text component in Gutenberg block code?
props.setAttributes results in “Maximum update depth exceeded.”
How to force gutenberg to reload blocks after saving
Marc, If you install the Gutenberg plugin (as of v 8.9.0 of Gutenberg), which is the newest version of the block editor, the widget editor has become block-based by default. Below is my original answer from May 2020 but is useful for posterity. There’s a couple issues going on: How ‘widgets’ are thought (and will … Read more
Gutenberg TextareaControl escapes html
Luke, I’ve only done some but I’ve had some existing block styles and block style variations break after updates (examples 1, 2). So far, I haven’t found many proactive things to do prevent your blocks from breaking in the first place besides this list on backwards compatibility and would love a core Gutenberg contributor to … Read more
disable gutemberg welcome message
How to automatically remove noreferrer from targetd link rel attribute, on render?
Not supported yet, see the corresponding Github Issue. I found a workaround in order to at least register additional block styles: register_block_style( ‘create-block/myblock’, array( ‘name’ => ‘style2’, ‘label’ => ‘Style 2’, ‘style_handle’ => ‘create-block-myblock-style-2’, ) );
Ah … Got it. It’s not related to Gutenberg editor but WordPress core itself: window.wp.editor is being initiated here with those methods: https://github.com/WordPress/wordpress-develop/blob/9ed92faaca92f66ec9e2979c9d896ddab3e4e993/src/js/_enqueues/wp/editor/base.js And then, window.wp.oldEditor = window.wp.editor: https://github.com/WordPress/wordpress-develop/blob/5868743f1f2b05c93642c9eebf89cb7f6610d6df/src/wp-includes/script-loader.php#L369