Skip to content

Writing Flow: Pressing Delete from post title should delete from first block #73315

@aduth

Description

@aduth

What problem does this address?

When pressing Delete from the end of the post title, I expect that if there's a block after the title, the first block is affected in the same way as if I were pressing Delete from the end of any other block that has a block after it.

Pressing Enter from the post title has the effect of creating a block after the title, so this behavior should similarly follow from that.

Steps to reproduce:

  1. Go to post editor
  2. Enter a title
  3. Press Enter twice
  4. Type something
  5. Observe that you have a post with a title, an empty block, and a paragraph with some text
  6. Put cursor at end of post title
  7. Press Delete

Expected result: I have a post with a title and a single paragraph with some text

Actual result: Nothing has changed from Step 5

What is your proposed solution?

The "actual result" should apply.

If the post title is followed by an empty default block, that block should be deleted.

If the post title is followed by a block with some content... it should probably behave the same as if you're pressing Delete at the end of any other block. For example, a paragraph block's content should be appended into the title.

(An initial solution could at least handle the default empty block case)

cc @ellatrix

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions