A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
When inserting an image into a selection using InsertInlinePictureFromBase64("base64Image, "Replace"), the image does not replace, it places it in on top of the selection.
Your Environment
Platform: Windows desktop
Host: Word
Office version number: Version 2312, Microsoft 365
Operating System: Windows
Expected behavior
The image should replace the image inside the selection or place inside the selection frame.
Current behavior
Select an image on a Word document. Try inserting using insertInlinePictureFromBase64("base64Image, "Replace"). Instead of replacing the image in the selection, it places the new image on top of the selection or moves the image selected over.
Steps to reproduce
Select an image from the Word document. Place an image using:
When inserting an image into a selection using
InsertInlinePictureFromBase64("base64Image, "Replace")
, the image does not replace, it places it in on top of the selection.Your Environment
Expected behavior
The image should replace the image inside the selection or place inside the selection frame.
Current behavior
Select an image on a Word document. Try inserting using
insertInlinePictureFromBase64("base64Image, "Replace")
. Instead of replacing the image in the selection, it places the new image on top of the selection or moves the image selected over.Steps to reproduce
Select an image from the Word document. Place an image using:
You will see the image places on top of the selection but does not replace the image.
Link to live example(s)
https://github.com/OfficeDev/office-js/assets/40736908/661de988-6b2b-4843-b86d-563ba08f2bb3