在displayNewAppointmentForm Office.js中插入HTML

问题描述 投票:0回答:1

我一直在研究Office.js加载项,它会根据以前保存的一些设置自动生成一些文本。该文本是可编辑的。

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLmltZ3VyLmNvbS9uOVhDSm5zLnBuZyJ9” alt =“”>

我将CKEDITOR v4.14用于富文本编辑器。但是,当我单击“ Planleggmøte”(计划会议)时,文本本身将作为纯文本,HTML标记和所有内容粘贴到displayNewAppointmentForm对象中。没有转换发生。 “”

关闭对话框后,我将通过在关闭对话框之后和完成按钮单击事件之前对以下内容进行校准来创建新约会:

dialog.close();
dialog = null;
setTimeout(() => {
  Office.context.mailbox.displayNewAppointmentForm({
     location: 'https://' + settings.data.domain + '.easymeeting.net/' + settings.data.number,
     subject: 'Easymeeting videomøte',
     requiredAttendees: [],
     optionalAttendees: [],
     resources: [Office.context.mailbox.userProfile.emailAddress],
     body: settings.data.message,
  });
}, 500);
btnEvent.completed();
btnEvent = null;

[我还尝试在初始化新的约会表单后通过调用Office.context.document.setSelectedDataAsync设置主体,但似乎PC上的Outlook客户端上发生的情况很少。

是否可以在displayNewAppointmentForm正文中以HTML格式或其他格式(例如,以换行符“ \ n”)插入消息?

outlook office-js outlook-web-addins
1个回答
0
投票

您可以使用特殊字符,例如\n\t,但是今天无法使用HTML。我们在我们的user-voice page上跟踪Outlook加载项功能请求。

看来您想要的功能已被其他人请求。请升级现有请求displayNewAppointmentForm。在我们进行规划过程时,会考虑用户语音上的功能请求。

© www.soinside.com 2019 - 2024. All rights reserved.