[BUGFIX] Decouple pasting from drag & drop handling 70/57970/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 20 Aug 2018 17:25:15 +0000 (19:25 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Wed, 22 Aug 2018 07:08:48 +0000 (09:08 +0200)
commitaf788148014d42a74fc30217a2ac50054f8ca096
tree1fce95e77cdd23089274bab916e2d6e1f3f477aa
parentfe7ab8a88b18c1e106e334bad60ba442598ed534
[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.

Resolves: #85912
Releases: master
Change-Id: I3a8943e90a92c0ad4afec9e87091f9cd1878c34c
Reviewed-on: https://review.typo3.org/57970
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Manuel Selbach <manuel_selbach@yahoo.de>
Tested-by: Manuel Selbach <manuel_selbach@yahoo.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
typo3/sysext/backend/Resources/Private/TypeScript/LayoutModule/DragDrop.ts
typo3/sysext/backend/Resources/Public/JavaScript/LayoutModule/DragDrop.js
typo3/sysext/backend/Resources/Public/JavaScript/LayoutModule/Paste.js