Title: The Post Editor’s Data
Published: March 9, 2021
Last modified: November 5, 2026

---

# The Post Editor’s Data

## In this article

 * [Selectors](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#selectors)
    - [canInsertBlockType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#caninsertblocktype)
    - [canUserUseUnfilteredHTML](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#canuseruseunfilteredhtml)
    - [didPostSaveRequestFail](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#didpostsaverequestfail)
    - [didPostSaveRequestSucceed](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#didpostsaverequestsucceed)
    - [getActivePostLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getactivepostlock)
    - [getAdjacentBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getadjacentblockclientid)
    - [getAutosaveAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getautosaveattribute)
    - [getBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblock)
    - [getBlockAttributes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockattributes)
    - [getBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockcount)
    - [getBlockHierarchyRootClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockhierarchyrootclientid)
    - [getBlockIndex](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockindex)
    - [getBlockInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockinsertionpoint)
    - [getBlockListSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocklistsettings)
    - [getBlockMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockmode)
    - [getBlockName](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockname)
    - [getBlockOrder](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockorder)
    - [getBlockRootClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockrootclientid)
    - [getBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocks)
    - [getBlocksByClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocksbyclientid)
    - [getBlockSelectionEnd](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockselectionend)
    - [getBlockSelectionStart](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockselectionstart)
    - [getClientIdsOfDescendants](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getclientidsofdescendants)
    - [getClientIdsWithDescendants](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getclientidswithdescendants)
    - [getCurrentPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpost)
    - [getCurrentPostAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostattribute)
    - [getCurrentPostId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostid)
    - [getCurrentPostLastRevisionId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostlastrevisionid)
    - [getCurrentPostRevisionsCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostrevisionscount)
    - [getCurrentPostType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentposttype)
    - [getCurrentTemplateId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrenttemplateid)
    - [getDeviceType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getdevicetype)
    - [getEditedPostAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostattribute)
    - [getEditedPostContent](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostcontent)
    - [getEditedPostPreviewLink](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostpreviewlink)
    - [getEditedPostSlug](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostslug)
    - [getEditedPostVisibility](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostvisibility)
    - [getEditorBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorblocks)
    - [getEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditormode)
    - [getEditorSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselection)
    - [getEditorSelectionEnd](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselectionend)
    - [getEditorSelectionStart](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselectionstart)
    - [getEditorSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorsettings)
    - [getFirstMultiSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getfirstmultiselectedblockclientid)
    - [getGlobalBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getglobalblockcount)
    - [getInserterItems](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getinserteritems)
    - [getLastMultiSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getlastmultiselectedblockclientid)
    - [getMultiSelectedBlockClientIds](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblockclientids)
    - [getMultiSelectedBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocks)
    - [getMultiSelectedBlocksEndClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocksendclientid)
    - [getMultiSelectedBlocksStartClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocksstartclientid)
    - [getNextBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getnextblockclientid)
    - [getPermalink](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpermalink)
    - [getPermalinkParts](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpermalinkparts)
    - [getPostEdits](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpostedits)
    - [getPostLockUser](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpostlockuser)
    - [getPostTypeLabel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getposttypelabel)
    - [getPreviousBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpreviousblockclientid)
    - [getRenderingMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getrenderingmode)
    - [getSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblock)
    - [getSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblockclientid)
    - [getSelectedBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblockcount)
    - [getSelectedBlocksInitialCaretPosition](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblocksinitialcaretposition)
    - [getStateBeforeOptimisticTransaction](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getstatebeforeoptimistictransaction)
    - [getSuggestedPostFormat](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getsuggestedpostformat)
    - [getTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#gettemplate)
    - [getTemplateLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#gettemplatelock)
    - [hasChangedContent](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haschangedcontent)
    - [hasEditorRedo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haseditorredo)
    - [hasEditorUndo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haseditorundo)
    - [hasInserterItems](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasinserteritems)
    - [hasMultiSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasmultiselection)
    - [hasNonPostEntityChanges](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasnonpostentitychanges)
    - [hasSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasselectedblock)
    - [hasSelectedInnerBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasselectedinnerblock)
    - [inSomeHistory](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insomehistory)
    - [isAncestorMultiSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isancestormultiselected)
    - [isAutosavingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isautosavingpost)
    - [isBlockInsertionPointVisible](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockinsertionpointvisible)
    - [isBlockMultiSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockmultiselected)
    - [isBlockSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockselected)
    - [isBlockValid](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockvalid)
    - [isBlockWithinSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockwithinselection)
    - [isCaretWithinFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscaretwithinformattedtext)
    - [isCleanNewPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscleannewpost)
    - [isCurrentPostPending](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostpending)
    - [isCurrentPostPublished](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostpublished)
    - [isCurrentPostScheduled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostscheduled)
    - [isDeletingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isdeletingpost)
    - [isEditedPostAutosaveable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostautosaveable)
    - [isEditedPostBeingScheduled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostbeingscheduled)
    - [isEditedPostDateFloating](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostdatefloating)
    - [isEditedPostDirty](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostdirty)
    - [isEditedPostEmpty](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostempty)
    - [isEditedPostNew](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostnew)
    - [isEditedPostPublishable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostpublishable)
    - [isEditedPostSaveable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostsaveable)
    - [isEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelenabled)
    - [isEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelopened)
    - [isEditorPanelRemoved](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelremoved)
    - [isFirstMultiSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isfirstmultiselectedblock)
    - [isInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isinserteropened)
    - [isListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#islistviewopened)
    - [isMultiSelecting](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ismultiselecting)
    - [isPermalinkEditable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispermalinkeditable)
    - [isPostAutosavingLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostautosavinglocked)
    - [isPostLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostlocked)
    - [isPostLockTakeover](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostlocktakeover)
    - [isPostSavingLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostsavinglocked)
    - [isPreviewingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispreviewingpost)
    - [isPublishingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishingpost)
    - [isPublishSidebarEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishsidebarenabled)
    - [isPublishSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishsidebaropened)
    - [isSavingNonPostEntityChanges](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#issavingnonpostentitychanges)
    - [isSavingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#issavingpost)
    - [isSelectionEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isselectionenabled)
    - [isTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#istyping)
    - [isValidTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isvalidtemplate)
 * [Actions](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#actions)
    - [autosave](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#autosave)
    - [clearSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#clearselectedblock)
    - [closePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#closepublishsidebar)
    - [createUndoLevel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#createundolevel)
    - [disablePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#disablepublishsidebar)
    - [editPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#editpost)
    - [enablePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#enablepublishsidebar)
    - [enterFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#enterformattedtext)
    - [exitFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#exitformattedtext)
    - [hideInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hideinsertionpoint)
    - [insertBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertblock)
    - [insertBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertblocks)
    - [insertDefaultBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertdefaultblock)
    - [lockPostAutosaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#lockpostautosaving)
    - [lockPostSaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#lockpostsaving)
    - [mergeBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#mergeblocks)
    - [moveBlocksDown](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocksdown)
    - [moveBlocksUp](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocksup)
    - [moveBlockToPosition](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocktoposition)
    - [multiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#multiselect)
    - [openPublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#openpublishsidebar)
    - [receiveBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#receiveblocks)
    - [redo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#redo)
    - [refreshPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#refreshpost)
    - [removeBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeblock)
    - [removeBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeblocks)
    - [removeEditorPanel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeeditorpanel)
    - [replaceBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#replaceblock)
    - [replaceBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#replaceblocks)
    - [resetBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#resetblocks)
    - [resetEditorBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#reseteditorblocks)
    - [resetPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#resetpost)
    - [savePost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#savepost)
    - [selectBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#selectblock)
    - [setDeviceType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setdevicetype)
    - [setEditedPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#seteditedpost)
    - [setIsInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setisinserteropened)
    - [setIsListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setislistviewopened)
    - [setRenderingMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setrenderingmode)
    - [setTemplateValidity](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#settemplatevalidity)
    - [setupEditor](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setupeditor)
    - [setupEditorState](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setupeditorstate)
    - [showInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#showinsertionpoint)
    - [startMultiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#startmultiselect)
    - [startTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#starttyping)
    - [stopMultiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#stopmultiselect)
    - [stopTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#stoptyping)
    - [switchEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#switcheditormode)
    - [synchronizeTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#synchronizetemplate)
    - [toggleBlockMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleblockmode)
    - [toggleDistractionFree](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggledistractionfree)
    - [toggleEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleeditorpanelenabled)
    - [toggleEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleeditorpanelopened)
    - [togglePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#togglepublishsidebar)
    - [toggleSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleselection)
    - [toggleSpotlightMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#togglespotlightmode)
    - [toggleTopToolbar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggletoptoolbar)
    - [trashPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#trashpost)
    - [undo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#undo)
    - [unlockPostAutosaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#unlockpostautosaving)
    - [unlockPostSaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#unlockpostsaving)
    - [updateBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblock)
    - [updateBlockAttributes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblockattributes)
    - [updateBlockListSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblocklistsettings)
    - [updateEditorSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateeditorsettings)
    - [updatePost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updatepost)
    - [updatePostLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updatepostlock)

Namespace: `core/editor`.

## 󠀁[Selectors](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#selectors)󠁿

### 󠀁[canInsertBlockType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#caninsertblocktype)󠁿

_Related_

 * canInsertBlockType in core/block-editor store.

### 󠀁[canUserUseUnfilteredHTML](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#canuseruseunfilteredhtml)󠁿

Returns whether or not the user has the unfiltered_html capability.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `boolean`: Whether the user can or can’t post unfiltered HTML.

### 󠀁[didPostSaveRequestFail](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#didpostsaverequestfail)󠁿

Returns true if a previous post save was attempted but failed, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post save failed.

### 󠀁[didPostSaveRequestSucceed](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#didpostsaverequestsucceed)󠁿

Returns true if a previous post save was attempted successfully, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post was saved successfully.

### 󠀁[getActivePostLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getactivepostlock)󠁿

Returns the active post lock.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Object`: The lock object.

### 󠀁[getAdjacentBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getadjacentblockclientid)󠁿

_Related_

 * getAdjacentBlockClientId in core/block-editor store.

### 󠀁[getAutosaveAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getautosaveattribute)󠁿

>  **Deprecated** since 5.6. Callers should use the `getAutosave( postType, postId,
> userId )` selector from the ‘@wordpress/core-data’ package and access properties
> on the returned autosave object using getPostRawValue.

Returns an attribute value of the current autosave revision for a post, or null 
if there is no autosave for the post.

_Parameters_

 * _state_ `Object`: Global application state.
 * _attributeName_ `string`: Autosave attribute name.

_Returns_

 * `*`: Autosave attribute value.

### 󠀁[getBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblock)󠁿

_Related_

 * getBlock in core/block-editor store.

### 󠀁[getBlockAttributes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockattributes)󠁿

_Related_

 * getBlockAttributes in core/block-editor store.

### 󠀁[getBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockcount)󠁿

_Related_

 * getBlockCount in core/block-editor store.

### 󠀁[getBlockHierarchyRootClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockhierarchyrootclientid)󠁿

_Related_

 * getBlockHierarchyRootClientId in core/block-editor store.

### 󠀁[getBlockIndex](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockindex)󠁿

_Related_

 * getBlockIndex in core/block-editor store.

### 󠀁[getBlockInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockinsertionpoint)󠁿

_Related_

 * getBlockInsertionPoint in core/block-editor store.

### 󠀁[getBlockListSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocklistsettings)󠁿

_Related_

 * getBlockListSettings in core/block-editor store.

### 󠀁[getBlockMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockmode)󠁿

_Related_

 * getBlockMode in core/block-editor store.

### 󠀁[getBlockName](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockname)󠁿

_Related_

 * getBlockName in core/block-editor store.

### 󠀁[getBlockOrder](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockorder)󠁿

_Related_

 * getBlockOrder in core/block-editor store.

### 󠀁[getBlockRootClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockrootclientid)󠁿

_Related_

 * getBlockRootClientId in core/block-editor store.

### 󠀁[getBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocks)󠁿

_Related_

 * getBlocks in core/block-editor store.

### 󠀁[getBlocksByClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblocksbyclientid)󠁿

_Related_

 * getBlocksByClientId in core/block-editor store.

### 󠀁[getBlockSelectionEnd](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockselectionend)󠁿

_Related_

 * getBlockSelectionEnd in core/block-editor store.

### 󠀁[getBlockSelectionStart](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getblockselectionstart)󠁿

_Related_

 * getBlockSelectionStart in core/block-editor store.

### 󠀁[getClientIdsOfDescendants](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getclientidsofdescendants)󠁿

_Related_

 * getClientIdsOfDescendants in core/block-editor store.

### 󠀁[getClientIdsWithDescendants](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getclientidswithdescendants)󠁿

_Related_

 * getClientIdsWithDescendants in core/block-editor store.

### 󠀁[getCurrentPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpost)󠁿

Returns the post currently being edited in its last known saved state, not including
unsaved edits. Returns an object containing relevant default post values if the 
post has not yet been saved.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Object`: Post object.

### 󠀁[getCurrentPostAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostattribute)󠁿

Returns an attribute value of the saved post.

_Parameters_

 * _state_ `Object`: Global application state.
 * _attributeName_ `string`: Post attribute name.

_Returns_

 * `*`: Post attribute value.

### 󠀁[getCurrentPostId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostid)󠁿

Returns the ID of the post currently being edited, or null if the post has not yet
been saved.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `?(number|string)`: The current post ID (number) or template slug (string).

### 󠀁[getCurrentPostLastRevisionId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostlastrevisionid)󠁿

Returns the last revision ID of the post currently being edited, or null if the 
post has no revisions.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `?number`: ID of the last revision.

### 󠀁[getCurrentPostRevisionsCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentpostrevisionscount)󠁿

Returns the number of revisions of the post currently being edited.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `number`: Number of revisions.

### 󠀁[getCurrentPostType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrentposttype)󠁿

Returns the post type of the post currently being edited.

_Usage_

    ```javascript
    const currentPostType = wp.data.select( 'core/editor' ).getCurrentPostType();
    ```

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Post type.

### 󠀁[getCurrentTemplateId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getcurrenttemplateid)󠁿

Returns the template ID currently being rendered/edited

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `?string`: Template ID.

### 󠀁[getDeviceType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getdevicetype)󠁿

Returns the current editing canvas device type.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Device type.

### 󠀁[getEditedPostAttribute](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostattribute)󠁿

Returns a single attribute of the post being edited, preferring the unsaved edit
if one exists, but falling back to the attribute for the last known saved state 
of the post.

_Usage_

    ```javascript
    // Get specific media size based on the featured media ID
    // Note: change sizes?.large for any registered size
    const getFeaturedMediaUrl = useSelect( ( select ) => {
        const getFeaturedMediaId =
            select( 'core/editor' ).getEditedPostAttribute( 'featured_media' );
        const media = select( 'core' ).getEntityRecord(
            'postType',
            'attachment',
            getFeaturedMediaId
        );

        return (
            media?.media_details?.sizes?.large?.source_url ||
            media?.source_url ||
            ''
        );
    }, [] );
    ```

_Parameters_

 * _state_ `Object`: Global application state.
 * _attributeName_ `string`: Post attribute name.

_Returns_

 * `*`: Post attribute value.

### 󠀁[getEditedPostContent](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostcontent)󠁿

Returns the content of the post being edited.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Post content.

### 󠀁[getEditedPostPreviewLink](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostpreviewlink)󠁿

Returns the post preview link

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string | undefined`: Preview Link.

### 󠀁[getEditedPostSlug](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostslug)󠁿

Returns the slug for the post being edited: the edited or saved slug if one is set,
otherwise the slug derived from the current title, which is what WordPress uses 
when the post is published. Returns an empty string for a post with neither.

The server-generated slug isn’t used: it comes from the saved title, so it lags 
behind title edits, and for a new post it comes from the `Auto Draft` placeholder.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `string`: The current slug to be displayed in the editor

### 󠀁[getEditedPostVisibility](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditedpostvisibility)󠁿

Returns the current visibility of the post being edited, preferring the unsaved 
value if different than the saved post. The return value is one of “private”, “password”,
or “public”.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Post visibility.

### 󠀁[getEditorBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorblocks)󠁿

Return the current block list.

_Parameters_

 * _state_ `Object`:

_Returns_

 * `Array`: Block list.

### 󠀁[getEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditormode)󠁿

Returns the current editing mode.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Editing mode.

### 󠀁[getEditorSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselection)󠁿

Returns the current selection.

_Parameters_

 * _state_ `Object`:

_Returns_

 * `WPBlockSelection`: The selection end.

### 󠀁[getEditorSelectionEnd](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselectionend)󠁿

>  **Deprecated** since Gutenberg 10.0.0.

Returns the current selection end.

_Parameters_

 * _state_ `Object`:

_Returns_

 * `WPBlockSelection`: The selection end.

### 󠀁[getEditorSelectionStart](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorselectionstart)󠁿

>  **Deprecated** since Gutenberg 10.0.0.

Returns the current selection start.

_Parameters_

 * _state_ `Object`:

_Returns_

 * `WPBlockSelection`: The selection start.

### 󠀁[getEditorSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#geteditorsettings)󠁿

Returns the post editor settings.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `Object`: The editor settings object.

### 󠀁[getFirstMultiSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getfirstmultiselectedblockclientid)󠁿

_Related_

 * getFirstMultiSelectedBlockClientId in core/block-editor store.

### 󠀁[getGlobalBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getglobalblockcount)󠁿

_Related_

 * getGlobalBlockCount in core/block-editor store.

### 󠀁[getInserterItems](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getinserteritems)󠁿

_Related_

 * getInserterItems in core/block-editor store.

### 󠀁[getLastMultiSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getlastmultiselectedblockclientid)󠁿

_Related_

 * getLastMultiSelectedBlockClientId in core/block-editor store.

### 󠀁[getMultiSelectedBlockClientIds](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblockclientids)󠁿

_Related_

 * getMultiSelectedBlockClientIds in core/block-editor store.

### 󠀁[getMultiSelectedBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocks)󠁿

_Related_

 * getMultiSelectedBlocks in core/block-editor store.

### 󠀁[getMultiSelectedBlocksEndClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocksendclientid)󠁿

_Related_

 * getMultiSelectedBlocksEndClientId in core/block-editor store.

### 󠀁[getMultiSelectedBlocksStartClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getmultiselectedblocksstartclientid)󠁿

_Related_

 * getMultiSelectedBlocksStartClientId in core/block-editor store.

### 󠀁[getNextBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getnextblockclientid)󠁿

_Related_

 * getNextBlockClientId in core/block-editor store.

### 󠀁[getPermalink](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpermalink)󠁿

Returns the permalink for the post.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `?string`: The permalink, or null if the post is not viewable.

### 󠀁[getPermalinkParts](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpermalinkparts)󠁿

Returns the permalink for a post, split into its three parts: the prefix, the postName,
and the suffix.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `Object`: An object containing the prefix, postName, and suffix for the permalink,
   or null if the post is not viewable.

### 󠀁[getPostEdits](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpostedits)󠁿

Returns any post values which have been changed in the editor but not yet been saved.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Object`: Object of key value pairs comprising unsaved edits.

### 󠀁[getPostLockUser](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpostlockuser)󠁿

Returns details about the post lock user.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Object`: A user object.

### 󠀁[getPostTypeLabel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getposttypelabel)󠁿

Returns a post type label depending on the current post.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string|undefined`: The post type label if available, otherwise undefined.

### 󠀁[getPreviousBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getpreviousblockclientid)󠁿

_Related_

 * getPreviousBlockClientId in core/block-editor store.

### 󠀁[getRenderingMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getrenderingmode)󠁿

Returns the post editor’s rendering mode.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `string`: Rendering mode.

### 󠀁[getSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblock)󠁿

_Related_

 * getSelectedBlock in core/block-editor store.

### 󠀁[getSelectedBlockClientId](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblockclientid)󠁿

_Related_

 * getSelectedBlockClientId in core/block-editor store.

### 󠀁[getSelectedBlockCount](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblockcount)󠁿

_Related_

 * getSelectedBlockCount in core/block-editor store.

### 󠀁[getSelectedBlocksInitialCaretPosition](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getselectedblocksinitialcaretposition)󠁿

_Related_

 * getSelectedBlocksInitialCaretPosition in core/block-editor store.

### 󠀁[getStateBeforeOptimisticTransaction](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getstatebeforeoptimistictransaction)󠁿

>  **Deprecated** since Gutenberg 9.7.0.

Returns state object prior to a specified optimist transaction ID, or `null` if 
the transaction corresponding to the given ID cannot be found.

### 󠀁[getSuggestedPostFormat](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#getsuggestedpostformat)󠁿

Returns a suggested post format for the current post, inferred only if there is 
a single block within the post and it is of a type known to match a default post
format. Returns null if the format cannot be determined.

_Returns_

 * `?string`: Suggested post format.

### 󠀁[getTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#gettemplate)󠁿

_Related_

 * getTemplate in core/block-editor store.

### 󠀁[getTemplateLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#gettemplatelock)󠁿

_Related_

 * getTemplateLock in core/block-editor store.

### 󠀁[hasChangedContent](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haschangedcontent)󠁿

Returns true if content includes unsaved changes, or false otherwise.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `boolean`: Whether content includes unsaved changes.

### 󠀁[hasEditorRedo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haseditorredo)󠁿

Returns true if any future editor history snapshots exist, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether redo history exists.

### 󠀁[hasEditorUndo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#haseditorundo)󠁿

Returns true if any past editor history snapshots exist, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether undo history exists.

### 󠀁[hasInserterItems](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasinserteritems)󠁿

_Related_

 * hasInserterItems in core/block-editor store.

### 󠀁[hasMultiSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasmultiselection)󠁿

_Related_

 * hasMultiSelection in core/block-editor store.

### 󠀁[hasNonPostEntityChanges](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasnonpostentitychanges)󠁿

Returns true if there are unsaved edits for entities other than the editor’s post,
and false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether there are edits or not.

### 󠀁[hasSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasselectedblock)󠁿

_Related_

 * hasSelectedBlock in core/block-editor store.

### 󠀁[hasSelectedInnerBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hasselectedinnerblock)󠁿

_Related_

 * hasSelectedInnerBlock in core/block-editor store.

### 󠀁[inSomeHistory](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insomehistory)󠁿

>  **Deprecated** since Gutenberg 9.7.0.

Returns true if an optimistic transaction is pending commit, for which the before
state satisfies the given predicate function.

### 󠀁[isAncestorMultiSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isancestormultiselected)󠁿

_Related_

 * isAncestorMultiSelected in core/block-editor store.

### 󠀁[isAutosavingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isautosavingpost)󠁿

Returns true if the post is autosaving, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post is autosaving.

### 󠀁[isBlockInsertionPointVisible](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockinsertionpointvisible)󠁿

_Related_

 * isBlockInsertionPointVisible in core/block-editor store.

### 󠀁[isBlockMultiSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockmultiselected)󠁿

_Related_

 * isBlockMultiSelected in core/block-editor store.

### 󠀁[isBlockSelected](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockselected)󠁿

_Related_

 * isBlockSelected in core/block-editor store.

### 󠀁[isBlockValid](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockvalid)󠁿

_Related_

 * isBlockValid in core/block-editor store.

### 󠀁[isBlockWithinSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isblockwithinselection)󠁿

_Related_

 * isBlockWithinSelection in core/block-editor store.

### 󠀁[isCaretWithinFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscaretwithinformattedtext)󠁿

_Related_

 * isCaretWithinFormattedText in core/block-editor store.

### 󠀁[isCleanNewPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscleannewpost)󠁿

Returns true if there are no unsaved values for the current edit session and if 
the currently edited post is new (has never been saved before).

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether new post and unsaved values exist.

### 󠀁[isCurrentPostPending](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostpending)󠁿

Returns true if post is pending review.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether current post is pending review.

### 󠀁[isCurrentPostPublished](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostpublished)󠁿

Return true if the current post has already been published.

_Parameters_

 * _state_ `Object`: Global application state.
 * _currentPost_ `[Object]`: Explicit current post for bypassing registry selector.

_Returns_

 * `boolean`: Whether the post has been published.

### 󠀁[isCurrentPostScheduled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iscurrentpostscheduled)󠁿

Returns true if post is already scheduled.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether current post is scheduled to be posted.

### 󠀁[isDeletingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isdeletingpost)󠁿

Returns true if the post is currently being deleted, or false otherwise.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `boolean`: Whether post is being deleted.

### 󠀁[isEditedPostAutosaveable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostautosaveable)󠁿

Returns true if the post can be autosaved, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.
 * _autosave_ `Object`: A raw autosave object from the REST API.

_Returns_

 * `boolean`: Whether the post can be autosaved.

### 󠀁[isEditedPostBeingScheduled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostbeingscheduled)󠁿

Return true if the post being edited is being scheduled. Preferring the unsaved 
status values.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post has been published.

### 󠀁[isEditedPostDateFloating](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostdatefloating)󠁿

Returns whether the current post should be considered to have a “floating” date (
i.e. that it would publish “Immediately” rather than at a set time).

Unlike in the PHP backend, the REST API returns a full date string for posts where
the 0000-00-00T00:00:00 placeholder is present in the database. To infer that a 
post is set to publish “Immediately” we check whether the date and modified date
are the same.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `boolean`: Whether the edited post has a floating date value.

### 󠀁[isEditedPostDirty](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostdirty)󠁿

Returns true if there are unsaved values for the current edit session, or false 
if the editing state matches the saved or new post.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether unsaved values exist.

### 󠀁[isEditedPostEmpty](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostempty)󠁿

Returns true if the edited post has content. A post has content if it has at least
one saveable block or otherwise has a non-empty content property assigned.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether post has content.

### 󠀁[isEditedPostNew](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostnew)󠁿

Returns true if the currently edited post is yet to be saved, or false if the post
has been saved.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post is new.

### 󠀁[isEditedPostPublishable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostpublishable)󠁿

Return true if the post being edited can be published.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post can been published.

### 󠀁[isEditedPostSaveable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditedpostsaveable)󠁿

Returns true if the post can be saved, or false otherwise. A post must contain a
title, an excerpt, or non-empty content to be valid for save.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post can be saved.

### 󠀁[isEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelenabled)󠁿

Returns true if the given panel is enabled, or false otherwise. Panels are enabled
by default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is enabled.

### 󠀁[isEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelopened)󠁿

Returns true if the given panel is open, or false otherwise. Panels are closed by
default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is open.

### 󠀁[isEditorPanelRemoved](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#iseditorpanelremoved)󠁿

Returns true if the given panel was programmatically removed, or false otherwise.
All panels are not removed by default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is removed.

### 󠀁[isFirstMultiSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isfirstmultiselectedblock)󠁿

_Related_

 * isFirstMultiSelectedBlock in core/block-editor store.

### 󠀁[isInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isinserteropened)󠁿

Returns true if the inserter is opened.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the inserter is opened.

### 󠀁[isListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#islistviewopened)󠁿

Returns true if the list view is opened.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the list view is opened.

### 󠀁[isMultiSelecting](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ismultiselecting)󠁿

_Related_

 * isMultiSelecting in core/block-editor store.

### 󠀁[isPermalinkEditable](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispermalinkeditable)󠁿

Returns whether the permalink is editable or not.

_Parameters_

 * _state_ `Object`: Editor state.

_Returns_

 * `boolean`: Whether or not the permalink is editable.

### 󠀁[isPostAutosavingLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostautosavinglocked)󠁿

Returns whether post autosaving is locked.

_Usage_

    ```language-jsx
    import { __ } from '@wordpress/i18n';
    import { store as editorStore } from '@wordpress/editor';
    import { useSelect } from '@wordpress/data';

    const ExampleComponent = () => {
        const isAutoSavingLocked = useSelect(
            ( select ) => select( editorStore ).isPostAutosavingLocked(),
            []
        );

        return isAutoSavingLocked ? (
            <p>{ __( 'Post auto saving is locked' ) }</p>
        ) : (
            <p>{ __( 'Post auto saving is not locked' ) }</p>
        );
    };
    ```

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Is locked.

### 󠀁[isPostLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostlocked)󠁿

Returns whether the post is locked.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Is locked.

### 󠀁[isPostLockTakeover](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostlocktakeover)󠁿

Returns whether the edition of the post has been taken over.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Is post lock takeover.

### 󠀁[isPostSavingLocked](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispostsavinglocked)󠁿

Returns whether post saving is locked.

_Usage_

    ```language-jsx
    import { __ } from '@wordpress/i18n';
    import { store as editorStore } from '@wordpress/editor';
    import { useSelect } from '@wordpress/data';

    const ExampleComponent = () => {
        const isSavingLocked = useSelect(
            ( select ) => select( editorStore ).isPostSavingLocked(),
            []
        );

        return isSavingLocked ? (
            <p>{ __( 'Post saving is locked' ) }</p>
        ) : (
            <p>{ __( 'Post saving is not locked' ) }</p>
        );
    };
    ```

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Is locked.

### 󠀁[isPreviewingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispreviewingpost)󠁿

Returns true if the post is being previewed, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the post is being previewed.

### 󠀁[isPublishingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishingpost)󠁿

Returns true if the post is being published, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether post is being published.

### 󠀁[isPublishSidebarEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishsidebarenabled)󠁿

Returns whether the pre-publish panel should be shown or skipped when the user clicks
the “publish” button.

_Returns_

 * `boolean`: Whether the pre-publish panel should be shown or not.

### 󠀁[isPublishSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#ispublishsidebaropened)󠁿

Returns true if the publish sidebar is opened.

_Parameters_

 * _state_ `Object`: Global application state

_Returns_

 * `boolean`: Whether the publish sidebar is open.

### 󠀁[isSavingNonPostEntityChanges](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#issavingnonpostentitychanges)󠁿

Returns true if non-post entities are currently being saved, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether non-post entities are being saved.

### 󠀁[isSavingPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#issavingpost)󠁿

Returns true if the post is currently being saved, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether post is being saved.

### 󠀁[isSelectionEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isselectionenabled)󠁿

_Related_

 * isSelectionEnabled in core/block-editor store.

### 󠀁[isTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#istyping)󠁿

_Related_

 * isTyping in core/block-editor store.

### 󠀁[isValidTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#isvalidtemplate)󠁿

_Related_

 * isValidTemplate in core/block-editor store.

## 󠀁[Actions](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#actions)󠁿

### 󠀁[autosave](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#autosave)󠁿

Action that autosaves the current post. This includes server-side autosaving (default)
and client-side (a.k.a. local) autosaving (e.g. on the Web, the post might be committed
to Session Storage).

_Parameters_

 * _options_ `[Object]`: Extra flags to identify the autosave.
 * _options.local_ `[boolean]`: Whether to perform a local autosave.

### 󠀁[clearSelectedBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#clearselectedblock)󠁿

_Related_

 * clearSelectedBlock in core/block-editor store.

### 󠀁[closePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#closepublishsidebar)󠁿

Returns an action object used in signalling that the user closed the publish sidebar.

_Returns_

 * `Object`: Action object.

### 󠀁[createUndoLevel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#createundolevel)󠁿

>  **Deprecated** Since WordPress 6.0

Action that creates an undo history record.

### 󠀁[disablePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#disablepublishsidebar)󠁿

Disables the publish sidebar.

### 󠀁[editPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#editpost)󠁿

Returns an action object used in signalling that attributes of the post have been
edited.

_Usage_

    ```javascript
    // Update the post title
    wp.data.dispatch( 'core/editor' ).editPost( { title: `${ newTitle }` } );
    ```

_Parameters_

 * _edits_ `Object`: Post attributes to edit.
 * _options_ `[Object]`: Options for the edit.

_Returns_

 * `Object`: Action object

### 󠀁[enablePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#enablepublishsidebar)󠁿

Enable the publish sidebar.

### 󠀁[enterFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#enterformattedtext)󠁿

_Related_

 * enterFormattedText in core/block-editor store.

### 󠀁[exitFormattedText](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#exitformattedtext)󠁿

_Related_

 * exitFormattedText in core/block-editor store.

### 󠀁[hideInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#hideinsertionpoint)󠁿

_Related_

 * hideInsertionPoint in core/block-editor store.

### 󠀁[insertBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertblock)󠁿

_Related_

 * insertBlock in core/block-editor store.

### 󠀁[insertBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertblocks)󠁿

_Related_

 * insertBlocks in core/block-editor store.

### 󠀁[insertDefaultBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#insertdefaultblock)󠁿

_Related_

 * insertDefaultBlock in core/block-editor store.

### 󠀁[lockPostAutosaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#lockpostautosaving)󠁿

Action that locks post autosaving.

_Usage_

    ```
    // Lock post autosaving with the lock key `mylock`:
    wp.data.dispatch( 'core/editor' ).lockPostAutosaving( 'mylock' );
    ```

_Parameters_

 * _lockName_ `string`: The lock name.

_Returns_

 * `Object`: Action object

### 󠀁[lockPostSaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#lockpostsaving)󠁿

Action that locks post saving.

_Usage_

    ```
    const { subscribe } = wp.data;

    const initialPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );

    // Only allow publishing posts that are set to a future date.
    if ( 'publish' !== initialPostStatus ) {

        // Track locking.
        let locked = false;

        // Watch for the publish event.
        let unssubscribe = subscribe( () => {
            const currentPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );
            if ( 'publish' !== currentPostStatus ) {

                // Compare the post date to the current date, lock the post if the date isn't in the future.
                const postDate = new Date( wp.data.select( 'core/editor' ).getEditedPostAttribute( 'date' ) );
                const currentDate = new Date();
                if ( postDate.getTime() <= currentDate.getTime() ) {
                    if ( ! locked ) {
                        locked = true;
                        wp.data.dispatch( 'core/editor' ).lockPostSaving( 'futurelock' );
                    }
                } else {
                    if ( locked ) {
                        locked = false;
                        wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'futurelock' );
                    }
                }
            }
        } );
    }
    ```

_Parameters_

 * _lockName_ `string`: The lock name.

_Returns_

 * `Object`: Action object

### 󠀁[mergeBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#mergeblocks)󠁿

_Related_

 * mergeBlocks in core/block-editor store.

### 󠀁[moveBlocksDown](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocksdown)󠁿

_Related_

 * moveBlocksDown in core/block-editor store.

### 󠀁[moveBlocksUp](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocksup)󠁿

_Related_

 * moveBlocksUp in core/block-editor store.

### 󠀁[moveBlockToPosition](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#moveblocktoposition)󠁿

_Related_

 * moveBlockToPosition in core/block-editor store.

### 󠀁[multiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#multiselect)󠁿

_Related_

 * multiSelect in core/block-editor store.

### 󠀁[openPublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#openpublishsidebar)󠁿

Returns an action object used in signalling that the user opened the publish sidebar.

_Returns_

 * `Object`: Action object

### 󠀁[receiveBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#receiveblocks)󠁿

_Related_

 * receiveBlocks in core/block-editor store.

### 󠀁[redo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#redo)󠁿

Action that restores last popped state in undo history.

### 󠀁[refreshPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#refreshpost)󠁿

>  **Deprecated** Since WordPress 6.0.

Action for refreshing the current post.

### 󠀁[removeBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeblock)󠁿

_Related_

 * removeBlock in core/block-editor store.

### 󠀁[removeBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeblocks)󠁿

_Related_

 * removeBlocks in core/block-editor store.

### 󠀁[removeEditorPanel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#removeeditorpanel)󠁿

Returns an action object used to remove a panel from the editor.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to remove.

_Returns_

 * `Object`: Action object.

### 󠀁[replaceBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#replaceblock)󠁿

_Related_

 * replaceBlock in core/block-editor store.

### 󠀁[replaceBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#replaceblocks)󠁿

_Related_

 * replaceBlocks in core/block-editor store.

### 󠀁[resetBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#resetblocks)󠁿

_Related_

 * resetBlocks in core/block-editor store.

### 󠀁[resetEditorBlocks](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#reseteditorblocks)󠁿

Returns an action object used to signal that the blocks have been updated.

_Parameters_

 * _blocks_ `Array`: Block Array.
 * _options_ `[Object]`: Optional options.

### 󠀁[resetPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#resetpost)󠁿

>  **Deprecated** Since WordPress 6.0.

Returns an action object used in signalling that the latest version of the post 
has been received, either by initialization or save.

### 󠀁[savePost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#savepost)󠁿

Action for saving the current post in the editor.

_Parameters_

 * _options_ `[Object]`:

### 󠀁[selectBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#selectblock)󠁿

_Related_

 * selectBlock in core/block-editor store.

### 󠀁[setDeviceType](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setdevicetype)󠁿

Action that changes the width of the editing canvas.

_Parameters_

 * _deviceType_ `string`:

_Returns_

 * `Object`: Action object.

### 󠀁[setEditedPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#seteditedpost)󠁿

Returns an action that sets the current post Type and post ID.

_Parameters_

 * _postType_ `string`: Post Type.
 * _postId_ `string`: Post ID.

_Returns_

 * `Object`: Action object.

### 󠀁[setIsInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setisinserteropened)󠁿

Returns an action object used to open/close the inserter.

_Parameters_

 * _value_ `boolean|Object`: Whether the inserter should be opened (true) or closed(
   false). To specify an insertion point, use an object.
 * _value.rootClientId_ `string`: The root client ID to insert at.
 * _value.insertionIndex_ `number`: The index to insert at.
 * _value.filterValue_ `string`: A query to filter the inserter results.
 * _value.onSelect_ `Function`: A callback when an item is selected.
 * _value.tab_ `string`: The tab to open in the inserter.
 * _value.category_ `string`: The category to initialize in the inserter.

_Returns_

 * `Object`: Action object.

### 󠀁[setIsListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setislistviewopened)󠁿

Returns an action object used to open/close the list view.

_Parameters_

 * _isOpen_ `boolean`: A boolean representing whether the list view should be opened
   or closed.

_Returns_

 * `Object`: Action object.

### 󠀁[setRenderingMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setrenderingmode)󠁿

Returns an action used to set the rendering mode of the post editor. We support 
multiple rendering modes:

 * `post-only`: This mode extracts the post blocks from the template and renders
   only those. The idea is to allow the user to edit the post/page in isolation 
   without the wrapping template.
 * `template-locked`: This mode renders both the template and the post blocks but
   the template blocks are locked and can’t be edited. The post blocks are editable.

_Parameters_

 * _mode_ `string`: Mode (one of ‘post-only’ or ‘template-locked’).

### 󠀁[setTemplateValidity](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#settemplatevalidity)󠁿

_Related_

 * setTemplateValidity in core/block-editor store.

### 󠀁[setupEditor](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setupeditor)󠁿

Returns an action generator used in signalling that editor has initialized with 
the specified post object and editor settings.

_Parameters_

 * _post_ `Object`: Post object.
 * _edits_ `Object`: Initial edited attributes object.
 * _template_ `[Array]`: Block Template.

### 󠀁[setupEditorState](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#setupeditorstate)󠁿

>  **Deprecated**

Setup the editor state.

_Parameters_

 * _post_ `Object`: Post object.

### 󠀁[showInsertionPoint](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#showinsertionpoint)󠁿

_Related_

 * showInsertionPoint in core/block-editor store.

### 󠀁[startMultiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#startmultiselect)󠁿

_Related_

 * startMultiSelect in core/block-editor store.

### 󠀁[startTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#starttyping)󠁿

_Related_

 * startTyping in core/block-editor store.

### 󠀁[stopMultiSelect](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#stopmultiselect)󠁿

_Related_

 * stopMultiSelect in core/block-editor store.

### 󠀁[stopTyping](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#stoptyping)󠁿

_Related_

 * stopTyping in core/block-editor store.

### 󠀁[switchEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#switcheditormode)󠁿

Triggers an action used to switch editor mode.

_Parameters_

 * _mode_ `string`: The editor mode.

### 󠀁[synchronizeTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#synchronizetemplate)󠁿

_Related_

 * synchronizeTemplate in core/block-editor store.

### 󠀁[toggleBlockMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleblockmode)󠁿

_Related_

 * toggleBlockMode in core/block-editor store.

### 󠀁[toggleDistractionFree](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggledistractionfree)󠁿

Action that toggles Distraction free mode. Distraction free mode expects there are
no sidebars, as due to the z-index values set, you can’t close sidebars.

_Parameters_

 * _options_ `[Object]`: Optional configuration object
 * _options.createNotice_ `[boolean]`: Whether to create a notice

### 󠀁[toggleEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleeditorpanelenabled)󠁿

Returns an action object used to enable or disable a panel in the editor.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to enable or disable.

_Returns_

 * `Object`: Action object.

### 󠀁[toggleEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleeditorpanelopened)󠁿

Opens a closed panel and closes an open panel.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to open or close.

### 󠀁[togglePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#togglepublishsidebar)󠁿

Returns an action object used in signalling that the user toggles the publish sidebar.

_Returns_

 * `Object`: Action object

### 󠀁[toggleSelection](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggleselection)󠁿

_Related_

 * toggleSelection in core/block-editor store.

### 󠀁[toggleSpotlightMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#togglespotlightmode)󠁿

Action that toggles the Spotlight Mode view option.

### 󠀁[toggleTopToolbar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#toggletoptoolbar)󠁿

Action that toggles the Top Toolbar view option.

### 󠀁[trashPost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#trashpost)󠁿

Action for trashing the current post in the editor.

_Parameters_

 * _options_ `[Object]`: Options.
 * _options.force_ `[boolean]`: Whether to delete the post permanently instead of
   moving it to the trash.

### 󠀁[undo](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#undo)󠁿

Action that pops a record from undo history and undoes the edit.

### 󠀁[unlockPostAutosaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#unlockpostautosaving)󠁿

Action that unlocks post autosaving.

_Usage_

    ```
    // Unlock post saving with the lock key `mylock`:
    wp.data.dispatch( 'core/editor' ).unlockPostAutosaving( 'mylock' );
    ```

_Parameters_

 * _lockName_ `string`: The lock name.

_Returns_

 * `Object`: Action object

### 󠀁[unlockPostSaving](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#unlockpostsaving)󠁿

Action that unlocks post saving.

_Usage_

    ```
    // Unlock post saving with the lock key `mylock`:
    wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );
    ```

_Parameters_

 * _lockName_ `string`: The lock name.

_Returns_

 * `Object`: Action object

### 󠀁[updateBlock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblock)󠁿

_Related_

 * updateBlock in core/block-editor store.

### 󠀁[updateBlockAttributes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblockattributes)󠁿

_Related_

 * updateBlockAttributes in core/block-editor store.

### 󠀁[updateBlockListSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateblocklistsettings)󠁿

_Related_

 * updateBlockListSettings in core/block-editor store.

### 󠀁[updateEditorSettings](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updateeditorsettings)󠁿

Undocumented declaration.

### 󠀁[updatePost](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updatepost)󠁿

>  **Deprecated** since Gutenberg 9.7.0.

Returns an action object used in signalling that a patch of updates for the latest
version of the post have been received.

_Returns_

 * `Object`: Action object.

### 󠀁[updatePostLock](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/?output_format=md#updatepostlock)󠁿

Action that locks the editor.

_Parameters_

 * _lock_ `Object`: Details about the post lock status, user, and nonce.

_Returns_

 * `Object`: Action object.

First published

March 9, 2021

Last updated

November 5, 2026

Edit article

[ Improve it on GitHub: The Post Editor’s Data ](https://github.com/WordPress/gutenberg/edit/trunk/docs/reference-guides/data/data-core-editor.md)

[  Previous: Edit Widgets](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-widgets/)

[  Next: The Keyboard Shortcuts Data](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-keyboard-shortcuts/)