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

objobject

The drag&drop emulation properties.

obj.typestring

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.xnumber

The horizontal coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document.

obj.ynumber

The vertical coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document.

obj.htmlstring

The dragged HTML element.

obj.textstring

The dragged text.

Returns

void

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).