You'll need to pull this apart to get it to work for you but below is the JS I use to check an FCK instance isn't empty. So, you should be able to update your div with secondFrame.body.innerHTML.
firstFrame = document.getElementById("FCKeditor1___Frame").contentWindow.document; secondFrame = firstFrame.getElementById("eEditorArea").contentWindow.document; if ((secondFrame.body.innerHTML==null) || (secondFrame.body.innerHTML=='')) { alert("Stupid user alert"); } ----- Original Message ----- From: "Bobby Hartsfield" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Tuesday, September 05, 2006 3:48 PM Subject: OT: FckEditor / JS What I have is a textarea. As you type in the text area, a div tag is updated with the textarea's content creating a 'live preview'. I need to change that textarea to the FCKEditor but keep the live preview. The problem is that I don't have the same control over the onchcnage and onkeyup attributes of the hidden field that the FCKEditor creates as I do the normal textarea. I tried using setAttribute('onchange'), 'myfunction()') on the hidden field but no such luck. Can anyone offer any help here? ...:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 9/4/2006 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252047 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4