Skip to main content
Hi,

I need to bind rich text area to visualforce. I can use outputfield for it but my problem is I am not binding a standard object to VF page. Can anyone suggest me some ideas?
2 件の回答
  1. 2015年6月4日 15:24
    Hi ,

    You can use below code. With below field you bind String values also

     

    <apex:inputTextarea rows="5" id="comment" value="{!CaseComment}" styleClass="form-control"/>

    you can also use below HTML tag

    <textarea> element can only hold plain text, not other nodes. If you just want to copy the plain text you can do as such:

    <textarea><apex:outputtext value="{!objName.richTextAreaFieldName}" escape = "false"/></textarea>

    Please let me know if this will help you.

    Thanks

    Amit Chaudhary