feat: allow block/table copy and drag#762
Conversation
chrischrischris
left a comment
There was a problem hiding this comment.
Nice!
Lets wait for #741 to be merged before this one as that refactors how plugins are loaded.
|
I've been thinking quite a bit about this feature. I think we can simplify to get something everyone will be happy with. Overarching thoughts on the current implementation
Proposed solution to move forward
To me, this is going to be a simpler and more accessible way for authors to move blocks around without going overboard with our own word processor conventions... and yes, Google Docs has this feature and it also has accessibility issues. Screencast.From.2026-02-08.10-39-44.webm |
@auniverseaway - good point about the demo tables - most use cases would likely have content making them taller which would make dragging difficult (although I do think there's value in letting authors do this - in a lot of cases you simply want to move a block after a section break that's immediately after or something similar). But happy to remove the ability to drag if there's an accessibility concern here. Re: exposing a menu on click - I don't think we even need this? Cut and copy have fairly standard shortcuts that most people already know. This plugin already allows you to click the handle to select the entire table. The author can then just choose to cut/copy via keyboard. Attaching demo. Let me know your thoughts and I'll just remove the drag & drop. |
|
Great work. My vote:
[1] Having this research in our pocket is going to be helpful later on. "Have you thought about?" is something we hear a lot from customers. |
fff5232 to
1f0e78d
Compare
1f0e78d to
401424f
Compare
@auniverseaway — updated to remove drag&drop functionality. Just allows table select now when the icon is clicked. |

Description
Introduces a
tableDragHandleplugin which:Related Issue
#761
Motivation and Context
It can be difficult currently for authors to move blocks around on a page or copy blocks easily, as you have to drag your cursor across all cells of a table and then copy/paste.
How Has This Been Tested?
localhostand https://drag-table--da-live--usman-khalid.aem.page/Screenshots (if appropriate):
Types of changes
Checklist: