Richtext 到 MIME...CKeditor

发布于 2025-01-03 21:59:20 字数 383 浏览 2 评论 0原文

我的后端是一个 RichText 字段(没有 STORE MIME 内容)

如果我将此字段输入到 Notes 客户端(编译 Richtext 字段)

,然后进入 Xpages UI...我可以正确看到该字段的 HTML,并且有不同的情况:

  • 如果我不修改字段并保存数据源...我的后端是 RichText 正常
  • 如果我进入 Ckeditor 并插入一个新单词...并保存数据源...我的后端是 RichText MIME
  • 如果我设置后端 RichText 字段与存储 MIME 内容....当我保存新文档时,Xpages 运行时出现错误

有人知道始终使用 MIME 或 RICHTEXT 存储我的后端吗?

总氮

I have my backend that is a RichText field (without STORE MIME CONTENT)

If I input this field into Notes Client (compiling richtext field)

and after go in Xpages UI...I see HTML of the field correctly and I different scenario:

  • If I do not modify the field and Save the datasource...my backend is RichText normal
  • If I go into Ckeditor and insert a new word...and Save the datasource...my backend is RichText MIME
  • If I set my backend RichText field with the STORE MIME CONTENT....when I save new document the Xpages runtime go in a error

Have someone any idea to store my backend always with MIME or RICHTEXT?

Tnx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橪书 2025-01-10 21:59:20

Daniel,

  • 如果您不修改 XPage 中的字段,它就不会发送回服务器并且在文档上保持不变。因此,如果您的原始字段包含富文本,它仍然是富文本。
  • 如果您使用 CKEditor 编辑 XPage 中的字段,内容将始终转换为 MIME(保存时您会收到警告,表明会发生这种情况)。

“将内容存储为 MIME”设置将使客户端中创建的文档内容始终存储为 MIME。这就是你想要的吗?

标记

Daniel,

  • If you don't modify the field in the XPage, it isn't send back to the server and remains untouched on the document. So if your original field contained richtext, it remains rich text.
  • If you edit the field in an XPage using CKEditor the contents will always be transformed to MIME (you get a warning upon saving that this will happen).

The "Store contents as MIME" setting will have the effect that the contents of documents created in the client will always be stored as MIME. Is that what you want?

Mark

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文