Thanks Mike,
I seemed to make some progress setting the basepath to /fckeditor/ and
manually setting the fckeditor ro fckeditor = createObject("component",
"fckeditor.fckeditor");
But now, I get a page cannot be displayed error in the section the editor
should load into. I'm not sure what I could be doing wrong, the
documentation sure makes the process seem simple enough. Any other thoughts?
Thanks again.
-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 3:20 AM
To: CF-Talk
Subject: Re: Error setting up FCKEditor
Your problem is as the error message says - its in line 71 where the
FCKEditor component is being instantiated.
I suspect it's to do with the path or a mapping. Try changing your
current #basePath#fckeditor to explicitly list it out and see if the
error is with #basePath#. For example change that line to the
following and see if the problem goes away ...
fckEditor = createObject("component", "fckeditor.fckeditor");
That's for if you have installed FCKEditor directly under your web root.
Quite possibly you are going to have to change your original line to
fckEditor = createObject("component", "#basepath#.fckeditor.fckeditor");
Note that the CreateObject function is looking for a file called
fckeditor.cfc so therefore the last fckeditor in the createobject is
the name of the component. The previous 'fckeditor' is the name of
the folder it sits in.
If, like me, you have your fckeditor installed inside a folder called
cfforms, then the instantiation line will read as follows:
fckEditor = createObject("component", "cfforms.fckeditor.fckeditor");
Hth.
Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
On 5/17/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> As simple as the initial setup appears to be I can't seem to get passed
this
> error:
>
>
>
> Could not find the ColdFusion Component /raindance/fckeditor/fckeditor.
>
> Please check that the given name is correct and that the component exists.
>
>
>
> "The error occurred in
>
> C:\**rootpath**\raindance\fckeditor\_samples\cfm\sample02_mx.cfm:
>
> line 71
>
>
>
> 69 : basePath = Left(cgi.script_name, FindNoCase('_samples',
>
> cgi.script_name)-1);
>
> 70 :
>
> 71 : fckEditor = createObject("component", "#basePath#fckeditor");
>
> 72 : fckEditor.instanceName = "myEditor";
>
> 73 : fckEditor.value = 'This is some
sample
> text. You are using <a
>
> href="http://fckeditor.net/" target="_blank">FCKeditor</a>.'
>
>
>
> If I go ahead and try to rename the sample file and put it in the
> application root I get this error:
>
>
>
> Error Occurred While Processing Request
>
> Could not find the ColdFusion Component /raindance/FCKeditorfckeditor.
>
> Please check that the given name is correct and that the component exists.
>
>
>
> The error occurred in C:\**rootpath**\raindance\myeditor.cfm: line 71
>
>
>
> 69 : basePath = "/raindance/FCKeditor";
>
> 70 :
>
> 71 : fckEditor = createObject("component", "#basePath#fckeditor");
>
> 72 : fckEditor.instanceName = "myEditor";
>
> 73 : fckEditor.value = 'This is some
sample
> text. You are using <a
>
> href="http://fckeditor.net/" target="_blank">FCKeditor</a>.';
>
>
>
> Any ideas?
>
> Thanks,
>
> -Paul
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278507
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4