This was so easy. I worked on it for 3 hours this morning with no
success and this took all of 10 minutes for 2 instances. Thanks!
Russ wrote:
> Jake,
>
> Are you not using the fckeditor.cfc? Here is the syntax from it's docs that
> works well for us:
>
> * Syntax:
> *
> * <cfscript>
> * fckEditor = createObject("component",
> "fckEditorV2/fckeditor");
> * fckEditor.instanceName="myEditor";
> * fckEditor.basePath="/fckEditorV2/";
> * fckEditor.value="This is my <strong>initial</strong>
> html text.";
> * fckEditor.width="100%";
> * fckEditor.height="200";
> * // ... additional parameters ...
> * fckEditor.create(); // create instance now.
> * </cfscript>
>
>
> Russ
>
>
>> -----Original Message-----
>> From: Jake Churchill [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, January 24, 2007 1: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:267529
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4