Copy link to clipboard
Copied
Hello Adobe InDesign Community,
I'm currently developing a plugin using the UXP template for React, and I'm encountering an issue with implementing drag-and-drop functionality. I'm fairly new to plugin development, and any guidance would be greatly appreciated.
Objective: My goal is to allow users to select an object (like a rectangle) from the active document, drag it into a panel, and drop it onto a div element within my React component. Once dropped, the component should capture and display the ID of the dragged element.
Current Implementation:
Click Event Handling: I can successfully retrieve the ID of a selected object through a click event and update the state as shown below:
This approach works perfectly for capturing the IDs of selected objects, however, the same function in the drop event does not work.
Drag and Drop Issues:
Troubleshooting Done:
Questions:
I would greatly appreciate any insights or suggestions on how to resolve these issues. Thank you in advance for your time and help!
InDesign hasn't implemented drag and drop for UXP yet, I checked with engineering.
Copy link to clipboard
Copied
You may get more info on UXP in these forums:
Copy link to clipboard
Copied
InDesign hasn't implemented drag and drop for UXP yet, I checked with engineering.
Copy link to clipboard
Copied