Volunteers-for-Salesforce
Volunteers-for-Salesforce copied to clipboard
VolunteersJobListingFS doesn't handle Rich Text fields
If you add a Rich Text field to either field set used in the VolunteersJobListingFS page, you will see two of the FCK editors displayed, and edits in the editor will not get saved back to the appropriate record. Turns out, these are two unique problems.
- the FCK editor is displayed twice, because their is some side affect with the jQuery code we are using to put the apex:form in a dialog, is causing the method FCKEditor.ReplaceTextArea to get called twice. If you don't put the apex:form in a jQuery dialog, you only get one FCK editor as expected. Unfortunately, you still run into problem #2.
- The VolunteersJobListingFS page is using an apex:actionFunction to allow javascript code to call the actual VolunteerShiftSignUp method on the controller that does the actual save. It seems that by going thru an apex:actionFunction, rather than action on a commandButton, the FCK editor's value is not being saved back to its underlying field.
Comment 1 by project member davidjhabib, Sep 21, 2011 I tried to solve #2, but changing the page to use a direct action on a command button did not seem to cause the text to be committed from the FCK editor into the Contact record. So it must still be some interaction with jQuery, and how this page works. (Just adding the jQuery headers to the VolunteersSignupFS page does NOT have problems).
At this point I've spent 2.5 hours trying to figure this out, but no luck so far! I'm not sure I'll be able to fix this. Delete comment Comment 2 by project member davidjhabib, Sep 21, 2011 OK, by removing rerender from the commandButton (which isn't currently supported for Rich Text fields), we can successfully save the rich text to the Contact field. So this finds a potential solution to #2. But we still have problem #1 (duplicate FCK editor's) to deal with.
**lurch: add
Tracking W-016912
Another user running into some problems using a Rich Text field on the PersonalSiteContactInfo page. Interesting that the user says the Rich Text works fine in VolunteersJobListingFS. I know that Salesforce changed how it does rich text editing several years ago. https://powerofus.force.com/0D58000003wkHdT