Closed purelogiq closed 11 months ago
Thanks for reporting the issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.
Internal tracking Id: OWA: 202986 Mac: 7502526, 7795201
We have updated the documentation here: https://learn.microsoft.com/en-us/javascript/api/outlook/office.body?view=outlook-js-preview. Resolving the issue.
Provide required information needed to triage your issue
Your Environment
Expected behavior
After using
setAsync
to update a mailbox body in Outlook's compose window, the cursor remains at the same position or the default position (start of the body). (This also happens withprependAsync
)Current behavior
After using
setAsync
to update a mailbox body in Outlook's compose window, the cursor is placed at the end of the email body. (This also happens withprependAsync
)Steps to reproduce
setAsync
in anyway e.g. to add<div>test</div>
to the body. Example code (might not work 100%)item.body.getAsync(CoercionType.HTML, (response) => { const el = document.createElement('div'); el.innerHTML = response.value; el.firstChild.insertAdjacentHTML('beforeend', '