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

%3CLINGO-SUB%20id%3D%22lingo-sub-2991555%22%20slang%3D%22en-US%22%3EOn%20dropping%20text%2Fhtml%20content%20to%20MS%20Word%20document%20the%20mso-element%20is%20not%20recognized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2991555%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20i%20select%20text%20(text%2Fhtml%20MIME%20type)%20from%20WYSIWYG%20editor%20and%20drop%20it%20to%20Word%20document%20all%20tags%20(like%20%3CU%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FU%3E)%20with%20styles%20are%20converted%20to%20Word%20document%20ooxml%20except%20the%20fields%20%3CU%3Emso-element%3Afield-begin%3C%2FU%3E%20in%20%3CU%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FU%3E...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EIs%20there%20a%20way%20how%20they%20can%20be%20also%20rendered%20after%20i%20drop%20the%20html%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20html%20that%20i%20try%20to%20drop%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%0A%20%20%0A%20%20%20%20%3CSPAN%20style%3D%22color%3A%20red%3B%22%3E%0A%20%20%20%20%20%20%3CSPAN%20style%3D%22mso-element%3Afield-begin%22%3E%3C%2FSPAN%3E%20IF%20%22%22%3D%22%22%20%22YES%22%20%22NO%22%20%3CSPAN%20style%3D%22mso-element%3Afield-separator%22%3E%3C%2FSPAN%3EYES%3CSPAN%20style%3D%22mso-element%3A%20field-end%22%3E%3C%2FSPAN%3E%0A%20%20%20%20%3C%2FSPAN%3E%0A%20%20%0A%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20result%20that%20i%20get%3A%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CU%3EIF%20%22%22%3D%22%22%20%22YES%22%20%22NO%22%20YES%3C%2FU%3E%3C%2FFONT%3E%20(Text%20color%20is%20red)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExpected%20result%3A%20Word%20field%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CU%3EYES%3C%2FU%3E%3C%2FFONT%3E%20(Text%20color%20is%20red)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20i%20discovered%20if%20i%20create%20a%20file%20(drop.html)%20on%20my%20computer%20with%20the%20same%20html%20content%20from%20above%20and%20drop%20it%20to%20MS%20Word%20document%20then%20it%20creates%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CU%3EYES%3C%2FU%3E%3C%2FFONT%3E%26nbsp%3Bmso%20field%20like%20it%20is%20expected.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2991555%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edrag%20and%20drop%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHTML%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWord%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New 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">
  <body>
    <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>
    </span>
  </body>
</html>

 

 

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