Skip to content

Explore options for additional right-click behaviour within the editor canvas and other areas #57091

Open

Description

@andrewserong

In #50273 the List View added right click behaviour to open up the block settings menu when right-clicking on a list view item. Which other areas in Gutenberg could benefit from a Gutenberg-specific right-click contextual menu? This issue is to gather ideas, potential designs, and discuss concerns or benefits of the feature.

Some ideas:

  • In the editor canvas, open up the block settings menu
  • In the editor canvas, use right click to allow inserting a block or pattern anywhere within the canvas, without having to click on the block inserter / appender button
  • In data views (e.g. pages within the site editor), open up the actions menu to allow quickly editing or deleting pages

Benefits

  • Easy access to block-specific controls and actions
  • More easily perform quick actions like duplicating and deleting blocks
  • Potentially more easily insert a block at any arbitrary location

Considerations

The browser's contextual menu includes many controls that users rely on when editing content. If considering replacing in the editor canvas with a custom contextual menu, some things to watch out for:

  • Needs cut/copy/paste controls for partial selection
  • Needs select all button
  • Open link in new window behaviour
  • Some folks might depend on the speech or services options under the browser's contextual menu

Activity

  1. added
    [Type] Enhancement
    [Feature] Block settings menu
    Needs Design
    on Dec 15, 2023
  2. fabiankaegy commented on Jan 4, 2024

    @fabiankaegy
    Member

    A pattern that I have really come to appreciate from places like YouTube is that when a context menu takes over the browser default behavior, a second right click within a short timeframe then allows the event through and opens the browser native menu.

    This elevates the need to duplicate all the things.

  3. karmatosed commented on Jul 15, 2025

    @karmatosed
    Member

    I feel like moving this to feedback might be better than having it sat with needing a design. Specifically so it can have some context.

  4. added
    Needs Design Feedback
    and removed
    Needs Design
    on Jul 15, 2025
  5. s1sfa commented on May 22, 2026

    @s1sfa

    I chose to do this as a project I was working on. I don't know Javascript and not a developer. Just seeing if I could achieve a proof of concept design for a feature that people can get a hands on and demo without knowing any coding. I think something like this could help improve accessibility and user experience and complements the minimalistic design when inexperienced users can't find where the option they want is. Right click can give a user common options. My goal is for people to be able to demo this feature to see if it's worth while to make an informed decision about what works and what doesn't before a developer takes on such a task.

    I was planning to make it as a PR, but 100% AI is against the PR rules. The project is published here.

    Image I tried adding a split text feature, which can make a new block for selected text in the middle of a block: Image

    This is an example of trying to paste content from a site and how default paste handles it vs pasting directly into html block vs opening an html block and pasting:
    Image
    Image
    Image

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

    Needs Design Feedback[Feature] Block settings menu[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions