Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Add support for EditorsKit navigator toolbar #243

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/blocks/block-column-inner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ registerBlockType( 'atomic-blocks/ab-column', {
}
},

/* Add block supports */
supports: {
// Add EditorsKit block navigator toolbar
editorsKitBlockNavigator: true,
},

/* Render the block in the editor. */
edit: props => {
return <Edit { ...props } />;
Expand Down
6 changes: 6 additions & 0 deletions src/blocks/block-column/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ registerBlockType( 'atomic-blocks/ab-columns', {
}
},

/* Add block supports */
supports:{
// Add EditorsKit block navigator toolbar
editorsKitBlockNavigator : true,
},

/* Add alignment to block wrapper. */
getEditWrapperProps({ align }) {
if ( 'left' === align || 'right' === align || 'full' === align || 'wide' === align ) {
Expand Down
6 changes: 6 additions & 0 deletions src/blocks/block-container/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ registerBlockType( 'atomic-blocks/ab-container', {
}
},

/* Add block supports */
supports: {
// Add EditorsKit block navigator toolbar
editorsKitBlockNavigator: true,
},

// Render the block components
edit: ABContainerBlock,

Expand Down