Hello,
I have been experimenting with FCKeditor in Coldfusion 8. I have amended the fckcongif.js file to create a custom toolbar and it is working perfectly. However, I have more than one website on my server and I want to be able to link a different stylesheet for each website to each website's FCKeditor.
I know that the first step is to create a custom configuration file within each website root directory and include some code on the page where the FCKeditor is located to link to the custom configuration file. I have created a page to test this, but I get an error.
Here is my code:
Here is the error:
404 /fckeditor/editor/fckeditor.html
My test and custom configuration files are both located in the following directory.
C:\ColdFusion8\wwwroot\Websites\@Lab
Please could someone let me know what I am doing wrong?
I have been experimenting with FCKeditor in Coldfusion 8. I have amended the fckcongif.js file to create a custom toolbar and it is working perfectly. However, I have more than one website on my server and I want to be able to link a different stylesheet for each website to each website's FCKeditor.
I know that the first step is to create a custom configuration file within each website root directory and include some code on the page where the FCKeditor is located to link to the custom configuration file. I have created a page to test this, but I get an error.
Here is my code:
<html>
<head>
<script type="text/javascript">
var oFCKeditor=new FCKeditor("MyToolbar");
oFCKeditor.Config["CustomConfigurationsPath"]="myConfig.js" ;
oFCKeditor.Create();
</script>
</head>
<body>
<cfform action="##" method="post">
<cftextarea richtext="true" name="MyToolbar" toolbar="MyToolbar" />
</cfform>
</body>
</html> Here is the error:
404 /fckeditor/editor/fckeditor.html
My test and custom configuration files are both located in the following directory.
C:\ColdFusion8\wwwroot\Websites\@Lab
Please could someone let me know what I am doing wrong?

Re: Custom Configuration File 404 Error Message
I was wondering if anyone can provide any assistance on this one?
Re: Custom Configuration File 404 Error Message
Also, your custom configuration file path should start with a slash:
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: Custom Configuration File 404 Error Message
Thank you for your help.
I have amended my code as follows:
<html> <head> <script type="text/javascript"> var oFCKeditor=new FCKeditor("MyToolbar"); oFCKeditor.BasePath="C:/ColdFusion8/wwwroot/Websites/@Labs/Lab1/fckeditor/"; oFCKeditor.Config["CustomConfigurationsPath"]="/myConfig.js" ; oFCKeditor.Create(); </script> </head> <body> <cfform action="##" method="post"> <cftextarea richtext="true" name="MyToolbar" toolbar="MyToolbar" /> </cfform> </body> </html>However, Firefox is displaying the following message when I attempt to load the text editor.
"ALERT: Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program."
Do you know how I can get rid of this message?
Also, how do I link to a CSS file?
Re: Custom Configuration File 404 Error Message