Hi,
i am trying to create a new rectangle element in the plugin panel, and setting the fill of it, add pluginData, and then having the ability to drag and drop it to the artboard.
i tried using this and appendChild
document.createElement('img');
however, i am not sure how to change the pluginData of it.
i am succeeding to drag and drop an image to the artboard, however i don’t know how to add to it the pluginData. (i tried changing the element with editDocument when “dragend” action is happening but it doesn’t work.)
is there a simple way to add an element to the panel and add to it pluginData before i am dragging it to the artboard?