Outlook Desktop, setSelectedDataAsync sets incorrect color for cell borders in a table #1818
Closed
1 task done
Labels
Area: Outlook
Issue related to Outlook add-ins
In an Outlook add-in for compose mode, we use the setSelectedDataAsync method that inserts HTML with incorrect result, the color is not applied to all borders of a cell.
Expected Behavior
All borders of a cell shall have the specified color.
Current Behavior
Please see the screenshot below.
Steps to Reproduce, or Live Example
Create a new email in Outlook Desktop and execute the following code:
Office.context.mailbox.item.body.setSelectedDataAsync(
'<p>Table</p>' +
'<table style="width: 100%; border-collapse: collapse; border-style: solid; border-color: black;" border="1px">' +
'<tbody>' +
'<tr>' +
'<td style="width: 50.0%; border: 1px solid red;">border: 1px solid red</td>' +
'<td style="width: 50.0%; border: 1px solid black;">text</td>' +
'</tr>' +
'<tr>' +
'<td style="width: 50.0%; border: 1px solid black;">text</td>' +
'<td style="width: 50.0%; border: 1px solid black;">text</td>' +
'</tr>' +
'</tbody>' +
'</table>',
{ coercionType : 'html' },
function (result) { console.log(JSON.stringify(result)); }
);
As you can see, the borders of the first cell are not red.
Your Environment
Useful logs
The text was updated successfully, but these errors were encountered: