Skip to content

Shift-Tab (liftListItem) results in prosemirror invalid content error. #1338

@iskaktoltay

Description

@iskaktoltay

Describe the bug
I have created a few paragraphs with nested children that look like this:
image
Trying to shift tab on any second level nested child (test or test 3), except for the last one results in an invalid content error being thrown.
image

To Reproduce

  1. Create a block.
  2. Create a few nested child blocks (more than one).
  3. Add another nested child block to all the child blocks created in step 2.
  4. Click Shift + Tab on any second level nested block.

Misc
Used the demo editor on your website.

Possible reason
I believe the issue is with Tiptap's liftListItem command trying to insert the following child nodes into the content of blockContainer, while blockContainter can only have one content node and one blockGroup as its' children in your schema.

Metadata

Metadata

Assignees

Labels

bug:P2High: Core functionality significantly impacted.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions