使用这段代码没有正确获取文档结尾位置,在段落中间就截断了是为什么?
const app = instance.Application
// 返回一个 Range 对象
const ContentRange = await app.ActiveDocument.Content
const End = await ContentRange.End
const Range = await instance.Application.ActiveDocument.Range.SetRange(End, End)
// 选区对象
await Range.PasteHtml({ HTML: html})<img src="https://solution-community.wps.cn/uploads/post/5te2wKLwkiJ.png" alt="image.png"/>