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.
Steve LockwoodCreditAttribution: Steve Lockwood commented
I'm not familiar with IMCE and how it fits in with TinyMCE. I presume it lets you directly insert images/files into a document - but I haven't tried it.
I am not a module developer, but maybe this helps getting it integrated - this is what I enter in template.php in order to make tinymce working with IMCE:
Hope this helps, I really prefer this module to another, so maybe someone can fix this code / integrate it to the module. The way it works is that it creates additional 'insert image' icon, which is available after 'url' in the pop-up. Then it pops-up IMCE's browser.
Steve LockwoodCreditAttribution: Steve Lockwood commented
Fred0's code is much better than mine (thanks Fred0 and sorry for taking so long for the penny to drop). So I have created a new release 6.x.1.7 which incorporates it with just a minor mod so it detects whether IMCE is present.
With Safari 3.1.1 (also Firefox 3.0), Mac OS X 10.5.3, Drupal 6.2, IMCE 1.0 and TTMCE 6.x_1.7 I get no image previews once the IMCE window launches. Clicking on any image normally shows that image’s preview in the lower pane of the IMCE window.
Steve LockwoodCreditAttribution: Steve Lockwood commented
Hi jeffsensat - It might be worth posting this issue in the IMCE project.
Do you get the same problem if you access IMCE directly without going through TinyTinyMCE or TinyMCE? Ie go to "My account" then the "file browser" tab.
I'm using Firefox 3 on Windows (which works fine) so presumably you are referring to Firefox 3 on Mac?
Do you get the same problem if you access IMCE directly without going through TinyTinyMCE or TinyMCE? Ie go to "My account" then the "file browser" tab ... I'm using Firefox 3 on Windows (which works fine) so presumably you are referring to Firefox 3 on Mac?
Just checked it, Steve ... and YES, I get the same behavior whether accessing the File Browser alone or within either TinyMCE or TinyTinyMCE.
Affirmative: I’m on a Mac. And, IMCE exhibits the same behavior with Safari 3.1.1 and Firefox 3.0
So, I guess it’s not a TMCE or TTMCE prob, eh? Thanks for the troubleshooting idea.
Comments
Comment #1
Jkello CreditAttribution: Jkello commentedI suppose IMCE is supported. No?
Comment #2
Steve Lockwood CreditAttribution: Steve Lockwood commentedI'm not familiar with IMCE and how it fits in with TinyMCE. I presume it lets you directly insert images/files into a document - but I haven't tried it.
I will take a look.
Steve
Comment #3
ass45sin CreditAttribution: ass45sin commentedI'd be great if the 5.x version could also support IMCE for image / file browsing and image insertion capabilities.
Comment #4
encho CreditAttribution: encho commentedI am not a module developer, but maybe this helps getting it integrated - this is what I enter in template.php in order to make tinymce working with IMCE:
Hope this helps, I really prefer this module to another, so maybe someone can fix this code / integrate it to the module. The way it works is that it creates additional 'insert image' icon, which is available after 'url' in the pop-up. Then it pops-up IMCE's browser.
Comment #5
Steve Lockwood CreditAttribution: Steve Lockwood commentedThat's very helpful encho - I will have a go at this soon.
Steve
Comment #6
fred0 CreditAttribution: fred0 commentedI just got this working on Drupal 6.2 and TinyTinyMCE 1.5:
Edit tinytinymce.module and add to the end:
drupal_add_js("function imceImageBrowser(fid, url, type, win) {win.open(Drupal.settings.basePath +'?q=imce&app=TinyMCE|url@'+ fid, '', 'width=760,height=560,resizable=1');}", 'inline');
Then in the TinyTinyMCE admin page, in the init script box, add after elements: "edit-body",:
file_browser_callback: "imceImageBrowser",
Comment #7
Steve Lockwood CreditAttribution: Steve Lockwood commentedMy first attempt at integrating IMCE will be posted as a version 6 development snapshot shortly (25/6/2008).
It seems to work but I have to admit I haven't tried Fred0's suggestion above, which looks a lot simpler. So will also take a look at that.
Steve
Comment #8
Steve Lockwood CreditAttribution: Steve Lockwood commentedFred0's code is much better than mine (thanks Fred0 and sorry for taking so long for the penny to drop). So I have created a new release 6.x.1.7 which incorporates it with just a minor mod so it detects whether IMCE is present.
Steve
Comment #9
Steve Lockwood CreditAttribution: Steve Lockwood commentedComment #10
Steve Lockwood CreditAttribution: Steve Lockwood commentedReopening so I remember to do the same for V5.
Comment #11
jeffsensat CreditAttribution: jeffsensat commentedHey Steve —
IMCE button now shows up! Thanks.
With Safari 3.1.1 (also Firefox 3.0), Mac OS X 10.5.3, Drupal 6.2, IMCE 1.0 and TTMCE 6.x_1.7 I get no image previews once the IMCE window launches. Clicking on any image normally shows that image’s preview in the lower pane of the IMCE window.
Comment #12
Steve Lockwood CreditAttribution: Steve Lockwood commentedHi jeffsensat - It might be worth posting this issue in the IMCE project.
Do you get the same problem if you access IMCE directly without going through TinyTinyMCE or TinyMCE? Ie go to "My account" then the "file browser" tab.
I'm using Firefox 3 on Windows (which works fine) so presumably you are referring to Firefox 3 on Mac?
Steve
Comment #13
jeffsensat CreditAttribution: jeffsensat commentedJust checked it, Steve ... and YES, I get the same behavior whether accessing the File Browser alone or within either TinyMCE or TinyTinyMCE.
Affirmative: I’m on a Mac. And, IMCE exhibits the same behavior with Safari 3.1.1 and Firefox 3.0
So, I guess it’s not a TMCE or TTMCE prob, eh? Thanks for the troubleshooting idea.
Comment #14
Steve Lockwood CreditAttribution: Steve Lockwood commentedThanks for letting me know - I'll close this thread as it looks as though the problem is within IMCE itself.
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.