!9740 增加设置RichEditor支持开发者配置自定义文本选中颜色和手柄颜色(包含光标)的API

Merge pull request !9740 from 王关/master
This commit is contained in:
openharmony_ci 2024-03-07 07:24:58 +00:00 committed by Gitee
commit 46ec654796
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2509,6 +2509,28 @@ declare class RichEditorAttribute extends CommonMethod<RichEditorAttribute> {
* @since 12
*/
placeholder(value: ResourceStr, style?: PlaceholderStyle): RichEditorAttribute;
/**
* Set caret color of rich editor.
*
* @param { ResourceColor } value - Custom color types.
* @returns { RichEditorAttribute } The attribute of the rich editor.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
caretColor(value: ResourceColor): RichEditorAttribute;
/**
* Set background color of selected text in rich editor.
*
* @param { ResourceColor } value - Custom color types.
* @returns { RichEditorAttribute } The attribute of the rich editor.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
selectedBackgroundColor(value: ResourceColor): RichEditorAttribute;
}
/**