-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <CopyHandler> to WidgetAreasBlockEditorProvider #33166
Conversation
Size Change: +628 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting and for such a quick followup.
This works as described:
Screen.Capture.on.2021-07-02.at.15-59-56.mov
In the video you'll see "missing blocks" when I paste but that's because this PR doesn't include my fix from #33164. If you rebase you'll get that but probably not required for approval.
Thanks @adamziel! |
Description
This follows up on #33164 where I noticed that using "cmd+c" copies blocks as text whereas clicking "copy" in the context menu copies them as blocks. This PR wraps the widgets editor in
<CopyHandler>
which restores the functionallty of cmd+c.How has this been tested?
This works best with #33164 applied, otherwise you'll see some error messages like "This block is missing". They can be ignored for the purposes of testing this specific PR.
Then repeat in the customizer (where you won't see the notice but the pasting should still work).
Types of changes
Bug fix (non-breaking change which fixes an issue)