2.4.1.17 Rich Text Box Control

The rich text box control allows the user to enter rich text, such as formatted text, tables, hyperlinks, and images, in the form. A RICH_TEXT_BOX MUST have one of the symbols in the following table.

Symbol

Description

RICH_TEXT_BOX_PLAIN

The rich text box

RICH_TEXT_BOX_WITH_PLACEHOLDER_TEXT

The rich text box shows place holder text as long as the field it is bound to contains no data. (Important: Place holder text is not supported on the form server).

RICH_TEXT_BOX_PLAIN:

 <span class="xdRichTextBox(RTL)?" hideFocus="1" title="ANY_STRING" xd:binding="LEAF_XPATH" (tabIndex="TAB_INDEX")? xd:xctname="RichText" xd:CtrlId="CONTROL_ID" (style="RICH_TEXT_BOX_STYLE")? (accessKey="SINGLE_CHARACTER")? (xd:postbackModel="POSTBACKMODEL")? (INPUT_SCOPE)? (contentEditable="true" | xd:disableEditing="yes")>
     CHECK_FOR_GETDOM_BEGIN1
     RICH_TEXT_BOX_CONDITIONAL_FORMATTING?
     <xsl:copy-of select="LEAF_XPATH/node()"/>
     CHECK_FOR_GETDOM_END1
 </span>
  
 RICH_TEXT_BOX_WITH_PLACEHOLDER_TEXT ::=
 <span class="xdRichTextBox(RTL)? xdBehavior_GhostedText" hideFocus="1" title="ANY_STRING" xd:binding="LEAF_XPATH" (tabIndex="TAB_INDEX")? xd:xctname="RichText" xd:CtrlId="CONTROL_ID" (style="RICH_TEXT_BOX_STYLE")? (accessKey="SINGLE_CHARACTER")? (xd:postbackModel="POSTBACKMODEL")? (INPUT_SCOPE)? (contentEditable="true" | xd:disableEditing="yes")>
     CHECK_FOR_GETDOM_BEGIN1
     RICH_TEXT_BOX_CONDITIONAL_FORMATTING?
     (<xsl:choose>
         <xsl:when test="not(string(LEAF_XPATH) or LEAF_XPATH/node())">
             <xsl:attribute name="xd:ghosted">true</xsl:attribute>ANY_STRING</xsl:when>
         <xsl:otherwise>
             <xsl:copy-of select="LEAF_XPATH/node()"/>
         </xsl:otherwise>
     </xsl:choose>) | (<xsl:copy-of select="LEAF_XPATH/node()"/>)
     CHECK_FOR_GETDOM_END1
 </span>

RICH_TEXT_BOX_SCROLLING_STYLE: OVERFLOW-X: visible | OVERFLOW-Y: scroll; OVERFLOW-X: scroll | OVERFLOW-Y: auto; OVERFLOW-X: auto | OVERFLOW-Y: auto | OVERFLOW-Y: hidden.

RICH_TEXT_BOX_STYLE: Semicolon-delimited list of (RICH_TEXT_BOX_SCROLLING_STYLE?, STYLE_WRAP?, STYLE_SIZE?, STYLE_MARGIN?, STYLE_PADDING?, STYLE_TEXT_DECORATION?, STYLE_BACKGROUND_COLOR?, STYLE_BORDER?, STYLE_FONT?, STYLE_COLOR?, STYLE_TEXT_ALIGN?, STYLE_DIRECTION?)

RICH_TEXT_BOX_CONDITIONAL_FORMATTING_STYLE: Semicolon-delimited list of (STYLE_BACKGROUND_COLOR?, STYLE_COLOR?)

RICH_TEXT_BOX_CONDITIONAL_FORMATTING:

 (<xsl:attribute name="style">RICH_TEXT_BOX_STYLE<xsl:choose>
         (<xsl:when test="BOOLEAN_XPATH_EXPRESSION">STYLE_DISPLAY_NONE</xsl:when>|
         <xsl:when test="BOOLEAN_XPATH_EXPRESSION"/>|
         <xsl:when test="BOOLEAN_XPATH_EXPRESSION">RICH_TEXT_BOX_CONDITIONAL_FORMATTING_STYLE
         </xsl:when>)+
     </xsl:choose>
 </xsl:attribute>)?
 (<xsl:choose>
     (<xsl:when test="BOOLEAN_XPATH_EXPRESSION"/>|
     <xsl:when test="BOOLEAN_XPATH_EXPRESSION">
         <xsl:attribute name="contentEditable">false</xsl:attribute>
     </xsl:when>)+
 </xsl:choose>)?

Control-specific attributes used by the rich text box control are as follows: