Not all core blocks are available in Gutenberg

On a fresh install of Radicle, not all core blocks are available in Gutenberg:

I only have access to “text” and “media” groups.

On a basic WordPress installation (not with Radicle) I have access to various groups like “widgets”, “theme”, “embed”, …:

Even when trying to force a specific one, it doesn’t show up in the list:

add_filter('allowed_block_types', function($allowed_blocks, $post){
  return [
    'core/shortcode',
  ];
}, 10, 2);

Any idea why those are hidden on Radicle?

See https://roots.io/radicle/docs/block-editor-plugins/#default-editor-plugin

Ok I understand!

Since I don’t use React editor plugins and blocks in my project I commented all scripts in my bud.config.js and it fixed my problem:

radicle
    .setPath(`@dist`, `public/dist`)
    .setPublicPath(`/dist/`)
    .entry({
      app: [`@scripts/app`, `@styles/app`],
      editor: [
        // `@scripts/editor`, 
        `@styles/editor`
    ],
    })
    .assets(`images`);

Thank you for your help!

1 Like