diff --git a/api/arkui/component/richEditor.static.d.ets b/api/arkui/component/richEditor.static.d.ets index d425043dc14738d736442ef6d429d2d369f29f1d..b5df4f83e510afc1231d7ab02dea80071a8ea770 100644 --- a/api/arkui/component/richEditor.static.d.ets +++ b/api/arkui/component/richEditor.static.d.ets @@ -136,6 +136,30 @@ export declare enum RichEditorResponseType { */ DEFAULT = 3 } +/** + * Defines undo style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare enum UndoStyle { + /** + * Undo without style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + CLEAR_STYLE = 0, + + /** + * Undo keep style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + KEEP_STYLE = 1, +} /** * Defines the span position. * @@ -2071,7 +2095,7 @@ export declare interface RichEditorAttribute extends CommonMethod { /** * Define the max length content of the richEditor. * - * @param { Optional } maxLength - The maximun length content of the richEditor. + * @param { number | undefined } maxLength - The maximun length content of the richEditor. * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -2080,7 +2104,7 @@ export declare interface RichEditorAttribute extends CommonMethod { /** * Define max lines of the richEditor. * - * @param { Optional } maxLines - The maximun Lines of the richEditor. + * @param { number | undefined } maxLines - The maximun Lines of the richEditor. * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -2089,7 +2113,7 @@ export declare interface RichEditorAttribute extends CommonMethod { /** * Set the keyboard appearance. * - * @param { Optional } appearance - Default value is KeyboardAppearance.NONE_IMMERSIVE + * @param { KeyboardAppearance | undefined } appearance - Default value is KeyboardAppearance.NONE_IMMERSIVE * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -2098,7 +2122,7 @@ export declare interface RichEditorAttribute extends CommonMethod { /** * Set whether stop backPressed callback event or not. * - * @param { Optional } isStopped - Default value is true, set false to trigger the latest callback event. + * @param { boolean | undefined } isStopped - Default value is true, set false to trigger the latest callback event. * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -2114,6 +2138,26 @@ export declare interface RichEditorAttribute extends CommonMethod { */ default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enable - The default value is false, indicates the flag whether to enable + * automatic spacing. + * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoSpacing(enable: boolean | undefined): this; + /** + * Set undo style. + * + * @param { UndoStyle | undefined } style - Default value is UndoStyle.CLEAR_STYLE. + * automatic spacing. + * @returns { RichEditorAttribute } returns the instance of the RichEditorAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default undoStyle(style: UndoStyle | undefined): this; } /** * the callback of cut event.