Reply to topic
FCKeditor 404 Error Message
smnbin


Joined: 17 Jan 2008
Posts: 5
Reply with quote
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:

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?
brent


Joined: 21 Jul 2007
Posts: 5
Reply with quote
You'll basically need to have a copy of the FCKeditor folder in each web site directory. Have a look at http://www.rakshith.net/blog/?p=22 and check out the section on the Basepath attribute. This allows you to define where your FCK settings files are if they are not in the default CF location.
Ennio


Joined: 17 Nov 2006
Posts: 97
Location: Scotch Plains, NJ
Reply with quote
Why not use the FCKeditor that comes with CF8

here is a link talking about that.

http://www.rakshith.net/blog/?p=22
FCKeditor 404 Error Message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic