The global editor state
Properties
Page State Module
Properties
currentLayoutstring The name of the layout in use for the current page.currentLayoutVersionint The version number of the layout in use for the current page.currentBlockIndex(number | null) The index of the currently selected block in the currently selected region.currentRegionstring The name of the region containing the currently selected block.blockMetaObject Some meta about blocks???blockMeta.blocksObject Object with keys as region names and values as Arrays of blocks.
Mutation to set the current page.
Parameters
statepageobject Page object representing the current page.
Saves a page
Parameters
Returns promise api - to allow other methods to wait for the save to complete
Properties
Set the current site id stored in the store.
Parameters
stateobjectidint The id of the site to set as current site.