Support

Account

Home Forums Gutenberg Callback once a custom ACF block is inserted and fully rendered in block editor

Unread

Callback once a custom ACF block is inserted and fully rendered in block editor

  • How can I trigger some javascript to fire after a custom ACF block is inserted and fully loaded in the block editor? My goal is to insert a custom ACF block (let’s call it “acf/subheader”) into the block editor when a new Post is created then once acf/subheader is inserted, I want to insert an inner block inside of it.

    My efforts so far haven’t worked because I think the innerblock is being added while acf/subheader still has the spinner icon and is not fully loaded.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.