Skip to content

Custom blocks cannot be nested in the editor #1540

@ClementEXWiki

Description

@ClementEXWiki

Describe the bug
Some blocks cannot be nested, including all custom blocks. For instance, editing a custom block in the editor and inserting a heading will make the heading appear below the custom block, instead of inside it.

Inserting a custom block inside another will result in the same behavior.

There's already another issue on that matter, but a reproduction example was apparently missing, so I'll provide one here.

To Reproduce
Minimal reproduction sandbox: https://stackblitz.com/edit/github-df1nzmdk
In the editor, type /wrapper to insert the custom demo element, then inside it type /wrapper again (or some other 'big' blocks like headings). Insert of the element being inserted inside the first wrapper, it is created below it.

Misc

  • Node version: v22.14.0
  • Package manager: 10.5.0
  • Browser: Firefox 136

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions