ONLYOFFICE Workspace 12.5: enhanced security, optimized document management, Dark theme, and more
ONLYOFFICE Workspace 12.5 released

There are some problems with the PutImageDataToSelection method

According to the official example, the data in the selected image can be replaced, but if I perform the second replacement, the result is completely different from the first one.
This is the first time
image
This is the second time


The same method parameter is executed twice, but the results are completely different

Hello @bashfuldeng

Please correct me if I’m misunderstanding the usage scenario, it goes like this:

  1. You select an existing image in the document;
  2. To the selected image you apply method via plugin to replace the image;
  3. Then selecting the newly replaced image and executing method one more time.

Is that correct?

Yes, there’s no problem with your understanding.

Thanks for confirmation.
We are checking the situation. I will update this thread once any results come up.