TextEdit style attributes

Textedit presentation style attributes apply to the TEXTEDIT element.

Note: This topic lists presentation style attributes for a specific class of form element, common presentation style attributes can also be used for this type of element.

sanitize

By default, to avoid "Stored XSS" attacks, the front-end cleans the HTML sent to form elements to ensure no malicious script can be executed. This security control prevents for example to use HTML content such as "<a href='mailto: …".

The default for the sanitize attribute is "yes".

To disable the checking of HTML content send to form elements, set the sanitize style attribute to "no".

The sanitize style attribute makes only sense for TextEdit form items, when used with the textFormat style attribute set to "html":

<Style name="TextEdit.relax">
     <StyleAttribute name="textFormat" value="html"/>
     <StyleAttribute name="sanitize" value="no"/>
</Style>

showVirtualKeyboard

Defines how the virtual keyboard must appear on mobile devices.
Note: Only supported on Androidâ„¢ devices.

Values can be:

  • "onTap" (default): Virtual keyboard shows up when user taps in the field.
  • "onFocus": Virtual keyboard shows up when the focus goes to the field.

wrapPolicy

Defines where the text can be wrapped in word wrap mode.

Values can be:
  • "atWordBoundary" (default): the text will wrap at word boundaries.
  • "anywhere": the text breaks anywhere, splitting words if needed.