diff --git a/docs/designers-developers/developers/data/data-core-block-editor.md b/docs/designers-developers/developers/data/data-core-block-editor.md index 03929e3671685..dcdff0b67aa14 100644 --- a/docs/designers-developers/developers/data/data-core-block-editor.md +++ b/docs/designers-developers/developers/data/data-core-block-editor.md @@ -763,6 +763,20 @@ via its `onChange` callback, in addition to `onInput`. Whether the most recent block change was persistent. +### __unstableIsLastBlockChangeIgnored + +Returns true if the most recent block change is be considered ignored, or +false otherwise. An ignored change is one not to be committed by +BlockEditorProvider, neither via `onChange` nor `onInput`. + +*Parameters* + + * state: Block editor state. + +*Returns* + +Whether the most recent block change was ignored. + ## Actions ### resetBlocks @@ -980,6 +994,17 @@ specified client ID is to be removed. * selectPrevious: True if the previous block should be selected when a block is removed. +### replaceInnerBlocks + +Returns an action object used in signalling that the inner blocks with the +specified client ID should be replaced. + +*Parameters* + + * rootClientId: Client ID of the block whose InnerBlocks will re replaced. + * blocks: Block objects to insert as new InnerBlocks + * updateSelection: If true block selection will be updated. If false, block selection will not change. Defaults to true. + ### toggleBlockMode Returns an action object used to toggle the block editing mode between diff --git a/docs/designers-developers/faq.md b/docs/designers-developers/faq.md index 4917ac8f82e3c..9bd9c8fae2530 100644 --- a/docs/designers-developers/faq.md +++ b/docs/designers-developers/faq.md @@ -102,13 +102,13 @@ This is the canonical list of keyboard shortcuts: