Description
Thanks for the tutorial @getdave ! With no react XP I've used this to create an editor outside of the WP env and it's working great.
Could you give any pointers on how to add the BlockBreadcrumb component ?
After working through the tutorial I tried to do this myself by adding the following snippet into the Editor component, the breadcrumb component is now rendering and clicking on 'Document' does deselect blocks so it's also partially functioning however the component does not update and display breadcrumbs when selecting on blocks.
footer={
(
<div className="edit-post-layout__footer">
<BlockBreadcrumb />
</div>
)
}
I think you hint at the answer in the tutorial;
It does this in part thanks to being placed as a child of BlockEditorProvider which affords it full access to all information about the state of the current Blocks in the editor.
Looking at the current WP implementation of EditPost they're actually embedding the whole InterfaceSkeleton
within the BlockEditorProvider
whereas this tutorial has it outside.
Any help would be really appreciated.