Implements the external drag&drop emulation.
Name | Type | Description |
obj | object | The drag&drop emulation properties. |
obj.type | string | The drag&drop event type:
|
obj.x | number | The horizontal coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document. |
obj.y | number | The vertical coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document. |
obj.html | string | The dragged HTML element. |
obj.text | string | The dragged text. |
window.Asc.plugin.executeMethod ("OnDropEvent", [{
"type": "onbeforedrop",
"x" : pos.x,
"y" : pos.y
}]);
window.Asc.plugin.executeMethod ("OnDropEvent", [{
"type": "ondrop",
"x" : pos.x,
"y" : pos.y,
"text" : "test text",
"html" : "test html"
}]);