Creating a Rich Text Editor

Using the Rich Text Editor, users can create and edit rich text documents. This topic includes steps to create a Rich Text Editor on a JSP page.

  1. To create a Open the Faces Components drawer in the palette.

  2. Select

    Input - Rich Text Area, and drag it to the JSP page to create the Rich Text Editor.

  3. In the

    Bind To attribute field, point to the root of the data object that is used as the contents for the Rich Text Editor. You can click the Browse button to select a data object from the list. This field can be automatically populated.

  4. In the Attribute view, you can set the width and height of the Rich Text Editor using pixels or a percentage.

  5. If you want to display default text in the Rich Text Editor, type the text in the

    Value attribute. This text will display when a user accesses the JSP page or when the JSP page is refreshed by the user.

  6. Select

    Read only if you want to prevent the user from editing the content in the Rich Text Editor. The user can view the initial content without modifying it.

  7. Save and run the JSP file.

  8. After placing the Rich Text Area control on a page and configuring it, you can add other controls to the JSP file.

 

Related reference

Rich Text Area