I am currently using the newsflash theme. I am not getting the browse button. I have the closure tag in the right spot but still nothing. Any help would be great.

CommentFileSizeAuthor
#8 tinymce_imce.patch1.26 KBmarkstos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Eugene Fidelin’s picture

I have the same problem with my own theme. If i use it - i didn't see "Browse" button, but if i use theme Garland - i see it.

I found out that my theme in file page.tpl.php had an error. It haven't this code <?php print $closure;?>.

When i wriote this code - "Browse" button appeared.

Ray Seaman’s picture

I'm having the same issue, even though I changed the code at the bottom of page.tpl.php. Any other ideas?

I'm using the LiteJazz theme (similar to NewsFlash)

Ray Seaman’s picture

Still needing help on this one. Is it my theme (again, it's LiteJazz)?

Ray Seaman’s picture

Possibly some helpful info to the more technical among us - according to Firebug, this is the error:

tinymce.configs has no properties
    for (var i=0; i<tinymce.configs.length; i++) (

Firebug cites the following:
imce_set_tinymce.js Line 7

I'm no coder, so none of this make sense to me. However, I'm sure it will ring a bell with many people here.

Ray Seaman’s picture

Still waiting for help...

I noticed today that I have the "Personal Files" tab on my profile page - so I guess some part of IMCE is working. However, as I've noted for the past week or so, I can't get the browse button to show up in the images dialog box in TinyMCE.

Mike Sances’s picture

Having the same issue. Have personal files, but since upgrading to Drupal 5.5 can't see "browse button." Have checked for closure tags, that isn't the issue.

jscheel’s picture

Have you checked you permissions? Have you granted "access imce" to any roles?

markstos’s picture

Title: Browse button not showing up » Browse button not showing up (A fix)
Status: Active » Needs review
FileSize
1.26 KB

I noticed the same JavaScript error.

The following code is in "diff" form and supplies a workaround. I think this is a bad way to solve it, but it works. The original code had a better approach, but I don't understand why it's not working. Unix geeks can apply this with "path". Otherwise, note the file names, and realize that the plus or minus in the first column indicates whether a line should be added or removed.

cafe’s picture

markstos - your patch works for me, thanks.

elgreg’s picture

This patch worked for me as well. much thanks! Wonder if this has anything to do with using v3 of TinyMCE?This is on Drupal 5.7, TinyMCE v3.0, tinymce,module v 1.92, imce.module,v 1.8.2.30

KermitJr’s picture

Appreciate the patch, but for the non-technically inclined... which file am I patching? TinyMCE or IMCE? The drupal or the internal for tiny?

thanks!
Kermitjr

domineaux’s picture

Status: Needs review » Active

Browse not showing up, but when I do a refresh of the browser it shows up.

I've tried it on Garland and LiteJazz, same thing happens. The IMCE window pops up, but there is no browser button on any page.

I refresh the web browser and the little browser button shows up on the IMCE popup.

Can't we just turn off the old FCKeditor/TinyMCE popup some way and eliminate this issue?

This way caching wouldn't make a flip of difference.

I'm using FCKeditor.

naitsirhc26’s picture

Status: Active » Needs review

Thanks markstos. Your fix worked perfectly. KermitJr, when you open up the patch file, you will notice the two files that you need to edit.

tinymce/tinymce.module (which is in the tinymce folder)
imce/imce_set_tinymce.js (which is in the imce module folder)

Just edit the lines of code where he has placed - and + marks. Just delete lines with a - symbol and add lines with a + before them.

jazzun4141’s picture

Thank you. This patch really worked. I was very frustrated by the lack of functionality when the browser button did't show up.

jrabeemer’s picture

Marktos patch didn't work for me with D5.7 and the latest tinymce/imce.

jwurster’s picture

Great, that patch worked. Thank you.

Andrew Maiman’s picture

The patch worked successfully for me, as well. (Drupal 5.7 + TinyMCE 5.x-1.x-dev (2007-Dec-16) + TinyMCE 3.0 + IMCE 5.x-1.0)

amccoy’s picture

Patch worked for me too!
(Drupal 5.7 + TinyMCE 5.x-1.9 + TinyMCE 3.0 + IMCE 5.x-1.0)

joelg-1’s picture

Thanx a lot for the patch. Worked well too...

stiggynet’s picture

Thanks markstos!!!!!!!

sayesor’s picture

It's worked for me too. Thanks!!!

rontec76’s picture

The patch worked for me too with one exception.

I'm using TinyMCE module 5.x-1.9, TinyMCE 3.1.0.1 and IMCE 5.x-1.2.

In this case I only applied the patch to tinymce.module and left imce_set_tinymce.js.

This is because before I applied the patch I noticed the existing code referenced in the patch is different than what is in my version of IMCE.

Point being in my case it worked to just patch the TinyMCE module.

At any rate....thanks for the patch. It saved me a headache.

oldrobb’s picture

Similarly, I only patched tinymce.module (as I didn't actually have an imce_set_tinymce.js!)

Edit
Just realised that while this makes my button appear, the button doesn't do anything!

Firefox's Error Console gives me:

Error: f has no properties
http:

//<my domain>/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js?w    Line: 1

This is with:
Drupal 6.4
IMCE 6.x-1.1
TinyMCE 6.x-1.1-dev

jimmb’s picture

Version: 5.x-1.0 » 6.x-1.1
Assigned: Unassigned » jimmb

I have the same setup as robbm, and am using the LiteJazz theme. When I open the TinyMCE editor, there's no browse icon for selecting an image. I find it interesting that in the D6 vsn. of IMCE, there is no checkbox option to:

Enable tinyMCE support
Make IMCE the default image/file browser for tinyMCE.

I would think this could be part of the problem, except I suspect it's been removed from this version of IMCE for some unknown reason. At any rate, I'm joining the chorus of people looking for a solution.

Jim

Grinch2171’s picture

I too am one one of those who doesn't have a browse button.

Drupal 6.4
IMCE 6.x-1.1
TinyMCE 6.x-1.1-dev

I am using the Deco theme.

gorgen’s picture

jasonch’s picture

Hi,
I have the same problem, but I realized my version of imce doesn't even has imce_set_tinymce.js file so I can't apply the second half of the patch (after applying the first half, the button appears but goes no where).

I've tried everything else that's suggested on this thread, nothing worked.
Any hint :)?

jasonch’s picture

Actually... I applied the patch from
http://drupal.org/node/241753#comment-792305
and it works now ^^

thanks

jimmb’s picture

Assigned: jimmb » Unassigned

I've just installed a site with Wysiwyg API and TinyMCE 3.2.1.1. I am, however, not getting a browse button either.

I've tried with both Garland and Aquia Marina, with the same results. I also tried the patch in #26 above with Aquia Marina's template.php. But that didn't work either.

Hopefully someone else has a solution for the Wsyiwyg API - TinyMCE combination.

Thanks,

Jim

MissyM’s picture

Stuck! Subscribe

ufku’s picture

Status: Needs review » Closed (fixed)

Closing 6.x-1.x issues as this branch is no more supported.