Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Register core sources in edit-post and edit-site
  • Loading branch information
SantosGuillamot committed Jul 4, 2024
commit d6978d8ca4c61431c67761844ff3b7bd2e2bced7
2 changes: 2 additions & 0 deletions packages/edit-post/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { unlock } from './lock-unlock';
const {
BackButton: __experimentalMainDashboardButton,
registerDefaultActions,
registerCoreBlockBindingsSources,
} = unlock( editorPrivateApis );

/**
Expand Down Expand Up @@ -86,6 +87,7 @@ export function initializeEditor(
}

registerCoreBlocks();
registerCoreBlockBindingsSources();
registerLegacyWidgetBlock( { inserter: false } );
registerWidgetGroupBlock( { inserter: false } );
if ( globalThis.IS_GUTENBERG_PLUGIN ) {
Expand Down
4 changes: 3 additions & 1 deletion packages/edit-site/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import { store as editSiteStore } from './store';
import { unlock } from './lock-unlock';
import App from './components/app';

const { registerDefaultActions } = unlock( editorPrivateApis );
const { registerDefaultActions, registerCoreBlockBindingsSources } =
unlock( editorPrivateApis );

/**
* Initializes the site editor screen.
Expand All @@ -45,6 +46,7 @@ export function initializeEditor( id, settings ) {
( { name } ) => name !== 'core/freeform'
);
registerCoreBlocks( coreBlocks );
registerCoreBlockBindingsSources();
dispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );
registerLegacyWidgetBlock( { inserter: false } );
registerWidgetGroupBlock( { inserter: false } );
Expand Down