FCKeditor Version 2.5 Beta support

realityloop - October 22, 2007 - 00:13
Project:FCKeditor - WYSIWYG HTML editor
Version:5.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am having issues integrating FCKeditor ver 2.5 Beta with the drupal FCKeditor module, there are a lot of cross browser beneficial changes in this version so would be great to get it working. http://www.fckeditor.net/whatsnew

Could someone please have a look at getting it working?

#1

mwpeters - October 30, 2007 - 00:22

What king of problems have you been seeing?

I've been using the combo together as have a couple of site contributers and we haven't noticed any problems occuring. I'd note we are using a custom configuration file for Drupal full menu to reveal a few of the newer features.

Mark

#2

mwpeters - October 30, 2007 - 00:23

What kind of problems have you been seeing?

I've been using the combo together as have a couple of site contributers and we haven't noticed any problems occuring. I'd note we are using a custom configuration file for Drupal full menu to reveal a few of the newer features.

Mark

#3

realityloop - November 1, 2007 - 04:14

Advanced File Management:
Getting XML request error: Not found (404)
when using Advanced File management after clicking Browse Server button in image dialogue

Basic File Management:
Likewise, when clicking "Send it to the Server" button on upload tab in image dialogue, files aren't getting uploaded.

Custom FCKPlugin:
Plugin not working, installed in:
/sites/all/modules/fckeditor/plugins/Acronym

Plugin files attached if you want to test it, rename to .zip instead of .gif.

AttachmentSize
Acronym.zip_.gif 4.67 KB

#4

realityloop - November 1, 2007 - 04:54

Advanced File Management-
Upgraded to fckeditor 5.x-2.x-dev and now getting different error when clicking Browse server:

Error creating folder "redirect:/index.php/" (Can't create redirect:directory)

Basic File Management-
when uploding a file using the basic file method instantly after clicking "Send it to the Server" I get alert saying the file was succesfully uploaded, but there is no file on the server.

Acronym plugin still not working

#5

wwalc - November 1, 2007 - 09:41

Hi,

I had exactly the same problem during development, "redirect:/index.php/" showed up when I had empty string in $Config['UserFilesAbsolutePath'].
Could you please try setting $Config['UserFilesAbsolutePath'] to the real absolute path?

#6

mwpeters - November 2, 2007 - 05:45

We're using IMCE for attachements and haven't experienced these problems.

I'm not really sure if its the best solution right now, but I had sed it previously and just stuck with it.
...Of course there may be other problems we haven't seen.

#7

wwalc - November 2, 2007 - 11:14

Regarding Acronym plugin - I was able to install it.

Here's how I did it:

  • unpack Acronym.zip to modules/fckedditor/plugins/Acronym
  • In fckeditor.config.js add those two lines:

    FCKConfig.PluginsPath = '../../plugins/' ;
    FCKConfig.Plugins.Add( 'Acronym' ) ;

    and add 'Acronym' button to all toolbars

  • purge browser's cache
  • if you use Filtered HTML, add <acronym>, <abbr> tags to the list of allowed tags

This worked on my computer (Win XP + IE/Firefox, Drupal 5.3 + fckeditor 5.x-2.x-dev + FCKeditor 2.5 nightly)

#8

realityloop - November 5, 2007 - 00:40

See attached image for what I am experiencing once I've added the plugin.

AttachmentSize
acronym-plugin-issue.gif 7.73 KB

#9

wwalc - November 5, 2007 - 08:08

Use Firefox with Live HTTP Headers plugin and check what URL your browser tries to reach.
Acronym plugin is distributed in "Acronym" directory (first letter uppercased) which may cause problems.

Hmm.. actually I see now that in fckplugin.js fck_Acronym.html is called, but the real file name is fck_acronym.html, so try changing it to fck_acronym.html.

Did setting $Config['UserFilesAbsolutePath'] solve the issue with file browser?

#10

realityloop - November 5, 2007 - 23:10

thanks!

Changing the link to the fck_Acronym.html file in fckplugin.js so that is was fck_acronym.html instead fixed the Acronym plugin, I didn't need to rename the Acronym directory.

I didn't know where you meant for me to do the $Config['UserFilesAbsolutePath'], at this stage I've switched to using IMCE and it's working, also with IMCE's thumbnail generation and inbuilt resizing it's probably a better option anyway.

Cheers,
Brian

#11

wwalc - November 8, 2007 - 07:35
Status:active» fixed

#12

realityloop - November 8, 2007 - 23:12

For the sake of completeness, could you let me know where the $Config['UserFilesAbsolutePath'] needed to be set, so I can test it?

Thanks.

#13

wwalc - November 8, 2007 - 23:32

You should set $Config['UserFilesAbsolutePath'] to the absolute path to the directory where you want to store files.

Config files can be found in:

/drupal5test/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
and
/drupal5test/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
(FCKeditor 2.3.x - 2.4.x)

or
/drupal5test/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
(FCKeditor 2.5+)

Please follow the comments in config.php file.

#14

Anonymous - November 22, 2007 - 23:41
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#15

amedj - June 5, 2008 - 03:09

hey i had the same problem " fckeditor "error creating folder "redirect. ... " it was because the path for $Config['UserFilesPath'] and $Config['UserFilesAbsolutePath'] in /sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/ was not properly set.
once i had the proper settng, everything worked fine

#16

wwalc - June 19, 2008 - 13:38

Solution for "Error creating folder "redirect:/index.php/" (Can't create redirect:directory)" have been added to the troubleshooting article:
http://drupal.fckeditor.net/troubleshooting#10

#17

liujiansong - June 20, 2008 - 11:31
Version:5.x-1.3-beta» 5.x-2.1

I found the [error creating folder "redirect. ... "] only going with "RewriteEngine on", if I turn off URL rewrite, file browser and upload works fine.
exclude the file uploads path from rewrite rule will resolve this problem ...

#18

wwalc - June 20, 2008 - 11:40

Interesting... do you have

require_once "../../../../../filemanager.config.php";

under

$Config['UserFilesAbsolutePath'] = '' ;

in FCKeditor configuration file?

This issue is caused by empty $Config['UserFilesAbsolutePath']. $Config['UserFilesAbsolutePath'] should be set to the right value by the included filemanager.config.php (that's why it have to be included one line below).
If $Config['UserFilesAbsolutePath'] is empty, PHP cannot find the right absolute path due to invalid $_SERVER values being set by mod_rewrite.

#19

liujiansong - June 23, 2008 - 07:43

Thanks for your reply, absolutely I have that statement in FCKeditor configuration file, exactly like the README.txt required.

If this issue is caused by the configuration problem, how to explain after I turn off Apache Rewrite, it goes working ?

PS. my test environment is Windows + Apache, do you think this will be a problem?

#20

wwalc - June 23, 2008 - 08:00

@liujiansong: is it possible that in your FCKeditor profile, in "File browser settings", "Absolute path to uploaded files" is set to an empty string?
Did you try to change it to something like "%d%b%f/" (the default value), or simply to the absolute server path without using wildcards?

#21

liujiansong - June 24, 2008 - 10:38

"Absolute path to uploaded files" has a default value, not empty,

but the problem disappeared after I have a reboot, without any further changes, strange?

Thanks for you reply. :)

 
 

Drupal is a registered trademark of Dries Buytaert.