@@ -7,7 +7,6 @@ import { dispatch } from '@wordpress/data';
77import { store as editorStore } from '@wordpress/editor' ;
88import { store as preferencesStore } from '@wordpress/preferences' ;
99import { registerCoreBlocks } from '@wordpress/block-library' ;
10- import { unregisterDisallowedBlocks } from './blocks' ;
1110import { getGBKit , getPost } from './bridge' ;
1211import { getDefaultEditorSettings } from './editor-settings' ;
1312import { setLogLevel } from './logger' ;
@@ -18,11 +17,8 @@ import { setLogLevel } from './logger';
1817 * Dependency injection is used for various `@wordpress` package functions so
1918 * that this utility can be used in both the local and remote editor, which
2019 * rely upon ES modules and global variables, respectively.
21- *
22- * @param {Object } [options]
23- * @param {Array } [options.allowedBlockTypes]
2420 */
25- export function initializeEditor ( { allowedBlockTypes } = { } ) {
21+ export function initializeEditor ( ) {
2622 const { themeStyles, hideTitle, editorSettings, logLevel } = getGBKit ( ) ;
2723
2824 const settings = editorSettings || getDefaultEditorSettings ( ) ;
@@ -44,7 +40,6 @@ export function initializeEditor( { allowedBlockTypes } = {} ) {
4440 preferenceDispatch . set ( 'core' , 'editorMode' , 'visual' ) ;
4541
4642 registerCoreBlocks ( ) ;
47- unregisterDisallowedBlocks ( allowedBlockTypes ) ;
4843 const post = getPost ( ) ;
4944
5045 createRoot ( document . getElementById ( 'root' ) ) . render (
0 commit comments