Hello everybody,I m looking for a solution to work with a rich text field in an XPAGE.
Here is my problem : my customer is not satisfied with Domino / Dojo editor. We integrated tiny mce. In the form, we have a simple “Body” rich text field. tiny mce stands on a xp:inputTextarea, which is bound to the Body field.
example xpage code to reproduce our problem is hereafter.
Now, here is what we can observe :
1/text area content is well saved, but Body field is either saved as a text field, or as a list of text field
2/ if amount of content is too large for a text field, we loose everything. Body field is saved as text and contains “”. OUCH!!!
Now, i wanted a rich text field, and i had my reasons… is there a way to bind a textarea to a rich text field and to have it saved as such?
Thanks in advance.
the xpage code to reproduce the problem :
<?xml version="1.0" encoding="UTF-8"?><xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>
<xp:this.data>
<xp:dominoDocument var="document" scope="request"
formName="document">
</xp:dominoDocument>
</xp:this.data>
<xp:inputTextarea id="EditBodyField"
style="width: 645px;height:600px;" disableTheme="true"
value="#{document.Body}">
</xp:inputTextarea>
<xp:br></xp:br>
<xp:button value="Save" id="btnSave">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
<xp:actionGroup>
<xp:save name="/SaveRichText.xsp"></xp:save>
</xp:actionGroup>
</xp:this.action>
</xp:eventHandler>
</xp:button>
</xp:view>