Managing Rich Text Editing

You can enable rich text editing for specific types and attributes, and you can disable it for specific types and attributes.

These are the only HTML tags that can be used for formatting:

  • <b>
  • <br>
  • <div>
  • <em>
  • <i>
  • <p>
  • <s>
  • <strike>
  • <strong>
  • <sub>
  • <sup>
  • <u>

This task shows you how to:

Configure Rich Text Editing

To enable rich text editing, you can either create a text file that lists the types/attributes to be enabled, or you can provide the types/attributes at the MQL command line.

The JPO method executed in this task performs these steps:

  • Defines the attribute as multiline.
  • Creates a hidden attribute with {NAME}_RTE and adds it to the type that uses the attribute.
  • Adds a trigger to the _RTE attribute to strip off tags and store in the actual attribute.
  • Adds a trigger to the actual attribute to sync with the _RTE attribute if available.

The triggers are distributed by Collaboration and Approvals.

  1. Open the Run MQL window:
    1. From the compass, select Collaboration and Approvals.
    2. In the navigation pane, click Utilities > Run MQL.
    To run an MQL command, enter the command in the MQL Command box and click Run or press Enter.
  2. To set the context for the MQL session, run this command:

    set context user creator;

  3. To use a file with the type/attributes;
    1. Create a text file named enableRTE.txt that contains the list of types and the attributes that will be enabled with RTE. The file should contain one line for each type in this format:

      type|attributeNames

      All attributes for a type should be listed on the same line.

    2. Using MQL, run this command:

      execute program emxRTEUtil -method enableRTE c:\temp\enableRTE.txt

      where enableRTE.txt is the file created in step 3a. Change the path in this command as needed.

  4. To specify the types/attributes on the MQL command line, run this command:

    exec program emxRTEUtil -method enableRTE '<typeName1>|<attributeName1>, <attributeName2>' '<typeName2>|<attributeName3>, <attributeName4>'

Disable Rich Text Editing

You can disable rich text editing for specific object types and attributes in apps. You can either create a file with the types/attributes to be disabled, or you can specify the types/attributes on the MQL command line.

  1. Open the Run MQL window:
    1. From the compass, select Collaboration and Approvals.
    2. In the navigation pane, click Utilities > Run MQL.
    To run an MQL command, enter the command in the MQL Command box and click Run or press Enter.
  2. To set the context for the MQL session, run this command:

    set context user creator;

  3. To use a file with the type/attributes:
    1. Create a text file named disableRTE.txt that contains the list of types and the attributes that will be disabled from RTE. The file should contain one line for each type in this format:

      type|attributeNames

      All attributes for a type should be listed on the same line.

    2. Using MQL, run this command:

      execute program emxRTEUtil -method disableRTE c:\temp\disableRTE.txt

      where disableRTE.txt is the file created in step 3a. Change the path in this command as needed.

  4. To specify the types/attributes on the MQL command line, run this command:

    execute program emxRTEUtil -method disableRTE '<typeName1>|<attributeName1>, <attributeName2>' '<typeName2>|<attributeName3>, <attributeName4>'