Skip to content

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Aug 7, 2025

Resolves: #1147

What I did

An editor can now drag & drop a node with a new button in the node toolbar.
While dragging the node, the UI shows the allowed drop areas on hover and depending on the cursor position over the hovered element. E.g. drag into collection, drag before / after existing element.

How I did it

I added a new button to all nodes with the dragging event to start a drag. A global drag component has events for the drag over, drop and drag end events and shows the indicator while dragging and triggers the move event on drop.

How to verify it

Neos.Node.Drag.and.Drop.mp4

mhsdesign and others added 4 commits May 8, 2025 14:25
with the ckeditor update #3883 we have to adjust this
…ot-a-function

BUGFIX: `createAttributeElement` is not a function
This gets rid of the float magic
@Sebobo Sebobo requested a review from mhsdesign August 7, 2025 11:20
@github-actions github-actions bot added the 9.1 label Aug 7, 2025
@Sebobo Sebobo changed the title Feature/1147 node drag drop FEATURE: Drag & drop nodes in content area Aug 7, 2025
@github-actions github-actions bot added the Feature Label to mark the change as feature label Aug 7, 2025
@Sebobo Sebobo moved this to In progress in Neos 9.1 UX Project Aug 7, 2025
@Sebobo Sebobo self-assigned this Aug 7, 2025
Sebobo added 3 commits August 13, 2025 13:11
CKEditor catches all drag events so we cannot handle them ourselves.
With this patch it ignores the ones with a neos type
@Sebobo Sebobo force-pushed the feature/1147-node-drag-drop branch from 3ea7f95 to f507932 Compare August 18, 2025 07:01
@Sebobo Sebobo marked this pull request as ready for review August 21, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.1 Feature Label to mark the change as feature
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Drag & drop to rearrange content in content canvas instead of cut & paste
2 participants