Skip to content
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

List block: copy/paste individual block results in inconsistent experience #52743

Open
Tracked by #53305
annezazu opened this issue Jul 19, 2023 · 7 comments
Open
Tracked by #53305
Labels
[Block] List Affects the List Block [Feature] Paste Needs Dev Ready for, and needs developer efforts [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

If you try to copy/paste individual items, it's wildly inconsistent whether you can get the block to actually copy and, when pasting, it often pastes just as a paragraph rather than a list block:

  • It's hard to get it to truly copy an individual list block.
  • When pasting, most of the time it pastes an individual item as a paragraph.
  • Sometimes when copying, it then won't have anything to paste

Here's a video demoing all of this with 6.3 RC1:

List.copy.and.paste.and.cut.mov
@annezazu annezazu added [Type] Bug An existing feature does not function as intended [Block] List Affects the List Block labels Jul 19, 2023
@ellatrix
Copy link
Member

ellatrix commented Aug 3, 2023

This is similar to #48254, but unfortunately not fixed by that PR because the list block uses a div element for rich text, so it doesn't copy over the tag. We'd need #41628 for that. Alternatively, we somehow need to allow the paste even's data transfer to be manipulated by the block that hosts RichText. 🤔

@annezazu annezazu added the Needs Dev Ready for, and needs developer efforts label Aug 3, 2023
@annezazu annezazu moved this to Needs Dev / Todo in WordPress 6.4 Editor Tasks Aug 30, 2023
@bph bph moved this from Needs Dev / Todo to Punted to 6.5 in WordPress 6.4 Editor Tasks Sep 18, 2023
@bph bph moved this to ❓ Triage in WordPress 6.5 Editor Tasks Nov 23, 2023
@annezazu
Copy link
Contributor Author

annezazu commented Feb 8, 2024

After a review by core editor triage leads and core editor tech leads, this has been removed from the board for 6.5 consideration.

@17cliu
Copy link

17cliu commented Feb 14, 2024

When I use Cmd+A to select all list items, then copy, then attempt to paste, nothing is pasted. Pasting single list items, or some (but not all) list items, does work. See screenrecording below from https://wordpress.org/gutenberg/ on Firefox (MacOS):

Screen.Recording.2024-02-14.at.2.15.18.PM.mov

This is a blocker for us on Tumblr, where we're trying to upgrade to List block v2.

If this is a distinctly different bug from this issue, let me know and I can open a separate ticket.

@annezazu
Copy link
Contributor Author

@ellatrix can you look into the above?

@annezazu
Copy link
Contributor Author

To be safe, I've opened this issue to cover your use case @17cliu #59381 and have added it to the 6.5 board as I can replicate with 6.5 beta 2. Thank you for reporting!

@17cliu
Copy link

17cliu commented Feb 27, 2024

Thank you @annezazu !

@ellatrix
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Feature] Paste Needs Dev Ready for, and needs developer efforts [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Punted to 6.5
Development

No branches or pull requests

3 participants