So it turns out that it’s as easy as sending a click even to the button. While this is probably more of a work around than an actual solution, it does get the job done in a single piece of code.
jQuery(document).on('click', '.my-element', function() {
jQuery('my-button-selector').click();
});
Related Posts:
- Why is the new Gutenberg editor so narrow, and how to make it wider?
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- How to Batch Convert Gutenberg post to Classic post?
- Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window
- Images are not shown in the post editor
- wordpress 6.2 is alignfull and lignwide removed?
- Removing Default Panels From Gutenberg Document Setting Panel (sidebar)
- Remove block styles in the Block Editor
- Are there ways to make the Gutenberg editor wider? And the HTML-block higher?
- Blocks: set a default value for a TextControl
- Setting default font family with theme.json
- (Gutenberg Block Editor) Using editor.BlockEdit filter, need to alter html/ CSS class of BlockEdit Component
- Extending Gutenberg group block: How to properly combine multiple attributes?
- Required (mandatory) Gutenberg block
- Add classname to Gutenberg block wrapper in the editor?
- Help with using getBlockIndex
- Best practices for CPT without using an editor [closed]
- Custom Gutenberg block is not showing up in inserter dialog
- Gutenberg – Custom blocks onClick not working?
- Get blocks from other pages, from within current page
- .editor-styles-wrapper overriding my block styles in Gutenberg
- Add a button to the toolbar of an existing Gutenberg block
- JSON File in Gutenberg
- Show date post published in Gutenberg component
- Adding an html wrapper to a custom Block Pattern
- How to add a class to the element in a custom Gutenberg block
- Gutenberg: How to check if a block is used in a paginated post?
- Editor API Endpoint or Data Store That Provides a List of Meta Fields for Post Types
- Specify exact parent child relationship between two blocks
- Using custom Entities to retrieve external data in the Block Editor
- How can I remove a button from the paragraph block toolbar?
- Align Group blocks left or right
- Unable to override MediaPlaceholder component
- Run the edit function of parent block when something changes in InnerBlocks
- do_blocks does not include its CSS
- Track Block Pattern Insertion Within the Block Editor
- block variations registration in PHP
- How to add screen reader text to links inserted in the block editor?
- Auto synchronize saving of custom block editor entities
- Store data from nested block of gutenberg
- Output content of post excerpt into Innerblocks within Gutenberg block
- How to add a link in a translation in gutenberg
- component does not render in block save
- Adding block programmatically to InnerBlocks
- How to use Gutenberg blocks in widgets?
- Don’t expand “Most Used” accordion item when adding new block
- WordPress block editor embeds not working in theme (single.php)
- Cannot enable Gutenberg editor [closed]
- Remove ‘type / to choose a block’ placeholder [duplicate]
- Start a line with – without converting to list
- Quickest way of developing custom Gutenberg Blocks
- gutenberg attributes
- How to register two blocks in the same plugin
- Gutenberg: always show text color selector in editing bar
- How to lock innerBlocks within a block variation?
- How to fix: “The editor has encountered an unexpected error”?
- Compile a blocks src directory and main index.js entry file and output to different build dirs?
- Proxy External API request in PHP from Edit.js in Block Plugin
- How do I stop a dynamic Gutenberg component from re-rendering on every keystroke?
- WordPress does not hide content after “Read more” block added using gutenberg editor
- Gutenberg InnerBlocks allowed types and reusable blocks
- Issue with translation – Gutenberg
- RSS feed WP widget vs Gutenberg Block?
- Gutenberg blocks not full width
- How to extend the URLPopover render settings for the paragraph Gutenberg block?
- Custom Image Gutenberg Block With Caption
- How to make a block similar to another block
- Gutenberg: How to enqueue scripts conditionally in render_callback by checking for an attribute?
- How can I reintroduce autocompletion of Gutenberg components in Visual Code?
- Blocks – any way to have editor honor width percentages on child blocks?
- Using `esc_attr( get_block_wrapper_attributes() )`, results in `class=””wp-block-foo””`
- Debouncing Input value with block attributes
- Using the block theme in production
- When using the MediaPlaceholder component, will skipping blobUrl handling break something?
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- How do I add filters in Twenty-Twenty-Three without a functions.php?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Add a new option to Social Link block
- Editing Inline fonts/typeface using the block editor
- What is the proper way of using React Hooks in Gutenberg on frontend?
- How to add Gutenberg editor on frontend page?
- WordPress gutenberg block serverside rendering html elements not showing up
- Gutenberg: change block Components Popover properties
- Unable to register a block using block.json in Block Editor
- $attributes not defined in block.json PHP template for ACF blocks
- add_editor_style now copying html styles to .editor-styles-wrapper?
- Building my first ever Gutenberg block
- Is there a frontend equivalent for add_menu_page?
- How do I load styles for editing the admin interface for the block builder?
- Unable to edit custom post type, editor crashes. What to do?
- Gutenberg – Shadow settings not available (theme.json)
- Block Validation Error
- WordPress Editor Missing Padding and Background Color?
- Unable to add blocks in wordpress posts
- How to get Gutenberg pattern sync status for custom pattern listings table?
- Setting “Open in New Tab” for Link Control to be checked by default
- Can I use Post Thumbnail with Block Bindings API
- meta_query with standard getEntityRecords possible?
- Your site doesn’t include support for the “*” block. You can leave it as-is or remove it