Button "Paste after this record" or "Paste into this column" is broken
If a content element get's copied and tried to insert directly via the buttons defined in the subject, nothing happens.
How to reproduce:
- Open a page in the page module with some content on it
- Copy a content element
- try to paste it via the button "Paste after this record" or "Paste into this column"
- Nothing happens
This issue seems to be located in the DragDrop.js or in Paste.js
[BUGFIX] Decouple pasting from drag & drop handling
The "Paste" action now does not depend on the `DragDrop` anymore.
Previously, the `onDrop` event callback was called manually which is
wrong in that case, as the callback does far more calculations than
necessary when doing a simple paste action.
In the same run, the DragDrop module has been simplified, the module now
doesn't know anything about pasting content elements anymore.
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Markus Klein <email@example.com>
Reviewed-by: Manuel Selbach <firstname.lastname@example.org>
Tested-by: Manuel Selbach <email@example.com>
Reviewed-by: Mathias Brodala <firstname.lastname@example.org>
Tested-by: Mathias Brodala <email@example.com>