By eatanicecream on
I can't get IMCE to work with FCKeditor. I have enabled the module and set the appropriate permissions, but I am unable to upload images. My understanding is that IMCE should replace the image function of FCKeditor, but it doesn't happen. I still get the FCKeditor functionality which doesn't allow me to upload anything.
Anyone have any suggestions?
Comments
To get FCKEditor upload to
To get FCKEditor upload to work, you need to edit a few files:
There are three ways of uploading files: By using the built-in file browser, by using a module like IMCE or using the core upload module.
How to enable the file browser
------------------------------
The editor gives the end user the flexibility to create a custom file browser that can be integrated on it.
The included file browser allows users to view the content of a specific directory on
the server and add new content to that directory (create folders and upload files).
1. To enable file browsing you need to edit the connector configuration file in your fckeditor module directory, the file should be in:
/drupal5b/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php
(FCKeditor 2.5+)
or
/drupal5b/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php/config.php
and
/drupal5b/modules/fckeditor/fckeditor/editor/filemanager/upload/php/config.php
(FCKeditor 2.3.x - 2.4.x)
In this file(s) you will need to enable the file browser by adding one line that includes file with the special authentication function for Drupal (filemanager.config.php). Add this code:
require_once "../../../../../filemanager.config.php";
(FCKeditor 2.5+)
or
require_once "D:\\xampp\\htdocs\\drupal5b\\modules\\fckeditor\\filemanager.config.php"
(FCKeditor 2.3.x - 2.4.x)
straight below this line:
$Config['UserFilesAbsolutePath'] = '' ;
The config.php file also holds some other important settings, please take a look at it and adjust it to your needs (optional).
2. As of Drupal 5.2, additional step is required: locate file named settings.php inside
your drupal directory (usually sites/default/settings.php) and set $cookie_domain variable to the appropiate domain (remember to uncomment that line). If you not do this, FCKeditor will claim that file browser is disabled
3. Enabling file uploads is a security risk. That's why you have to grant a separate permission to enable the file browser to certain groups.
4. Lastly, adjust the File browser settings for each profile.
---------- Personal Blog | tutorials | photogaphy -----------
Freelance web designer/developer: duvien.com
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien
Same problem here. IMCE is
Same problem here.
IMCE is working
tested at
www.example.com/imce and www.example.com/user/2/imce
line has been added as you and the readme suggest. Config['enabled'] set to true.
----EDIT ----
setting "use IMCE instead of default browser" (which I wasn't aware of) and cleaning the cache does the trick.
One has to click on "browse server" to see the image browser. Otherwise, the old one is shown.
Still, images are loaded but not sent to the editor but that's another issue (probably an anchor no closed)
poehnix
I can't find that setting
hi, I am having the same problem and cannot get IMCE to work with FCK -- where did you find the setting "use IMCE instead of default browser" ?? I have looked everywhere and suspect this is my problem.
Thanks in advance,
Julie
Thanks! I now manage to
Thanks!
I now manage to upload images to the server, but I have the same problem as poehnix. I can't actually insert images on the page - I see an outline of the image, but it is broken.
Same problem if I use the
Same problem if I use the upload module to upload an image as an attachment.
When I copy the url of the attachment into the FCKeditor popup window the same problem happens. The image gets inserted but is 'broken'. If I enter an alt tag I can see the alt tag but not the image.
Seems to be a problem with FCKeditor, not IMCE?
Did you set the filter to
Did you set the filter to full html?
Yes, default is set to full
Yes, default is set to full html.
Have you solved the problem?
Not yet
I will digg it in the next few days (or wait for the next release)
if I have news I will post them here
Anyone else? I've
Anyone else?
I've reinstalled the modules but it still won't work.
I am able to upload images to the server, but then unable to actually insert them into the text area. The image either appears as a broken outline or I see the alt tag if I have put one in.
I have posted and issue
to see if someone can help.
http://drupal.org/node/241308
poehnix
@julie
the setting is in admin/settings/fckeditor
->file browser setting
Problem solved!
It turned out to be a problem with the .htaccessfile.
I commented out the following:
Options +FollowSymLinks
And it now works fine.
It was not a Drupal, FCKEditor or IMCE problem.
I will try but....
...as far as I remember that htaccess is generated by drupal (it says do not delete or something, i don't have drupal here ), so deleteing it doesn't bring any issue? I mean, is it safe to delete it?
poehnix
But it isn't
hmmm .. there are no options there (I had to select a user profile ) once you have enabled the IMCE for the browser. I only see a message that says: "The file browser settings are not diplayed because you have configured IMCE to handle file browsing."
Which I assume means the same thing. But it doesn't fix my issue. I do not see the browse server button.
EDIT
I do see it now :)
The latest version of IMCE corrected the issue. IMCE Version 5.x-1.2
Selected image url still
Selected image url still isn't transmitted at the fckeditor dialog box, even using latest IMCE version pressing "Send to FCKEditor|url@txtUrl|width@txtWidth|height@txtHeight"
This happens both in Firefox and IE and I do not get any Javascript error
Can anybody help?
Thanks
poehnix
quick and VERY dirty solution
I am new to both imce and jquery
I have posted a quick and dirty solution to solve the issue here
http://drupal.org/node/241308#comment-806557
but you have to edit code so it's a bad one. I would like to hear if someone has a neater solution
thanks
poehnix
Newbie Needs Example
Could someone give an example of making the two modifications that are required?
Would the correct code be
$Config['UserFilesAbsolutePath'] = 'sites/default/files/u%uid' ;or maybe$Config['UserFilesAbsolutePath'] = 'http://somedomain.com/sites/default/files/u%uid?' ;?I have tried
http://somedomain.com/sites/default/files/u%uid?andhttp://somedomain.com/sites/default/files, but I still get this error.:'-( I assigned permission to the user accounts.
This section was pretty straight forward.
Cookie domain in config
This post is old, but still:
I had problems getting the filebrowser and upload to work with the FCKeditor. I followed all recepies described, but none worked. After some extensive searhing, I came across http://xplus3.net/2008/05/29/how-to-install-fckeditor-on-drupal/ and the tip, and I quote: "Then located your Drupal settings file (probably at sites/default/settings.php). Uncomment the line with the $cookie_domain variable and set it to your site’s domain.".
This solved it for me. Hope it helps.
Can some one help me how to enable FCKEditor for drupal7
Hi,
I have installed drupal7 in my machine.When i install FCKEditor 6.x it is giving a message "This version is not compatible with Drupal 7.x and should be replaced.". Can some one help me on this.
Thanks in Advance,
Naveen