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.
-
Open the Run MQL window:
-
From the compass, select Collaboration and
Approvals.
-
In the navigation pane, click .
To run an MQL command, enter the command in the
MQL Command box and click Run
or press Enter.
- To set the context for the MQL session, run this command:
set context user creator;
-
To use a file with the type/attributes;
- 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.
- 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.
-
To specify the types/attributes on the MQL command line, run this command:
exec program emxRTEUtil -method enableRTE '<typeName1>|<attributeName1>, <attributeName2>' '<typeName2>|<attributeName3>, <attributeName4>'