From 51c9bca9a8f84549825aa6c9bfc40458ba902acd Mon Sep 17 00:00:00 2001 From: Claudio Boggian Date: Tue, 25 Jun 2024 15:04:16 +0200 Subject: [PATCH] Change method to insert text on mail and add break after and before link --- outllook_pal_toolsWeb/commands.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/outllook_pal_toolsWeb/commands.js b/outllook_pal_toolsWeb/commands.js index cf5738d..0d4d24d 100644 --- a/outllook_pal_toolsWeb/commands.js +++ b/outllook_pal_toolsWeb/commands.js @@ -11,8 +11,8 @@ Office.onReady((data) => { async function writeInviteIta(event) { - Office.context.mailbox.item.body.prependAsync( - "Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.

", + Office.context.mailbox.item.body.setSelectedDataAsync( + "
Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.
", { coercionType: "html", }, @@ -30,8 +30,8 @@ async function writeInviteIta(event) { } async function writeInviteEng(event) { - Office.context.mailbox.item.body.prependAsync( - "Register as a visitor to facilitate your entry into PAL s.r.l.

", + Office.context.mailbox.item.body.setSelectedDataAsync( + "
Register as a visitor to facilitate your entry into PAL s.r.l.
", { coercionType: "html", }, @@ -49,5 +49,4 @@ async function writeInviteEng(event) { } Office.actions.associate("writeInviteIta", writeInviteIta); - Office.actions.associate("writeInviteEng", writeInviteEng); \ No newline at end of file