Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm testing IMCE-HEAD on my Drupal-6.0.
On the same installation, there is a fckeditor-6.x-1.1-beta2.
After all installation, I tried to use FCKeditor.
Both image and link interface doesn't show a browse button.
Comment | File | Size | Author |
---|---|---|---|
#6 | imce-HEAD.FCKEditor.D6.patch | 3.76 KB | smh67 |
Comments
Comment #1
sanderbontje CreditAttribution: sanderbontje commentedSimilar problem here on my test setup:
Drupal 6.0, upgraded yesterday to 6.1
IMCE HEAD revision from CVS (imce.module v 1.19 2008/02/27)
FCKeditor_2.5.1 (latest stable release)
fckeditor-6.x-1.1-beta2 Drupal module
IMCE module is enabled in admin/build/modules.
All users' roles are configured to have access to IMCE at admin/settings/imce.
No javascript errors are thrown.
No browse button showing up on image and link interface.
Checked template: theme Garland prints $closure.
But there is no link to any imce related javascript visible in the output page source.
Comment #2
Dubs CreditAttribution: Dubs commentedHi there,
I have the same problem as mentioned above.
FCKEditor - 6.x-1.1-beta2
IMCE - Latest build (correct on 4th March 2008)
Drupal - 6.1
Dubs
Comment #3
manmach CreditAttribution: manmach commentedI am getting a browse button, but that launches the browser of FCKeditor, instead of the IMCE browser.
I had to enable basic and advanced file management of a profile at admin/settings/fckeditor/edit first.
Comment #4
sergiopasra CreditAttribution: sergiopasra commentedIt seems that FCKeditor needs the function imce_integrate. From fckeditor.module:
but the function is not defined
Comment #5
smh67 CreditAttribution: smh67 commentedI have the same difficulties in pretty much the same setup (Drupal 6.1, IMCE-HEAD): "Browse Server" does not show up. However, I do get the "Browse Server" Button if I override FCKConfig manually (i.e. by hardcoding the lines
into fck_image.js, line 95, after window.onload-function ).
But the resulting imce/browse dialog does not show any way to add the selected picture to the original FCK dialog. I assume that the missing "Add" button might be a consequence of the improvised way of calling IMCE? At least that's why I did not open a new thread on a missing "Add" button.
Does anybody have a working Drupal 6.1-FCKEditor-IMCE-installation? Where would the Add button show up anyways? Thanks.
Comment #6
smh67 CreditAttribution: smh67 commentedok. This is a very evil quick&dirty patch, but it does for me what it needs to do (i.e. get imce working with FCKEditor on Drupal 6.1). I'm really new to all of this, but here's what I figured the problem was:
Most of the stuff, as I said, is ugly, hardcoded, and raw. It is certainly no good code. But maybe it helps people get inspired, or just get IMCE-HEAD (27 Feb 08) and FCKEditor on D6.x running until better code arrives. Copy the patch to your modules/imce; cd modules/imce; patch -p 2 -u -i imce-HEAD.FCKEditor.D6.patch
Comment #7
ufku CreditAttribution: ufku commentedGood news for the ones who are in a hurry to use fck-imce combo. A new method has been implemented to integrate IMCE into WYSIWYG editors. FCK users are lucky that FCK maintainers made it easy to set the filebrowser under configuration profiles. You just go to your fckeditor profile settings and add these lines to custom js configuration field under advanced settings:
And also you should be running the latest IMCE HEAD version that contains the file js/imce_set_app.js
Please test it and dont forget to update this issue.
Comment #8
smh67 CreditAttribution: smh67 commentedThis seems to work very well for me! Thanks a lot!! Great work.
Comment #9
ufku CreditAttribution: ufku commentedComment #10
garg_art CreditAttribution: garg_art commentedI placed the exact same code on my D6.1 and FCK 2.51 and IMCE Head dt 3/11/2008 and it did not work.
I removed the code and the native FCK file browser is back.......
The error I receive says -
File browser is not configured properly!
Comment #11
smh67 CreditAttribution: smh67 commentedMaybe just a caching issue? I first had trouble with this. Did you try to insert the three lines into ~/modules/fckeditor/fckeditor.config.js directly?
Also, make sure to check (at least) the "Allow advanced file management:" to true
Comment #12
ufku CreditAttribution: ufku commentedFile browser is not configured properly!
This error is shown when there is no configuration profile assigned to user. In other words access denied.
And, yes, it should be changed to a more relevant error message.
Comment #13
ufku CreditAttribution: ufku commentedforgot to mention that the message could appear when there were no directories specified in user's configuration profile.
Comment #14
garg_art CreditAttribution: garg_art commentedThanks a lot smh67. This advanced file management is the problem. I wonder if its just me but it may be a good idea to point this out clearly in documentation. There are so many settings in Drupal that its like an airplane cockpit. Price one pays for powerful solution.
Thanks for your help.
Comment #15
ufku CreditAttribution: ufku commentedin order to override advanced file management setting one has to add these lines:
LinkBrowser= true;
ImageBrowser= true;
FlashBrowser= true;
so the whole settings in custom js configuration are:
Comment #16
garg_art CreditAttribution: garg_art commentedufku rocks
This works like a charm now.
Comment #17
jeffsensat CreditAttribution: jeffsensat commentedWith Drupal 6.1:
FCKEditor 2.5 installed and working fine.
IMCE HEAD installed and enabled.
FCKEditor 2.5 Basic and Advanced File Management enabled.
File overrides defined here written to sites/all/modules/fckeditor/fckeditor.config.js ...
All other FCKEditor instructions including myriad of hoop-jumping (I think) done. [Ahem, could this be a smidgen easier? :>. ]
Followed ALL instructions I could glean here and elsewhere. When clicking on FCKEditor “Insert/Edit Image” button, I’m getting an “Image Properties” popup window with the following URL:
http://mydomain.com/sites/all/modules/fckeditor/fckeditor/editor/fckdial...
When clicking the “Browse Server” button within that new window, I’m taken to a new popup window for this URL:
http://www.mydomain.com/?q=imce&app=FCKEditor|url@txtUrl|width@txtWidth|height@txtHeight
... which actually displays the non-Drupal index.html page at the root of my domain.
Drupal is installed here currently, as a subfolder of the primary domain, as I develop: http://www.mydomain.com/d6/
Tried also adding these to Administer / Site configuration / Edit FCKeditor profile “Custom javascript configuration:”
When I remove these, I’m taken here:
http://mydomain.com/d6/sites/all/modules/fckeditor/fckeditor/editor/file...
... which displays a blank FCKEditor browser window. No files to choose from.
It hurts. It hurts so BAD.
Comment #18
ufku CreditAttribution: ufku commentedchange the URLs int he settings to
'/d6/?q=....'
or toDrupal.settings.basePath +'?q=....'
Good news is that, you wont be needing these settings for the next release of fckeditor, as the IMCE integration will be among the settings and easy as a single click.
Comment #19
jeffsensat CreditAttribution: jeffsensat commentedThat worked ufku!
Two more questions:
01) Like FCKEditor, IMCE is using the same CSS file as the site to draw its background, which is VERY hard to read. I had to tell FCKEditor to use its own FCKEditor default CSS so I FCKEditing was legible and possible. Any idea how to do the same with IMCE?
02) Once I go from PRODUCTION to LAUNCHING the site (and move it out of the current mydomain.com/sub/ folder directly into mydomain.com), all the links to embedded images will change, won’t they? How will I address that?
THANKS.
Comment #20
jeffsensat CreditAttribution: jeffsensat commentedActually, I was able to go into the IMCE CSS file and alter the background color ... all is well!
(Now if I could just get a RIGHT-ALIGNED image to show up as RIGHT-ALIGNED! This must be an FCKEditor issue, so now I’m off to solve THAT problem.)
Comment #21
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.