Skip to content

Drag and drop target marker not shown when there is only one paragraph #42365

Closed

Description

@msurdi

Description

When there's only one paragraph, the blue image drop marker is not being shown, which makes it unclear where the image is going to land when dropped.

Step-by-step reproduction instructions

  1. Write a post consisting of just a title and a single line (paragraph) of text
  2. Drag and drop an image, try to drop it before or after the paragraph. It's unclear where it is going to land.

Screenshots, screen recording, code snippet

I'm attaching two videos. In the first one you can see the blue marker is not displayed, thus not making easy to tell where (and if) the image is going to drop.

In the second one you can see it working between paragraphs, but still doesn't show before the first one, or after the last one.

no-marker.mp4
marker.mp4

Environment info

Gutenberg: v13.6.0
Theme: Twenty Twenty Two
WordPress version: 6.0-RC4-53438

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] Bug
    [Block] Image
    on Jul 12, 2022
  2. kathrynwp commented on Jul 12, 2022

    @kathrynwp

    I was able to replicate this with:

    WordPress: 6.0
    Gutenberg: 13.6.0
    Theme: Twenty Twenty-Two

    With Gutenberg deactivated, the issue is not present and the blue image drop marker does appear as expected.

  3. added
    [Feature] Drag and Drop
    on Jul 13, 2022
  4. talldan commented on Sep 12, 2022

    @talldan
    Contributor

    This is fixed as of #43135.

    There's one situation where is still doesn't work, which is the default block appender that appears when first creating a post (the text that says "Type / to choose a block"). There's also #42722 that may end up being a reasonable way to fix that.

    I'll close this and report that problem in another issue (#44064).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Image[Feature] Drag and Drop[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions