Access GutenBerg data with Javascript?

All datas seems to be stored in JS objects, and not in HTML-DOM. We can use:

wp.data.select("core").getXXXXXXXXXXXX()
wp.data.select("core/editor").getXXXXXXXXXXXX()
...

There are many areas too, you can list them with: console.log(wp.blocks.getBlockTypes());

Leave a Comment