Created
October 5, 2018 18:12
Test case for https://github.com/WordPress/gutenberg/issues/10301
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
registerBlockType, | |
} = wp.blocks; | |
const { | |
InnerBlocks, | |
} = wp.editor; | |
export default registerBlockType( 'test/should-not-accept-paragraph', { | |
title: 'Test Block', | |
category: 'common', | |
attributes: {}, | |
edit: props => { | |
return ( | |
<InnerBlocks | |
allowedBlocks={ [ 'core/html' ] } | |
/> | |
) | |
}, | |
save: function( props ) { | |
return null; | |
}, | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment