# richtext The **** component displays rich text information. >![](../../public_sys-resources/icon-note.gif) **NOTE:** >- This component is supported since API version 6. >- The rich text content must be written in the content area. ## Required Permissions None ## Attribute Only the **id**, **style**, and **class** attributes in [Universal Attributes](js-components-common-attributes.md) are supported. ## Style Only the **display** and** visibility** styles in [Universal Styles](js-components-common-styles.md) are supported. ## Event In addition to the events in [Universal Events](js-components-common-events.md), the following events are supported.

Name

Parameter

Description

start

-

Triggered when the loading starts.

complete

-

Triggered when the loading is complete.

>![](../../public_sys-resources/icon-note.gif) **NOTE:** >- The **focus**, **blur**, and **key** events are not supported. >- Accessibility events are not supported. >- When a page containing **** is returned, the page's transition effect does not apply to the area where the rich text is displayed. >- Make sure the rich text does not go beyond the height of the screen. Otherwise, the excess content will not be displayed. ## Method Not supported ## Example Code ```
{{content}}
``` ``` // xxx.js export default { data: { content: `

h1

Text test (H1 test)

h2

Text test (H2 test)

`, }, onLoadStart() { console.error("start load rich text:" + JSON.stringify()) }, onLoadEnd() { console.error("end load rich text:" + JSON.stringify()) } } ```