Skip to content

qarayahya/enable-context-menu

Repository files navigation

Enable Context Menu

Adds a right-click context menu to every block in the WordPress block editor. Right-clicking any block on the canvas opens a custom popover with the most common block actions at your cursor — no toolbar hunting required.

Try it

Try it in WordPress Playground

Actions

Action Shortcut Description
Copy Ctrl+C / ⌘C Serializes the block and writes it to the clipboard
Paste Ctrl+V / ⌘V Reads the clipboard and inserts blocks directly after the current block
Duplicate Ctrl+Shift+D / ⌘⇧D Clones the block in place
Copy Styles Copies the block's style attributes to the clipboard
Paste Styles Ctrl+Alt+V / ⌘⌥V Applies style attributes from the clipboard to the current block
Reset Styles Clears all colors, typography, spacing, and border values
Rename Opens a modal to set a custom label via metadata.name
Delete Ctrl+Backspace / ⌘⌫ Removes the block (hidden when the block is locked)

Development

npm install
npm build

About

Adds a right-click context menu to every block in the WordPress block editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors