Skip to content

Remove blank line under a 'none' content block will remove 'none' block together #605

@tcper

Description

@tcper

Describe the bug
When I need to remove a blank line under a 'none' type content, it never works, remove the 'none' content together.
I think remove a blank line is reasonable action.
20240305-161541

const blockConfig = {
  type: "image" as const,
  propSchema: imagePropSchema,
  content: "none",
} satisfies CustomBlockConfig;

I tried, all content: "none", will cause this bug.

To Reproduce

  1. Insert a 'none' content block, like 'image'
  2. Insert a blank line under the 'none' content block
  3. Press Backspace in the blank line

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprio:midMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions