harmony 鸿蒙RichEditor (System API)

  • 2025-06-12
  • 浏览 (2)

RichEditor (System API)

RichEditor is a component that supports interactive text editing and mixture of text and imagery.

NOTE

This component is supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version.

This topic describes only system APIs provided by the module. For details about its public APIs, see RichEditor.

RichEditorBuilderSpanOptions11+

Defines the options for adding a builder span.

Atomic service API: This API can be used in atomic services since API version 12.

System API: This is a system API.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Mandatory Description
dragBackgroundColor18+ ColorMetrics No Background color of the builder when it is dragged independently. If no valid value is specified, the default color is used.
isDragShadowNeeded18+ boolean No Whether to apply a shadow when the builder is dragged independently. If no valid value is specified, a shadow is applied.

RichEditorGesture11+

Defines the callback for user interactions.

System API: This is a system API.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Mandatory Description
onDoubleClick14+ Callback<GestureEvent> No Callback for double-click events.
Atomic service API: This API can be used in atomic services since API version 14.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArcButton

harmony 鸿蒙ArcSlider

harmony 鸿蒙Chip

harmony 鸿蒙ChipGroup

harmony 鸿蒙ComposeListItem

harmony 鸿蒙ComposeTitleBar

harmony 鸿蒙advanced.Counter

harmony 鸿蒙Dialog Box (Dialog)

harmony 鸿蒙DialogV2

harmony 鸿蒙DownloadFileButton

0  赞