You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explore options for additional right-click behaviour within the editor canvas and other areas #57091
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
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.
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.
I tried adding a split text feature, which can make a new block for selected text in the middle of a block:
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:
Activity
fabiankaegy commentedon Jan 4, 2024
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.
karmatosed commentedon Jul 15, 2025
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.
s1sfa commentedon May 22, 2026
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.
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:


