Support

Account

Home Forums Feature Requests Register block_types with example possibility

Unread

Register block_types with example possibility

  • The core blocks can be defined with an “example”, so when you hover over them, you see the “example” already.

    registerBlockType('kennisnet/block-support', {
    		title: 'Support',
    		icon: 'phone',
    category: 'kennisnet',
    		description:...
    		example: {
    			attributes: {
    				content: 'Lorem ipsum dolor sit amet, <a href="#" >consectetur</a> adipiscing elit.'
    			}
    		},

    This would be a nice feature for ACF too, since now the editors that work with the system can not really tell what block they will need.

    A generated “example” of the ACF blocks would help them tremendously.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.