[SalesForce] Help with Rich Text Field refresh trick

http://blogforce9.blogspot.com/2015/04/custom-rich-textarea-taking-it-further.html#comment-form

I've been looking for a solution to refreshing rich text field but haven't made much progress. This link looks promising but it's not specific enough for me to understand how it works and I haven't been able to figure it out yet.

I've gone to the github page and clicked deploy to salesforce, and included the static resource in my visualforce page, but it's not working.

Can anyone describe to me how I would use the tool mentioned in the above link, or know another way to get around rich text fields not rendering besides replacing them with non-rich text?
Thanks!

Best Answer

The link has a sample Visualforce page code

<apex:page standardStylesheets="true" docType="html-5.0" sidebar="false">
  <apex:form >
    <c:customrtf targetclass="mytextarea" toolbar="Full"/>
    <apex:inputTextarea styleClass="mytextarea" richText="false"/>
  </apex:form>
</apex:page>

You don't have to include any static resource components into your code because it's already done in the Visualforce Component named customrtf, deployed with the package. <c:customrtf targetclass="mytextarea" toolbar="Full"/> is referencing this component in the sample code. Here you can read more about Visualforce components, also known as custom components

Related Topic