drag image #3508
Replies: 3 comments 7 replies
-
Can you try removing the Image-related configuration in with-draggables.tsx? |
Beta Was this translation helpful? Give feedback.
-
There is no image configuration in with-draggable.tsx Looking at the source code of the Image component, the draggable property of Img is true, so the image itself supports dragging. I think there should be a drop event to listen for the dragging and dropping of the image and perform related operations, but I couldn't find the key code. Because I want to achieve the same functionality as the latest plate demo, where dragging and dropping the image itself does not perform any operations, and only the left drag button is executed |
Beta Was this translation helpful? Give feedback.
-
You should config with-draggable.tsx then disable the set the draggable to false |
Beta Was this translation helpful? Give feedback.
-
Description
In version 36, dragging images was possible within a line, but in version 37 it is no longer possible and can only be dragged to the front or back of a certain line. I would like to know where this behavior is controlled and hope to receive help
in version 36
Reproduction URL
No response
Reproduction steps
Plate version
36.0.6
Slate React version
18.3.1
Screenshots
No response
Logs
No response
Browsers
No response
Funding
Beta Was this translation helpful? Give feedback.
All reactions