Share » Forums » Setup & design » FCK editor : 'add object' button to...

FCK editor : 'add object' button to add image in an article

FCK editor : 'add object' button to add image in an article

Thursday 11 August 2005 2:24:00 am - 3 replies

Author Message

Lydie Soler

Thursday 11 August 2005 2:56:44 am

Hem one more question...
when I try to use the FCK editor insert image button it seems that I didn"t give it the right to access to the server.

What do I have to change?
Is there a way to cutomize the folder in which the uploaded file will be added?

thanks for your help

Imppa Imppa

Thursday 11 August 2005 11:47:52 am

How did you install fckeditor to Ez Publish?

Lydie Soler

Friday 12 August 2005 1:17:24 am

Here is what I have done: (I use Ez 3.6.1)

- I have downloaded the tar.gz file Geraint gives us. THen unzipped it to the extension directory. So I have the following directories:

-extension
-fckeditor
-autoloads
-design
-FCKeditor
-settings
- Then I activated the extension by checking it in the setup/extension interface using the admin interface.
- Then I added the lines in the site.ini.append
[ExtensionSettings]
ActiveExtensions[]=fckeditor

and

[TemplateSettings]
ExtensionAutoloadPath[]=fckeditor

What may be important to say is that on Geraint's advise I changed in the fckeditor.php from

$oFCKeditor->BasePath = '/extension/fckeditor/FCKeditor/' ;

to


$oFCKeditor = new FCKeditor("fck".$id) ;
		include_once( 'lib/ezutils/classes/ezextension.php' );
		$extensionDirectory = eZExtension::baseDirectory();

		include_once( 'lib/ezutils/classes/ezsys.php');
		eZSys::init( eZINI::instance() );

		$oFCKeditor->BasePath	= eZSys::wwwDir() . "/" . $extensionDirectory . "/fckeditor/FCKeditor/" ;

I did this because I have installed my ezpublish in a subdirectroy not in the 'DocRoot'

So maybe there the same kind of problem... But I don't know where/what to change

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu