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: Cmd+A to select all items then paste fails, pasting nothing #59381

Closed
annezazu opened this issue Feb 26, 2024 · 2 comments · Fixed by #59460
Closed

List block: Cmd+A to select all items then paste fails, pasting nothing #59381

annezazu opened this issue Feb 26, 2024 · 2 comments · Fixed by #59460
Assignees
Labels
[Block] List Affects the List Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

Pulling this specific issue out of #52743 as I can replicate with 6.5 beta 2. @ellatrix can you track this down?

Replication steps:

  1. Create four list items.
  2. Use Cmd + a to select them and copy.
  3. Try to paste. Notice nothing pastes.

Screen recording:

cmd.a.mov
@t-hamano
Copy link
Contributor

I was also able to reproduce this problem. The underlying problem seems to be caused by the difference between whether a block or text is selected.

  • ✅ Select text in the list with the cursor and copy and paste: In the received HTML, the ul element is present and pasted correctly
  • ❌ Select block via Cmd+A or the list view and copy and paste: In the received HTML, the ul element is not present and nothing is pasted.
d26fcd12e4ee05a1d40867bed4a724a9.mp4

@annezazu annezazu moved this from ❓ Triage to 📥 Todo in WordPress 6.5 Editor Tasks Feb 27, 2024
@ellatrix
Copy link
Member

Looking into it

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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants