How to move the customizations done in the Editor to my child theme?
How to move the customizations done in the Editor to my child theme?
How to move the customizations done in the Editor to my child theme?
On a recent project I handled this by just filtering out invalid values in the onChange callback: export default () => { const [value, setValue] = useState([]); const suggestions = [‘lorem’, ‘ipsum’, ‘dolor’, ‘sit’, ‘amet’]; const onChange = (tokens) => { const value = tokens.filter((t) => suggestions.includes(t)); setValue(value); }; return <FormTokenField onChange={onChange} suggestions={suggestions} value={value} />; … Read more
No, you cannot. You can add extra controls to a blocks toolbar or inspector because filters were added to the code that constructs those user interfaces. Think of it as being handed lego buildings before they’re placed as an opportunity to add extra bricks. What you’ve asked however is filtering individual components, which is not … Read more
Of course it never changes, because you told it that it never changes: // Selected page list const { initialSelectedPages, selectedPagesResolved} = useSelect( ( select) => { …. }, —–>[] <—– ); You declared the dependencies as an empty array, and empty arrays won’t change, so this hook won’t update when your attributes update because … Read more
How can i add insertion point between inner blocks in my custom block like core blocks
Undo operation not working in Rich text [Gutenberg]
Core Block Columns Attributes for Innerblocks Template
Possible to limit internal link search to post types with Gutenberg editor?
Gutenberg blocks – only allow as innerblock
How to link ACF relationship field to the new Query block in Full Site Editing