>After entering in content in the "body" and the editor chooses
>"complete" from the dropdown, all changes are lost. The
>changes only update if the user clicks on a different plp form
>button (ie. back, next, or save).
I think I just fixed this issue.
You need to make changes to a few files.
1. At around line 35 of the body PLP step file (ie.
Farcry_core/packages/types/_dmhtml/plpEdit/body.cfm) there is a switch
statement. Add a case for HTMLArea so that it look likes this:
<!--- work out if onClick event needed for specified rich text editor
--->
<cfswitch expression="#application.config.general.richTextEditor#">
<cfcase value="soEditorPro">
<cfset onClickEvent = "soEditorbody.updateFormField();">
</cfcase>
<cfcase value="soEditor">
<cfset onClickEvent = "soEditorbody.updateFormField();">
</cfcase>
<cfcase value="textArea">
<cfset onClickEvent = "">
</cfcase>
<cfcase value="HTMLArea">
<cfset onClickEvent =
"updateHTMLAreaTextarea(this.form);">
</cfcase>
<cfdefaultcase>
<cfset onClickEvent = "">
</cfdefaultcase>
</cfswitch>
Note: You will need to make this change for any PLP step in any type
that uses HTMLArea.
2. In the farcry_core/tags/farcy/richTextEditor file add the following
javascript function to the same javascript block as the insertHTML
function. (The javascript block should start somewhere near line 296.)
function updateHTMLAreaTextarea(f)
{
f.#attributes.textareaname#.value =
richEditor#uniqueID#.getHTML();
}
This should fix the issue. Jeff, let me know if this fixes it for you.
Geoff, I will create patches for all of these changes and submit them to
the issue tracker sometime next week.
Best,
--Nathan
---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/