The global editor state
Properties
Page State Module
Properties
currentLayout
string The name of the layout in use for the current page.currentLayoutVersion
int 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.currentRegion
string The name of the region containing the currently selected block.blockMeta
Object Some meta about blocks???blockMeta.blocks
Object Object with keys as region names and values as Arrays of blocks.
Mutation to set the current page.
Parameters
state
page
object 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
state
objectid
int The id of the site to set as current site.