Jake, Can you post the html that is in your form.hometext variable? My guess is that you have a double quote in there somewhere that is ending your string, and hence, the JS thinks that is the end of that variable, so then it's looking for a closing parenthesis and isn't finding it immediately, and therefore reporting an error.
Check your HTML code and if you have any double quotes in it, make sure that you use the " entity reference value instead of the actual " and that might fix it. Other than that, not sure what it might be. Let us know how it turns out. And hey, tell Mark Kruger that Dave Phillips said hello from Texas. :) Dave -----Original Message----- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 12:46 PM To: CF-Talk Subject: FCKEditor woes I am replacing soEditor with FCKEditor on a site and ran into an issue that I'm hoping someone out there can help with. In the soEditor was this line: html="#form.homeText#" which passed a bunch of HTML to the editor as it's default value. I'm having trouble doing the same with the FCKEditor because it's javascript-based. I create the editor object like this: var oFCKeditor = new FCKeditor('editHome', 550, 600, 'CompleteMusic', 'test' ) ; which works fine with 'test' but when I try to pass form.homeText, it throws errors about missing an ending ) and unterminated string literal. I get the ) error when I use this call: var oFCKeditor = new FCKeditor('editHome', 550, 600, 'CompleteMusic', "<cfoutput>#form.homeText#</cfoutput>") ; and I get the unterminated string literal error when I do this: var oFCKeditor = new FCKeditor('editHome', 550, 600, 'CompleteMusic', '<cfoutput>#form.homeText#</cfoutput>' ) ; Is there a way around this? The only other thing I can think to do is re-write part of fckeditor.js to NOT write the output and then split up the output to write it manually in my .cfm file. I really don't want to do that. Any ideas? Thanks in advance. -- Jake Churchill CF Webtools 11204 Davenport, Ste. 200b Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http: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:267523 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

