Enable RTE Using Regular Attribute Expressions
The custom JSP must include the calls and processing described in these steps.
Include the RTE file using this syntax:
<%@include file = "../common/emxRTE.inc" %>
Fetch the value for the textarea: UIRTEUtil.getAttributeData (context, ObjectId, attributeName); This call returns a map that contains attributeValue and a boolean isRTEEnabled.
If the Boolean returned is true, change or add the class attribute for the textarea:
<textarea class="rte"> Use the value from the map in the textarea.
To set text area attributes, use: UIRTEUtil.setAttribute(context, objectId, attrbuteName, attributeValue)

Enable RTE Using an _RTE Attribute
Include the RTE file using this syntax:
<%@include file = "../common/emxRTE.inc" %>
Fetch the value for the textarea from the _RTE attribute.
Change or add the class attribute for the textarea:
<textarea class="rte">
Set the value of the _RTE attribute from the textarea.
|