Forums / Setup & design / Some questions about FCKeditor

Some questions about FCKeditor

Author Message

Pascal France

Thursday 12 January 2006 2:13:04 pm

Hi,

First, thinks to Geraint Edwards.

I succeeded to install FCKeditor in eZ publish 3.7.2 and I issued a french doc here:

http://www.linuxorable.net/FCKeditor-l-editeur-HTML.html

but I have some questions:

- To browse the image files I have to change my .htaccess file like that:

      7 #<FilesMatch ".">
      8 #order allow,deny
      9 #deny from all
     10 #</FilesMatch>

and here I removed <i>html</i>

     31 RewriteRule !\.(gif|jpe?g|png|css|js|)|var(.+)storage.pdf(.+)\.pdf$ index.php

Is the right way to fix my problem ?

- Which file should I modify to increase the height of the FCK text area ?
- Is there a simple way to upgrade FCKeditor 2.0 to 2.2 in the Geraint Edwards's extension ?
- Is there any other editor (like xihna) that can be installed as an extension like FCKeditor ? And if yes, is there any Howto ?
- If I want to use HTML tags to write articles, should I install the <i>Embedded HTML</i> extension ? Is the only way to use:

<literal class="html">your html goes here</literal>

Regards,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Lydie Soler

Friday 13 January 2006 1:05:14 am

Hi,

I installed it month ago. If I remember well I didn't change anything in the .htaccess. I just created the right folders:
EZPUBLISH_ROOT_DIR\UserFiles
EZPUBLISH_ROOT_DIR\UserFiles\File
EZPUBLISH_ROOT_DIR\UserFiles\Flash
EZPUBLISH_ROOT_DIR\UserFiles\Image
EZPUBLISH_ROOT_DIR\UserFiles\Media

I juste use the image directory. Just now I can't remember in which file these folder name are written. but it works for me (for image I am sure as I don't use the others)

I have also been able to change the text area. If I remember well it was in the fckeditor.php:
$this->Width = '100%' ;
$this->Height = '600' ;

tell me if these works!

hope this helps!

Pascal France

Friday 13 January 2006 3:59:48 pm

Hi Lydie,

I found the trouble: my DocumentRoot is /usr/local/www/ but eZ publish is not in the root. It is in a sub-diretory. So it's why, I think, I have to change my .htaccess to access the UserFiles which is automatically created to /usr/local/www/UserFiles
But I don't know how to change .htaccess
Therefore, I will find the file to change in extension/fckeditor/ in order the UserFiles be created in the eZ sub-directory.

Just a litle question: in a post of you, I saw you had installed a dyn_menu extention. If this is again the case, could you give me a web address where to see the result ?

Last thing: "Error loading monsite/extension/fckeditor/FCKeditor/fckstyles.xml" message appears now when FCK is loaded before beeing displayed. How can I find what's wrong ? I've any error message in apache log files.

Regards,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Xavier Dutoit

Saturday 14 January 2006 12:35:16 am

Hi,

You have xmlarea that is an extension build on the top of htmlarea.

You have xeditor that is build on the top of xinha.

You can find both in the pubsvn.ez.no

X+

http://www.sydesy.com

Pascal France

Saturday 14 January 2006 4:50:00 am

Hi,

Well:

Changing <i>$this->Height = '600';</i> in fckeditor.php works fine.

About the error message <i>Error loading monsite/extension/fckeditor/FCKeditor/fckstyles.xml</i> it is due to my <i>.htaccess</i> so I removed it :-(

About <i>UserFiles</i> directories, changing in <i>editor/filemanager/browser/default/connectors/asp/<b>config.asp</b></i> line 23 as mentioned in the file,

     19 Dim ConfigUserFilesPath
     20
     21 ' Path to user files relative to the document root.
     22 ' SECURITY TIP: Uncomment the following line to set a fixed path.
     23 ' ConfigUserFilesPath = "/UserFiles/"

...to fixe the place where these directories will be created, doesn't work for me, even I do the same in <i>editor/filemanager/browser/default/connectors/php/<b>config.php</b></i>
So, the only way I found is to remove <i>.htaccess</i>

I have many trouble with my <i>.htaccess</i> and the fact I didn't install eZP in root directory.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Saturday 14 January 2006 5:30:04 am

Hi,

About <i>UserFiles</i> the answer is that we have to change both:

editor/filemanager/browser/default/connectors/php/config.php
editor/filemanager/browser/mcpuk/connectors/php/config.php

and not at all:

editor/filemanager/browser/default/connectors/asp/config.asp

Maybe we will have to manually create the <i>UserFiles</i> as mentioned by Lydie depending if Apache can write or not in the eZP root directory.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Alexandre Nion

Wednesday 18 January 2006 10:02:01 am

For those who would need an fckeditor 2.2 integration and no more dual-window system (a unique window to type in!), I posted such a port in contribs: http://ez.no/community/contribs/applications/fckeditor_integration__1

And the connector works for me too, however what I would like is to make it "ezPublish Content Browsable" ;) . I mean that I'd like to include content files, for an example images from media section, in articles. My root would then be a node and I instead of browsing files, I would browse my media content.
As FCK uses an XML description to get directory contents, I thought about generating xml files from ezcontent treenodes but my problem is that I can't access content outside of ezPublish context execution (I need to get in index.php first), which is not at all current FCK process ( since it's a self php file which is called when user clicks the button ). If someone has an idea if and how such a thing could be implemented..

Lydie Soler

Thursday 19 January 2006 8:45:09 am

Hi Alexandre,

thanks for your new contribution. I could be usefull for me. But I wanted to know if there is still a way to edit the HTML. Some of my users know HTML and find it easier to write HTML and others would prefer to have only the FCKeditor...

Thanks for your answer

Alexandre Nion

Thursday 19 January 2006 4:41:36 pm

Hi Lydie,

Indeed FCK integrates this feature, so you can still edit the html code directly by clicking the button "source" (at the top left of the default fck toolbar).
Those who prefer not to have the "source" button could use a specific fck config file but I don't think it's a real problem since it's quite discrete in the toolbar.

Lydie Soler

Tuesday 24 January 2006 7:38:19 am

Well, I have juste installed the Alexander's new FCK extension. It's so great! I worked just after the install! No weird error message!

So congratulation! My users will love it!

Lydie Soler

Wednesday 15 February 2006 8:01:39 am

Hi,

The new FCKeditor works fine except for one little thing...
it seems that event if you don't write text it adds a blank letter... therefore the isEmpty function doesn"t return true....

any idea what I would have to change?

thanks again

Stephen Martin

Wednesday 15 February 2006 9:20:58 am

I have the same issue with FCKeditor inserting content into a text area field that should be left blank. I'm looking for the solution to prevent this as well.

Pascal France

Wednesday 15 February 2006 9:51:02 am

Hi,

Maybe it due to your PHP version.
I had some troubles (not the same of your with PHP 4.2) and since I upgraded PHP (4.4.2) I have no more any problem.
Moreover, I can't reproduce your problem. If I create a folder en leave the text field blank, when I edit this folder the source code is blank.

Pascal

I run eZP 3.7.2

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Lydie Soler

Thursday 16 February 2006 2:47:03 am

well I use 3.6.1 and php 4.3.9

the problem is not that when I edit an object again blank letters have been added but that If I want to do something depending on an isempty test this function doesn"t return false but true, and indeed If I use the {$node|attribute( show, 1 )} I can see that the value contains one blank letter....
That is why I though that there might be a problem...