【发布时间】:2016-02-06 00:57:24
【问题描述】:
在 Word 2016 的 office API 中,我使用 contentControl 的 insertHtml 函数插入 html 格式的文本。文本作为块元素插入,并在末尾添加了额外的行。 Word 2013 API 中的类似功能,带有 coercionType“html”的 setDataAsync 工作正常并插入了一个内联元素。有没有办法指定我需要一个内联元素。
当我尝试插入(text <i>inserted</i> with <b>insertHtml</b>) 时,基本上我需要的是:
这是现有文本(文本 inserted 与 insertHtml)后跟 更多文字
我得到的是:
这是现有的文本
(文本插入与insertHtml)
后面是更多的文字
谢谢。
【问题讨论】:
标签: ms-office office-js word-addins