diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richeditor.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richeditor.md index 9e9165222966c0688641c3773ddd188c3c8abeec..e9c83003299597ff3e1b4fd42b1dcbbef07049be 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richeditor.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-richeditor.md @@ -158,7 +158,7 @@ setCaretOffset(offset: number): boolean | 参数名 | 参数类型 | 必填 | 参数描述 | | ------ | -------- | ---- | -------------------------------------- | -| offset | number | 是 | 光标偏移位置。 | +| offset | number | 是 | 光标偏移位置。超出文本范围时,设置失败。 | **返回值:** @@ -265,8 +265,8 @@ deleteSpans(value?: RichEditorRange): void | 名称 | 类型 | 必填 | 描述 | | ------ | -------- | ---- | -------------------------------------- | -| start | number | 否 | 需要更新样式的文本起始位置,省略时表示从0开始。 | -| end | number | 否 | 需要更新样式的文本结束位置,省略时表示到结尾。 | +| start | number | 否 | 需要更新样式的文本起始位置,省略或者设置负值时表示从0开始。 | +| end | number | 否 | 需要更新样式的文本结束位置,省略或者超出文本范围时表示到结尾。 | | textStyle | [RichEditorTextStyle](#richeditortextstyle) | 是 | 文本样式。 | @@ -276,8 +276,8 @@ deleteSpans(value?: RichEditorRange): void | 名称 | 类型 | 必填 | 描述 | | ------ | -------- | ---- | -------------------------------------- | -| start | number | 否 | 需要更新样式的图片起始位置,省略时表示从0开始。 | -| end | number | 否 | 需要更新样式的图片结束位置,省略时表示到结尾。 | +| start | number | 否 | 需要更新样式的图片起始位置,省略或者设置负值时表示从0开始。 | +| end | number | 否 | 需要更新样式的图片结束位置,省略或者超出文本范围时表示到结尾。 | | imageStyle | [RichEditorImageSpanStyle](#richeditorimagespanstyle) | 是 | 图片样式。 | @@ -329,8 +329,8 @@ deleteSpans(value?: RichEditorRange): void | 名称 | 类型 | 必填 | 描述 | | ------ | -------- | ---- | -------------------------------------- | -| start | number | 否 | 起始位置,省略时表示从0开始。 | -| end | number | 否 | 结束位置,省略时表示到结尾。 | +| start | number | 否 | 起始位置,省略或者设置负值时表示从0开始。 | +| end | number | 否 | 结束位置,省略或者超出文本范围时表示到结尾。 | ## 示例