PutImageDataToSelection

function PutImageDataToSelection(oImageData: ImageData): void

Description

Replaces the first selected drawing with the image specified in the parameters. If there are no drawings selected, the method inserts the image at the current position.

Parameters

oImageDataImageData

The information about the base64 encoded png image.

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