Thanks for the quick answer, but it doesn’t work.
Class must be inserted instead “button” in <a>
not “woocommerce” in <div>
You can check it out on the “Kadence” WP theme + Gutenberg Blocks with AI by Kadence WP
To render the btn-size-small style button, you need to add the following classes:
class="kadence-btn-size-small kb-button kt-button button kt-btn-width-type-auto kb-btn-global-fill kt-btn-has-text-true kt-btn-has-svg-false wp-block-kadence-singlebtn"
But this is not enough. To be fully functional, the plugin also needs the ability to add custom styles directly to the shortcode, like this:
style="border: 0px solid rgba(0,0,0,0); border-radius: 3px; font-size: var(--global-font-size-small); padding: 0.4em 1em; text-align: center; align-items: center; justify-content: center;"
If you implement this functionality, you will get an ideal plugin for inserting “Buy” button into all price tables created in the Gutenberg editor, which do not allow inserting blocks into cells.