OnDropEvent
function OnDropEvent(
obj: object,
obj.type: string,
obj.x: number,
obj.y: number,
obj.html: string,
obj.text: string,
): void
Description
Implements the external drag&drop emulation.
Parameters
- obj
object
The drag&drop emulation properties.
- obj.type
string
The drag&drop event type: onbeforedrop - an event that is fired when the selected text or element is dragged; ondrop - an event that is fired when the selected text or element is dropped on a valid drop target.
- 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.
Returns
void