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...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 00:56:45
Script start
Timing: Jan 18 2025 00:56:45
Module start 'layout'
Timing: Jan 18 2025 00:56:45
Module start 'content'
Timing: Jan 18 2025 00:56:47
Module end 'content'
Timing: Jan 18 2025 00:56:47
Script end

Main resources:

Total runtime1.5526 sec
Peak memory usage4,096.0000 KB
Database Queries96

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9141152.6250
Module start 'layout' 0.00590.0081 740.539139.4609
Module start 'content' 0.01401.5368 780.0000776.4531
Module end 'content' 1.55080.0017 1,556.453128.1641
Script end 1.5525  1,584.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.2926160.0003
Check MTime0.00210.1322160.0001
Mysql Total
Database connection0.00080.052910.0008
Mysqli_queries1.446793.1802960.0151
Looping result0.00100.0615940.0000
Template Total1.444693.020.7223
Template load0.00320.207720.0016
Template processing1.441392.834620.7207
Template load and register function0.00070.045110.0007
states
state_id_array0.00280.177310.0028
state_identifier_array0.00180.113720.0009
Override
Cache load0.00310.20071050.0000
Sytem overhead
Fetch class attribute can translate value0.00070.043750.0001
Fetch class attribute name0.00130.0831150.0001
XML
Image XML parsing0.00100.062450.0002
class_abstraction
Instantiating content class attribute0.00010.0069150.0000
General
dbfile0.00960.6178160.0006
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
14content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
28content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 60
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs