On dropping text/html content to MS Word document the mso-element is not recognized

Brass Contributor

When i select text (text/html MIME type) from WYSIWYG editor and drop it to Word document all tags (like <span>) with styles are converted to Word document ooxml except the fields mso-element:field-begin in <span>...


Is there a way how they can be also rendered after i drop the html?


The html that i try to drop:


<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
    <span style="color: red;">
      <span style="mso-element:field-begin"></span> IF ""="" "YES" "NO" <span style="mso-element:field-separator"></span>YES<span style="mso-element: field-end"></span>



The result that i get: IF ""="" "YES" "NO" YES (Text color is red)


Expected result: Word field YES (Text color is red)


Also i discovered if i create a file (drop.html) on my computer with the same html content from above and drop it to MS Word document then it creates YES mso field like it is expected.

0 Replies