Primefaces p:编辑器组件删除标记<;html>&书信电报;头>;及<;车身>;论价值变化事件

Primefaces p:编辑器组件删除标记<;html>&书信电报;头>;及<;车身>;论价值变化事件,primefaces,editor,text-editor,Primefaces,Editor,Text Editor,我有密码: <p:editor id="selectedTemplateBody" value="#{tabBean.body}" height="430" widgetVar="editTemplate" onchange="saveHtml();" controls="bold italic underline font size style color highlight rule bullets numbering alignleft cen

我有密码:

<p:editor id="selectedTemplateBody" value="#{tabBean.body}" height="430"
      widgetVar="editTemplate" onchange="saveHtml();"
      controls="bold italic underline font size style color highlight rule
        bullets numbering alignleft center alignright justify undo redo source"/>
<p:remoteCommand name="saveHtml" process="@parent" update="@none"/>

tabBean.body
var包含带有html标记的文本(加载的表单DB)
,默认情况下为
。当我在编辑器的视图窗口中对值进行任何更改时,它会导致从编辑器的源窗口中删除所有标记,当然它会更改
tabBean.body


如何解决此问题?

请尝试编辑器组件的属性escape=false

这并不能回答此问题。若要评论或要求作者澄清,请在其帖子下方留下评论-您可以随时在自己的帖子上发表评论,一旦您有足够的评论,您将能够。@Uwe Keim。。。我试图提出建议,但我认为任何建议都不能删除。我相信它可以被否决。如果我错了,请纠正我。你能给出上面提到的问题的答案吗?因为它也会帮助我学习一些东西……С组件没有属性“escape”