【发布时间】:2014-04-08 11:02:21
【问题描述】:
我有代码:
<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 标记 <html>,<head> and <body> 的文本(从 DB 加载)。当我在编辑器的 VIEW-window 中对值进行任何更改时,它会导致从编辑器的 SOURCE-window 中删除所有标签,并且它当然会更改 tabBean.body。
我该如何解决这个问题?
【问题讨论】:
标签: primefaces editor text-editor