block editor – How can I programmatically open Gutenberg?


I want to edit content in frontend and backend with the Gutenberg editor in a popup.
I pass the content to the editor with JavaScript, I open it, I edit the content in Gutenberg and when I close it I pass the content to a variable again.

Now several questions arise:

  • Loading WordPress with a pageless page or cpt page does not load wp.data/wp.block. Nor with the "Gutenberg Ramp" plugin with which Gutenberg should always be loaded.

So the question, is there a possibility to load Gutenberg with the init hook?

If so, how do I proactively start Gutenberg?

Thank you very much for the advice.

Severin