feat: re-order rows with drag and drop and / or context menu
Hi Editor js team,
Thanks again for your amazing work. Do you know a way to reorder tables rows with drag and drop, or with context menu "move up / down - left / right ?
Must have solution
Nice to have solution
Doing it with drag and drop, thanks to https://github.com/kommitters/editorjs-drag-drop/issues/144
Thanks a lot !
Hi, following back about this last issue created.
Is there a way to implement drag and drop of rows / columns to re-adjust their order ?
Thanks a lot
@1GeekaN2 @neSpecc do you still maintain this lib ? do you need help to maintain it ?
@1GeekaN2 @neSpecc do you still maintain this lib ? do you need help to maintain it ?
Yes, but I'm currently focused on Editor core updating.
What about drag-and-drop or moving through the context menu? I believe it can be implemented. What is your priority?
@1GeekaN2 @neSpecc do you still maintain this lib ? do you need help to maintain it ?
Yes, but I'm currently focused on Editor core updating.
What about drag-and-drop or moving through the context menu? I believe it can be implemented. What is your priority?
Thanks a lot @neSpecc for the quick answer. Priority would be thru the context menu (move row up, move row down, move column left, move column right), that's much more straightforward to implement.
Do you need help to implement it ? That should just be a very simple array switching in the state of the table
{
"type" : "table",
"data" : {
"withHeadings": true,
"content" : [
[ "Kine", "Pigs", "Chicken" ],
[ "1 pcs", "3 pcs", "12 pcs" ],
[ "100$", "200$", "150$" ] ] // moving this row up
}
}
=>
{
"type" : "table",
"data" : {
"withHeadings": true,
"content" : [
[ "Kine", "Pigs", "Chicken" ],
[ "100$", "200$", "150$" ] ],
[ "1 pcs", "3 pcs", "12 pcs" ]
}
}