FCKeditor Assistance needed
Hi everyone,
I'm having some trouble with the FCKeditor module. I was hoping someone here could assist me.
The problem: I have installed the module, it is being read by Drupal (I have the option to activate and deactivate it under modules > settings)
When I go to add new page or edit page the editor won't show up. If I set it to pop-up there is a link for me to press, but when I do, nothing happens (it just adds a # to the end of node/add/page). I'm really at a loss here, as I don't know what else to try... I can access a sample page that I uploaded (from the samples folder, i modified a little code) and it will display the editor, it's just not doing it in drupal as expected.
Does any abody have any ideas on what I might be doing wrong (or not doing), or what else i might try?
Any help would be greatly appreciated...
Thanks,
Lil Chris

does not sound as if you
does not sound as if you installed the fckeditor library properly. It's a two part module. you need the module from drupal.org and then the actual fckeditor library found here http://www.fckeditor.net/
It is also important that the library is uploaded into the folder called fckeditor "inside of" your fckeditor module folder. so that the structure looks like modules/fckeditor/fckeditor
what errors (if any?) are you getting in your watchdog table ?
Scratching Head
Well, lets see...
I did notice that the fckeditor.module did not come with the file download, so I found something that I thought was it and it seemed to work, (it was in a posting as a text file) highlighted in yellow and green to signify chancges made from previous versions. But, dupral is reading the module (it's listed in modules).
My structure is not as you describe though, I thought I was supposed to install the FCKeditor file in the root directory... Is this not correct...? I think all my paths are correct (or I would be getting errors, right...?)
So, just to be clear... I should install the FCKeditor file into the modules directory...?
I'm getting no errors in the watchdog, which i don't understand. It seems to be reading everything ok, it's just not showing up to edit text, I can select the option to use a pop-up for the editor, when it's selected the link appears in the new page area, but when clicked does nothing... also, when I go to create a page, at the bottom of my browser it says "looking up fckeditor..." then goes to the page creation page, but doesn't show the editor...
Do i have to use code to trigger this editor somehow...? or should it show up automatically...?
I will try and load it into my modules folder, to see if that works... I really appreciate you replying so quickly, Thanks...
EDIT** I tried loading the FCKeditor folder into modules, That did not work... Still no errors though
the readme.txt provides all
the readme.txt provides all installation steps for easy setup. You can find the readme.txt in the package you download below in step #1. Please review the process.
1) this means you need the fckeditor drupal module found here http://drupal.org/project/fckeditor
2) then you need the library found http://www.fckeditor.net and upload it into the fckeditor/fckeditor folder that was uploaded when you uploaded the folder in step #1
without doing this in the proper order and using the proper folder structure the editor will not show up.
modules for drupal are always installed into the modules folder of your installation.
That's nice but...
This download did not have a readme.txt inside (or i would have read it...). It also did not have the fckeditor.module file in it. So i'm not too sure what you talking about... I've gone to the links you posted.
I've just installed the folder (FCKeditor) into modules/fckeditor/fckeditor and it does not work...
When i go to create content > new page it does say looking for fckeditor in the bottom of my browser, then goes to the new page creation, but does not show the editor. Still not working...
I do know that the editor is working though, when I used a sample file (in the samples file folder, with a little code modification) it came up fine, it just won't in drupal.
I will recheck the paths in my config.js file... Is there any place else to look...?
Question
Do I have to insert any code, anywhere, to get this to work...?
It says on the installation page http://wiki.fckeditor.net/Developer%27s_Guide/Installation
(Using FCKeditor in your pages
When including FCKeditor in your pages, just be sure you are setting the editor's base path in the code (take a look in the "_samples" folder). For example:
oFCKeditor.BasePath = '/whatyouwant/FCKeditor/' ;
The BasePath is the path for the FCKeditor installation directory, starting from the root of your web site, or relative to the page (it could be "../../FCKeditor/" for example). It must include the ending slash.)
But to be honest, I don't understand this...
This is what it's putting in the new page:
var oFCKeditor_edit_body = new FCKeditor( 'edit-body' );oFCKeditor_edit_body.BasePath = '//fckeditor/';
oFCKeditor_edit_body.Config['CustomConfigurationsPath'] = '/fckeditor.config.js';
oFCKeditor_edit_body.ToolbarSet = 'DrupalFull';
oFCKeditor_edit_body.Height = '480';
oFCKeditor_edit_body.Config['LinkBrowserURL'] = '//fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=/files';
oFCKeditor_edit_body.Config['ImageBrowserURL'] = '//fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=/files';
oFCKeditor_edit_body.Config['FlashBrowserURL'] = '//fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php&ServerPath=/files';
oFCKeditor_edit_body.Config['LinkUpload'] = false;
oFCKeditor_edit_body.Config['ImageUpload'] = false;
oFCKeditor_edit_body.Config['FlashUpload'] = false;
Its putting in // (double backslashes) is this the problem...? If so how and where do i change it...?
there is no code that needs
there is no code that needs to be added or adjusted unless you want users to be able to browse for files on the server. This is also explained in the readme.txt. Your previous post explains that you seemingly cut and pasted code into a module file ? if so this was unnecessary.
there is a readme.txt file in the fckeditor module download package for 4.7. please download this package the fckeditor.module from http://drupal.org/project/fckeditor inside this module package is a readme.txt file. you must start with this package
I do not know where you got the module files you are trying to install but they look to be incorrect. please follow the instructions I've already given, which lead you to the correct modules files, AND fckeditor library.
the FCKeditor folder was not supposed to be moved into the fckeditor folder (case sensitive) you must upload the contents of FCKeditor into the second fckeditor folder which is included in http://drupal.org/project/fckeditor.
All i can tell you is that I just installed this on a fresh drupal 4.7.4 installation using the method I've already described and it worked perfectly well.
you need to download the module package that has within it the readme.txt file. Right now you seem to be working ONLY with the library installation instructions. The library instructions you posted from wiki.fckeditor.net decirbe how to embed the fckeditor into a cms. a developer has already done this and created a drupal modules called fckeditor. without this module downloaded from drupal.org fckeditor will not function as expected.
I'd highly suggest a new beginnning using the proper files as mentioned in my previous posts.
for your convienence i post here the related instructions for installation of both the fckeditor drupal module and fckeditor library files
Thank you...
You we're absolutely right... (sometimes I ride the short bus)
Thanks for your help.
if it was set correctly your
if it was set correctly your basepath would be '/modules/fckeditor/fckeditor/'
and you dont have to set it manually.
your directory structure should be like:
- drupal root
- modules
- fckeditor
- fckeditor
- editor
+ _source
+ css
....
fckeditor.module is in the first fckeditor folder. fckeditor.js is in the second fckeditor folder.
--
Geneticists from METU
Same problem
I'm having the same problem. I followed the README.txt file exactly to the "t."
Here's my dir structure:
/opt/apache/htdocs/druapl/modules/fckeditor
files in this dir include
folders in this dir include fckeditor
Dir structure for /opt/apache/htdocs/druapl/modules/fckeditor/fckeditor
[me@lib-dev fckeditor]# ls
My structure matches the one ufku describes.
I've enabled the module, gave permissions via access control, and set the fckeditor settings in drupal. When I have the box "Use FCKeditor in a popup window" checked, there's a link to the Rich Text Editor, but when I click the link I get a blank page. If the box is unchecked I see the same editor I've been using.
Using // $Id: fckeditor.module,v 1.18.2.1 2006/11/21 08:58:14 ontwerpwerk Exp $
With Drupal 4.7 and FCKeditor 2.3.2
There are NO errors in my Drupal log file.
Thoughts? Thanks.
Hello. I'm having the same
Hello. I'm having the same problem. I've followed all the instructions in the INSTALL file, all my files and folders are in the right place, yet the editor still won't show up. I've set it so that authenticated users can access the editor in the access control already. My browser gives me the following errors:
Syntax error, line 2
"FCKeditor" is undefined, line 14
"oFCKeditor_edit_body" is null or not an object, line 158
"FCKeditor" is undefined, line 182
"oFCKeditor_edit_log" is null or not an object, line 195
Any help would be most appreciated. I've had no success installing TinyMCE too...
Um... nevermind. For some
Um... nevermind. For some reason, it now works.
I won't ask questions why. ^^;
Same problem for me!
Please help us to get this helpful module finally working! Thanks :-)
FCKeditor - followed all instructions, nothing works
I am also having the same problem. I am using Drupal 5.0.
I am not getting any error messages. FCKeditor is seen by the system. But nothing works. I have tried this in MSIE 6.X and Firefox 1.5.x.
Installation
------------
1. Copy the module fckeditor folder to modules/.
Done.
2. Download FCKeditor 2.x from http://www.fckeditor.net and copy the
distribution files (the contents of the "fckeditor" directory from
the FCKeditor distribution file) to modules/fckeditor/fckeditor.
Done.
3. See 'How to enable the File Browser' for additional instructions.
For now, I just want the editor to basically work.
Configuration
-------------
1. Modify the fckeditor.config.js file to custom your needs (optional).
WTF? Specifically what I am supposed to do? Since it's optional, I'm leaving this alone.
2. Enable the module as usual from Drupal's admin pages.
Done.
3. Under settings, configure the fckeditor settings.
There is no "settings" under drupal 5.0, I went to Home » Administer » Site configuration -> FCKeditor. If I check "Use FCKeditor in a popup window" I get a link to use rich text editor, if I click that link I get a useless blank page with two buttons: OK and Cancle - nothing works. If I don't check "Use FCKeditor in a popup window" then I get nothing, just as if FCKeditor was never installed.
4. Grant permissions for use of FCKeditor in Administer > Access Control
Now it's Home » Administer » User management -> Access control. But I set all permissions anyway. It didn't do anything.
5. For the Rich Text Editing to work you also need to configure your
filters for the users that may access Rich Text Editing. Either grant
those users Full HTML access or use the following:
<a> <em> <strong> <small> <sup> <sub> <cite> <blockquote> <code><ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <img> <br> <br /> <p>
<div> <span> <b> <i>
Users that need access to tables might be better of using Full HTML
This doesn't do anything to get FCKeditor to work.
So where did I go so wrong?
Theme and FCKeditor
A reminder:
Some basics need to be available in your theme.
In case you are not you using the default theme, check:
http://drupal.org/node/158173#comment-274676
Similar issues with 5 beta 1
Started new post at:
Any luck finding a solution on this one?
Any luck finding a solution on this one?
That would be great!
regards,
Joe
Strange times with fckeditor
Rather seems there's an element of black magic at work with fckeditor!
I'm new to Drupal (with 5.1), installed fck for text - but also important for images (I'm happy to ftp them to folders, then browse).
First installed, and couldn't see anything. But was using Safari; noticed post mentioning Firefox, and fckeditor shows there (I may have overlooked, or maybe note useful in readme).
Also installed imce, checked box to work with fckeditor.
Nothing happening when clicked "Browse server" of the images editor within fck - well, maybe error message as hadn't altered config file. I made change to config, and Browse server worked; took me to imce editor, and things worked well.
But the next day, got nothing happening with Browse server.
Spent quite a time trying to change this. Edits to config file (true or false: tried both) and so on. Even installed latest development version of fckeditor module, and fckeditor 2.4. No use. Back to the files I'd used originally: main module release, and fckeditor 2.3. Again, browse server doing nothing; no obvious errors [well, something re imce/browse not found; I made a browse folder in imce module, and put another imce into this: dunno if correct to do so or not. Haven't seen error since, but "browse server" still blank].
Came across info re Image Assist, and Image; hadn't noticed these modules are necessary, but I installed them.
Now, get image assist icon below text - tho if I try it, find the image uploaded goes to a new node/page, not the place I'm editing. (Had read image assist doesn't work with fckeditor.)
But now, for whatever reason, the "browse server" button works.
But - sometimes it leads to IMCE; sometimes to fckeditor's browser.
fckeditor browser would suit me I reckon. But it is looking in "Image" for images; my folder is named "images" and I'd like to keep it like that.
Looked around to see how to edit an fckeditor file to change to "images". A 2005 thread outdated here it seems; couldn't find properties file mentioned. Instead, seen re editing in modules. Tried this - small change, from something like "$phpcodeforfile" to /files/images" and broke the site! (maybe as forgot trailing slash after images, I now wonder). Replaced the modules file, and working again.
To me, a little confusing re "default toolbar" options. Seems two defaults here: one is the default set for fckeditor; another is the default set you can choose for the site (perhaps basic set, for most users) Maybe small change to info useful here.
Anyways, a shaggy dog story, but may help some folk a little; fckeditor great when working well.
And I'd appreciate knowing how to change path from "Image" to "images". (Wonder if may be good to enable choice of paths in the module settings?)
Oh - and also tried IMCE, but not getting even a hint it's working, whether safari, firefox, or IE 5 (which maybe the latest IE on Mac).
fckeditor puzzles
Any ideas why "Browse server" might take me to fckeditor sometimes, imce at other times (maybe esp after I've tried and cancelled image assist). Possible solution?
I'd also appreciate learning how to change the directory where fckeditor browser looks (and not crash my site!)
Solution
This solution worked for me in drupal 5.1:
- go to settings > FCK editor
- go to exclusion settings
- set Minimum rows to 1 instead of 5
Good luck
-----------------------------------------------
http://www.harrewijn.com
problem with IE6
Don't forget to empty your cache if you are using IE6:
http://drupal.org/node/116225
Same problem
Hi,
I've the same issue posted here.
I tried to empy cache...nothing
I put 1 in the exclusion field nothing.
What can i do?
Thanks in advance for your precious help.
Alida
got it workin
maybe my settings will help:
[ ] popup
full toolbar
full toolbar
minimum rows: 2
[ ] start expaned
width: 100%
my guess its the popup/expanded settings error. now im getting error about some missing variable, but it works.
folder tree is the same as above
regards,
Simon
Version problem
Hi,
I tried with yoour setting but without success!
I found a little workaround: downgrade the IE version.... (from IE 7.0 to 6.0). :-(
Thanks,
Alida
maybe this help some
I don't have ssh access to the server my drupal site sits on. So I was ftp-ing the fckeditor module and editor up and was getting exactly the same problems as people listed above (ie no text area to type into - or as Lil Chris said the "editor won't show up"). I guess the ftp-ing up is a similiar situation to some of the others users above.
This is what I found
/modules/fckeditor/fckeditor/editor/js/fckeditorcode_ie.js was incorrectly uploaded. It was showing a size of about 40k while the fckeditorcode_ie.js file in the archive (the .tar) is about 132K.
There were a number of other files at also uploaded incorrectly. SO check folder by folder
Also
http://drupal.org/node/114958 say's there is a file called fckeditor.config.js in mine installation there is NOT - there IS a file called fckconfig.js (@ /modules/fckeditor/fckeditor/)
My solution
I uploaded the fckeditorcode_ie.js file seperately.
And in the file fckconfig.js file I now have a FCKConfig.ToolbarSets["Default"] AND a FCKConfig.ToolbarSets["DrupalFull"] section..without the FCKConfig.ToolbarSets["Default"] the text area would not show in firefox.
Hope this helps some people out.
rb
Try this...
I've posted this a couple other places here (cos there are about 8 thread on the topic), and so far it's worked:
Make sure
<?phpprint $closure
?>
<?phpprint $scripts
?>
Good luck!
quixote
Nothing....FCKeditor doesn't work with IE 7
Hi,
I checked file size of fckeditorcode_ie.js (129 Kb).
I checked page.tpl.php. It is ok....
I don't know why I can see correct textarea just with IE6 and Firefox but not with IE7......
I would like to use IE7 .... .-((
Thanks
Alida
fckeditor is not a big issue
fckeditor is not a big issue to install and configure.. you can find the complete way to install and configure it. http://cyberheight.blogspot.com/2008/08/using-or-setup-fckeditor-in-drup...
------------------
HotCoder
i really wish you would stop
i really wish you would stop spamming the above post on each of the fckeditor help requests.
it adds absolutely nothing to the problems listed above.