Keyboard & Right-Click Menu Copy + Paste#3083
Conversation
|
Nice, can‘t wait to test this! |
|
There is an issue with keyboard copying, namely, the The following blocks seem to work OK:
The rest of the blocks are not reliably copied to clipboard. If the block gets copied then everything works as expected. Debugged the upstream @swissspidy Any thoughts on this? Otherwise, looks like the Right-Click menu might be the way to reliably implement this feature. |
|
Haven't gotten around to test this myself yet, but what you describe sounds like an upstream bug (or perhaps even a browser issue) that we can't work around ourselves. Is there any related issue in the Gutenberg repository about the copy handler?
👍 |
Couldn't find it as much as I checked at least, can look some more. I'll try testing it again later with clean WP Install (with AMP Plugin completely disabled) to see if that's still the case and then open an issue if yes. |
Reorganize adding block actions.
Co-Authored-By: Pascal Birchler <pascalb@google.com>
…to add/2996-keyboard-copy-paste # Conflicts: # assets/src/stories-editor/blocks/amp-story-page/edit.js # assets/src/stories-editor/helpers/index.js # assets/src/stories-editor/index.js
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
swissspidy
left a comment
There was a problem hiding this comment.
Everything is working as expected:
- Keyboard copy/paste
- right click context menu for copying and pasting
- browser clipboard permission dialog
27023d1 to
8dbf87b
Compare
ecf6b79 to
a425d0b
Compare
c686037 to
593086a
Compare
|
E2E tests are passing. Can someone re-review this? |
…keep-attributes-with-mustache-placeholders-intact * 'develop' of github.com:ampproject/amp-wp: (113 commits) This converts the keyboard cut handler to equal a copy handler to avoid bugs Fix aria-label adding helper function Remove extra line I added in resolving merge conflict Fix alignment of arrow Fix custom CTA text for page attachment Fix cut handler by shortcut Cleanup of duplicated comment Add unit testing to `addVideoAriaLabel` Remove unused piece of code Remove Cloudflare AMP cache since deprecated Handle cut keyboard requests. (#3231) Page Attachment block (#3035) Keyboard & Right-Click Menu Copy + Paste (#3083) Animation Previews (#3104) Make internal methods inaccessible Omit the ecosystem link also when using a core theme Add skipped e2e test for the video block Add array_colum() pollyfill for PHP < 5.5 Add asserts to make sure we are not enqueueing both versions of dashicons Remove useless variable ...
Closes #2996
Closes #2990
Closes #2989
Todo: