Hello:
I am having difficulty getting the PHP version of the editor to work. When I create an instance of the editor using the following code:
include("/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = 'Enter Copy';
$oFCKeditor->Create();
I receive the following error in the browser (Firefox Mac):
The requested URL /FCKeditor/editor/fckeditor.html was not found on this server.
Here is what I have tried so far:
1. Tried setting the base path using both relative paths and paths from the site route, both result in the same error.
2. Tried installing the FCK folder in various different location on the server, including in the site root and inside subdirectories.
3. The fckeditor.html file is definately on the server. I can type the direct path in the browser address bar and see the editor.
Any ideas on how to correct this would be greatly appreciated. I have used FCKeditor several times as part of asp.net projects but this is the first time I have tried to run in with PhP.
I am having difficulty getting the PHP version of the editor to work. When I create an instance of the editor using the following code:
include("/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = 'Enter Copy';
$oFCKeditor->Create();
I receive the following error in the browser (Firefox Mac):
The requested URL /FCKeditor/editor/fckeditor.html was not found on this server.
Here is what I have tried so far:
1. Tried setting the base path using both relative paths and paths from the site route, both result in the same error.
2. Tried installing the FCK folder in various different location on the server, including in the site root and inside subdirectories.
3. The fckeditor.html file is definately on the server. I can type the direct path in the browser address bar and see the editor.
Any ideas on how to correct this would be greatly appreciated. I have used FCKeditor several times as part of asp.net projects but this is the first time I have tried to run in with PhP.
RE: PHP - fckeditor.html not found
/FCKeditor/editor/fckeditor.php
NOT
/FCKeditor/editor/fckeditor.html
BasePath definitely is a relative URL, not a server address.
You might have to go into FCKeditor.php and set this manually:
$this->BasePath = '/FCKeditor/' ;
and in FCKeditor.js
this.BasePath = '/FCKeditor/' ;
For some reason, the most recent download specified:
$this->BasePath = '/fckeditor/' ;
in small letters. This might be a bug we'll have to ask FCK to fix.