element.createElement; var InnerBlocks = blockEditor.InnerBlocks; var innerBlocksOptions = {}; blocks.registerBlockType( 'demo/inner-blocks', { title: 'Inner Blocks Demo', category: 'common', attributes: {}, edit: function( props ) { return el( 'div', { className: 'block-inner-blocks-demo'}, el( 'p', {}, 'Before the inner blocks' ), el( 'div', { style: { border: '2px solid red' } }, el( InnerBlocks, innerBlocksOptions ) ), el( 'p', {}, 'After the inner blocks' ), ); }, save: function( props ) { return el( 'div', { className: 'block-inner-blocks-demo'}, el( 'p', {}, 'Before the inner blocks' ), el( 'div', { style: { border: '2px solid red' } }, el( InnerBlocks.Content ) ), el( 'p', {}, 'After the inner blocks’ ), ); }, } ) } ) ( window.wp.blocks, window.wp.blockEditor, window.wp.element );