RE: Error setting up FCKEditor

2007-05-18 Thread Paul Henderson
Thanks for your help Mike, I got it working but obviously I have something
wrong with my path values because the only way I got it to work was to have
a FCKEditor Dir in the webroot and in the /raindance directory? Thanks
again.

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 17, 2007 4:27 PM
To: CF-Talk
Subject: Re: Error setting up FCKEditor

Yes, Paul I know exactly what is causing that error.The "page not
found' is referring to the blank page that FCKEditor puts in the
editing area.   you need to make sure the reference to that page is
correct.

On my instances of FCKEditor, that line is the following:

fckEditor.basePath  = "/cfforms/scripts/fckeditor/";

or in some of my sites, i have the following:

fckEditor.basePath  = "#application.fckeditorbasepath#";

The problem you have is similar to the previous problem - you just
need to tinker around with the values in that line to make sure it's
pointing to the folder that contains the fckeditor.cfc.  (I"m assuming
you have kept all the files in teh same folder layout as the default
installation.   I wouldnt recommend you move anything about unless yoo
konw what all those files do and where the path references to them
are).

Here's a complete FCKEditor instance from one of my sites, that you can
follow:


fckeditor = createObject("component",
"cfforms.scripts.fckeditor.fckeditor");
fckEditor.instanceName  = "story";  //the field name in the
form scope
fckEditor.value = '#Content.getStory()#';
//the default value in
the editing window
fckEditor.basePath  =
"/cfforms/scripts/fckeditor/";
//fckEditor.toolbarset  = "default";
fckEditor.width = "80%";
fckEditor.height= 400;
fckEditor.create(); // create the editor.


Hope this gets you going - if not, feel free to ask more questions.

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/18/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> 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.
>
>
>



~|
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:278623
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error setting up FCKEditor

2007-05-17 Thread Mike Kear
Yes, Paul I know exactly what is causing that error.The "page not
found' is referring to the blank page that FCKEditor puts in the
editing area.   you need to make sure the reference to that page is
correct.

On my instances of FCKEditor, that line is the following:

fckEditor.basePath  = "/cfforms/scripts/fckeditor/";

or in some of my sites, i have the following:

fckEditor.basePath  = "#application.fckeditorbasepath#";

The problem you have is similar to the previous problem - you just
need to tinker around with the values in that line to make sure it's
pointing to the folder that contains the fckeditor.cfc.  (I"m assuming
you have kept all the files in teh same folder layout as the default
installation.   I wouldnt recommend you move anything about unless yoo
konw what all those files do and where the path references to them
are).

Here's a complete FCKEditor instance from one of my sites, that you can follow:


fckeditor = createObject("component", 
"cfforms.scripts.fckeditor.fckeditor");
fckEditor.instanceName  = "story";  //the field name in the 
form scope
fckEditor.value = '#Content.getStory()#';  
//the default value in
the editing window
fckEditor.basePath  = "/cfforms/scripts/fckeditor/";
//fckEditor.toolbarset  = "default";
fckEditor.width = "80%";
fckEditor.height= 400;
fckEditor.create(); // create the editor.


Hope this gets you going - if not, feel free to ask more questions.

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/18/07, Paul Henderson <[EMAIL PROTECTED]> wrote:
> 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.
>
>
>

~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278515
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Error setting up FCKEditor

2007-05-17 Thread Paul Henderson
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 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.'
>
>
>
> 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 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.';
>
>
>
> 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


Re: Error setting up FCKEditor

2007-05-17 Thread Mike Kear
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 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.'
>
>
>
> 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 
> href="http://fckeditor.net/"; target="_blank">FCKeditor.';
>
>
>
> Any ideas?
>
> Thanks,
>
> -Paul
>

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278410
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4