Container mark for text styling attributes. Internal utility mark that wraps text with style properties, automatically cleaned when empty.

OOXML Structure

<w:r>
  <w:rPr>
    <w:rStyle w:val="CustomStyle1"/>
    <w:color w:val="2196F3"/>
    <w:sz w:val="36"/>
  </w:rPr>
  <w:t>Styled text</w:t>
</w:r>

Why it exists

  • Style composition - Container for multiple attributes
  • DOM cleanup - Prevents empty spans
  • Word compatibility - Maps to style runs
  • Extension bridge - Other marks can add attributes
  • Performance - Single mark for multiple styles

Commands

removeEmptyTextStyle

Remove empty text style marks
Cleanup utility to prevent empty span elements
removeEmptyTextStyle()