Support

Account

Home Forums Feature Requests Register block_types with example possibility

Unread

Register block_types with example possibility

    • sschat

    • January 30, 2020 at 9:34 pm

    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.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.