Closed chambomango closed 3 weeks ago
Hi @chambomango , thanks for sharing the observations. We will investigate and get back on this.
We are not able to repro the issue. Could you please share a repro video? We would like to understand how the API is getting called after selecting the image.
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
Your Environment
Expected behavior
The
<img>
should get replaced with the data we send to setSelectedDataAsync(). In our case we tried setting the selected data to another<img>
tagCurrent behavior
The
<img>
tag within the<p>
tag gets replaced with an empty string, and the p tag converts to a<div>
Steps to reproduce
<p class="pTagWrapper" style="margin:0">
<img src="https://picsum.photos/200/300" style="display:block" >
</p>
using setBody() or some equivalent<img src="https://picsum.photos/id/237/200/300" alt="dog" width="500" height="600">
. For the setSelectedDataAsync options I used{ coercionType: Office.CoercionType.Html }
addRange()
warning appears in the consoleContext
We need this in order to set images inside p tags
Screenshots
Before:
After:
Useful logs