How to insert an element into the builder programmatically?

Anyone knows how to do that? :pray:

Are you looking for this?

Thanks for your response but that’s not what I want.

I want to mimic the “insert an element into the builder” action via code.
For example, how can I insert the Button element into the builder via code?

Hope it’s clear for you!

The only way I can think of is by writing custom JS (that runs in the editor) which mimics a series of user steps to do this.

  • press Cmd/Ctrl+Shift+E
  • type button
  • press return
1 Like