• Problem with this plugin is that you have only code and paragraph in allowed blocks. E.g. i need to put also img to details. So I had to slightly modify the /details-summary-block/src/index.js file
    const ALLOWED_BLOCKS = [ ‘core/code’, ‘core/paragraph’, ‘core/image’ ];
    and use them in InnerBlocks
    <details
    className={ className }
    >
    <summary>
    <RichText
    tagName=’summary’
    value={ summaryContent }
    onChange={ ( newContent ) => {
    setAttributes({ summaryContent: newContent });
    }}
    />
    </summary>
    <div>
    <InnerBlocks
    allowedBlocks={ ALLOWED_BLOCKS }
    />
    </div>
    </details>

    The page I need help with: [log in to see the link]

  • The topic ‘add more alowed blocks’ is closed to new replies.