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?
How to display post categories within the Latest Posts block?
What is the correct way to import the blocks-editor?
props.setAttributes results in “Maximum update depth exceeded.”
Gutenberg get core data – search
How to force gutenberg to reload blocks after saving
Is it possible to switch Gutenberg’s editor styles when document settings change?
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
You could try returning JSX, skipping the el part: return ( <div className=”review-widget” data-limit=”10″ > </div> ); It may also be that you need to quote the 10 in your original el example.
JSX in WordPress Plugin Development