Table drag and drop

I try to implement a drag and drop table

When I drop the target is null, and the dropPoint method will copy the table.

Hope you can give me some suggestions,Thank You

From what I think I have understood :

When a drag-and-drop is performed, it creates a clone of the selection at the dropPoint position, and deletes the previous selection. The problem is that by default, a NodeSelection of a table is converted into a CellSelection containing all the cells of the table, but deleting a CellSelection does only clear the content of the table (it doesn’t delete the whole table itself).

To solve this I just had to toggle this option when registering the tableEditing plugin :

tableEditing({ allowTableNodeSelection: true })
1 Like