Skip to content

Conversation

@Vrishabhsk
Copy link
Contributor

What?

Closes

Why?

How?

  • Register a new shortcut to copy all blocks within a post.
  • New shortcut : shift + option + ⌘ + C.

Testing Instructions

  1. Create a post and add dummy content. Use combination of normal blocks and some blocks with innerblocks like Gallery.
  2. To check for the shortcut, use this shortcut : ^ + option + h. Search for Copy all blocks under Global section.
  3. Use shift + option + ⌘ + C.
  4. Create another post and paste.
  5. The content should be similar.

@github-actions github-actions bot added the [Package] Editor /packages/editor label Dec 30, 2025
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Vrishabhsk <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: MatzeKitt <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

registerShortcut( {
name: 'core/editor/copy-all',
category: 'global',
description: __( 'Copy all content.' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we align this with the current text in the menu? So “Copy all blocks.” would be my string of choice.

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

Labels

[Package] Editor /packages/editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add keyboard shortcut for copying all blocks

2 participants