Copying a partial unmergable block has no visible effect (and copy fails) #54193
Labels
[Feature] Block Multi Selection
The ability to select and manipulate multiple blocks
[Type] Bug
An existing feature does not function as intended
Description
Follow up to #40098.
#40098 PR added the ability to select and copy/cut partial text from multiple blocks. However for unmergable blocks like the Quote block the fallback behaviour is set to only expand the selection. However this has two problems:
Overall for the user, if they go to paste this content will find that the copy did not work. Usually this actually pastes old clipboard content (from a previous successful copy) or does nothing in the case of an empty clipboard.
Step-by-step reproduction instructions
Expected:
Ideally it would create a paragraph with content "bar" and a quote with content "world" - i.e. remove the expansion fallback logic and try to handle it.
Or it should perform the expansion to the full blocks and then copy the blocks to the clipboard.
Actual:
Nothing seemingly happens. Internally the selection now contains both full blocks.
Screenshots, screen recording, code snippet
Here I have selected between bar and hello, however the selection colours makes it look like both blocks are selected:
Pressing CMD+C now expands the selection to the full blocks, but nothing changes visually:
The user would need to press CMD+C a second time to copy the blocks.
Environment info
Mac OSX, Chrome.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: