I have done this as a workaround.
<script>
function myCustomSaveContent() {
var html = tinyMCE.getContent();
document.FormName.Name_of_TextArea.value = html;
tinyMCE.setContent(html);
return true;
}
tinyMCE.init({
mode : "textareas",
theme : "simple",
save_callback : "myCustomSaveContent"
});
</script>
-----Original Message-----
From: Jake Churchill [mailto:[EMAIL PROTECTED]
Sent: Friday, January 05, 2007 2:41 PM
To: CF-Talk
Subject: Re: TinyMCE editor problem
I'm not sure that it's resetting it so much as it is a display issue
while the JS is reading and writing everything. Mine does the same
thing.
Chad McCue wrote:
> There has to be some piece of the JS that runs the tinyMCE that resets
> the IFRAME it creates or something.
>
>
> Chad McCue
> Advanced Media Productions
> 251 West Central St. Suite 28
> Natick MA, 01760
>
> [EMAIL PROTECTED]
> p: 508.647.5151 ext 16
> f: 508.647.5150
>
> -----Original Message-----
> From: Snake [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 05, 2007 2:00 PM
> To: CF-Talk
> Subject: RE: TinyMCE editor problem
>
> I guess this is normal, cozz it happens on mine too.
>
> -----Original Message-----
> From: Chad McCue [mailto:[EMAIL PROTECTED]
> Sent: 05 January 2007 18:01
> To: CF-Talk
> Subject: TinyMCE editor problem
>
> I am using TinyMCE theme "Simple" on some of my pages, but when I
> submit the form (Using ColdFusion MX 7) the textarea the TinyMCE is
> attached to clears out.
>
> The correct information in the textbox before I click the "Submit"
> button is sent to the submit page. I can't have the textbox clear out
> because people are thinking the text they enter is being erased and
> not saved.
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265854
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4