Hi Bobby: Thanks a ton for the line FCKeditorAPI.__Instances['instanceNameHere'].GetHTML();
It worked for my purpose. I was trying to get the content of the editor in my javascript. Zoher [EMAIL PROTECTED] >Hi Gareth. The problem is actually triggering a function when the content of >the editor changes not actually reading the content. As for just reading the >content, I figured that would be stored in the hidden text field that FCK >creates. If I'm wrong about that, then I'm pretty sure this will get the >content at anytime: > >FCKeditorAPI.__Instances['instanceNameHere'].GetHTML(); > >.:.:.:.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com > > > > > > >-----Original Message----- >From: Gareth Hughes [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 05, 2006 11:18 AM >To: CF-Talk >Subject: Re: FckEditor / JS > >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:256118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4