Closed (fixed)
Project:
IMCE
Version:
5.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
5 Mar 2008 at 16:14 UTC
Updated:
7 May 2008 at 02:41 UTC
Jump to comment: Most recent file
Hi,
I'm struggling with imce + tinymce in drupal 5.
Default installation, everything done like it was requested in manuals, and still doesn't work.
I can't see imce menu/button neither in tinymce nor when tinymce is disabled, and I'm trying to upload image on the server.
While I was searching for a solution, I've found many topics related to that issue and none of them have been solved so far.
I would really appreciate any help with that.
Kind Reagrds
Michael
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Picture 1.png | 58 KB | steinmb |
Comments
Comment #1
steinmb commentedWhat Drupal version of 5 are you using?
This my settings in admin/settings/imce. What is yours? I'm pointing the IMCE to the image folder since I have many images uploaded there with the image module. The setting "Enable inline image/file insertion into plain textareas" is relating to body field to a node. I you have a custom field created in CCK this setting will not work.
--
Stein Magne
Comment #2
chapi commentedI added these php lines into tinymce.module and works perfectly!
if (is_dir(drupal_get_path('module', 'imce')) && user_access('access imce')) {
$init['file_browser_callback'] = "imceImageBrowser";
}
********
Paste after these lines (near line 528):
$tinymce_mod_path = drupal_get_path('module', 'tinymce');
if (is_dir($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/imagemanager/') && user_access('access tinymce imagemanager')) {
// we probably need more security than this
$init['file_browser_callback'] = "mcImageManager.filebrowserCallBack";
}
if (is_dir($tinymce_mod_path . '/tinymce/jscripts/tiny_mce/plugins/filemanager/') && user_access('access tinymce filemanager')) {
// we probably need more security than this
$init['file_browser_callback'] = "mcImageManager.filebrowserCallBack";
}
Sorry for my bad english :-)
Comment #3
roosvdc commentedThanks for your solution chapi! It 's finally working for me now!
Comment #4
darekw commentedThanks! It now works for me, too!
Comment #5
richardjg commentedThis seems to be a problem with the imce_set_tinymce.js file.
Because the imceInitiateTinyMCE function is invoked via jquery, it gets passed a jquery object as cycle and the function only runs once instead of 5 times.
Adding this check fixes the problem:
Comment #6
ufku commentedthe cycle thing is new in 5.x 1.1, and yes richard you're right about jquery calling the function with a parameter. I think this is added to jquery after 1.0 release because i couldn't reproduce the issue with core drupal-5. Only the ones who upgrade jquery can experince this issue.
In short, 5.x 1.2 is coming.
Comment #7
1kenthomas commentedversion 1.2 seems to address. Can we close this?
Comment #8
ufku commentedComment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.