Tho*_*ian 1 html email richtext xpages
我需要将html添加到电子邮件中,以便使用Mark Leusink HTMLMail SSJS功能.我的html是在richtext字段中,它看起来像这样.
"Content-Type: text/html; charset="utf-8"
<p dir="ltr">
 Test1</p>
<p dir="ltr">
 Test12</p>
<p dir="ltr">
 Test3</p>
<p dir="ltr">
Test4</p>
<p dir="ltr">
  </p>"
使用xpages中的标准RT Editor填充rt字段的内容
我尝试过这些方法将rt添加到电子邮件中."mail"是html函数,"rt"是存储内容的richtextitem
mail.addHTML(rt.getFormattedText(false,0,0));
mail.addHTML(rt.getUnformattedText();
但是当我收到电子邮件时,html没有被保留,文本显示没有段落,
如何将richtext字段的内容添加到html邮件中并保留rt字段中的html
谢谢
托马斯
如果使用wrapDocument XSnippet将NotesDocument转换为NotesXspDocument,则可以在NotesXspDocument上调用.getHTML().这应该为您提供文档的HTML表示.
我用它来用现有后端文档中的内容更新CKEditor字段的内容.请参阅我的博客文章:http://per.lausten.dk/blog/2012/12/xpages-dynamically-updating-rich-text-content-in-a-ckeditor.html
| 归档时间: | 
 | 
| 查看次数: | 832 次 | 
| 最近记录: |