简体   繁体   English

如何通过xp:inputTextarea在阅读模式下显示完整内容的富文本格式?

[英]How can I display the full content rich text in read mode via xp:inputTextarea?

On an xpage I want to display the full content of a rich text field with help of the xp:inputTextarea control. 在xpage上,我想借助xp:inputTextarea控件显示富文本字段的完整内容。 How can I do this? 我怎样才能做到这一点?

The content of the rich text is nothing more than text. 富文本格式的内容仅是文本。 There is no rich text content in the fields, so no attachments or formatted (html) text. 字段中没有RTF内容,因此没有附件或带格式(html)的文本。

I have been able to bind the content of the rich text field to a String field in my java object but when I display it on my xpage via an input text area it gets formatted with so many 我已经能够将富文本字段的内容绑定到我的java对象中的String字段,但是当我通过输入文本区域将其显示在xpage上时,它会被格式化为
elements that does not represent the content of the rich text field. 不代表RTF文本字段内容的元素。

Should I apply a convertor to the input textarea control and how should this look like? 我应该将转换器应用于输入的textarea控件吗? or can I use somehow the computed text control? 还是可以使用某种方式计算的文本控件?

Did you try just changing the display type to html? 您是否尝试过仅将显示类型更改为html? That is on the first tab. 在第一个选项卡上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM