Hi. The Title pretty much says it all... I'm running Drupal 7.23. The problem exists for any browser (FF, IE, Safari)

Thanks,
Lee

Comments

jhmoore’s picture

I'm not able to duplicate this. Can you provide more information?

LNakamura’s picture

Thanks for the quick reply, John!

Sure:
Text format: Filtered HTML
Editor: TinyMCE 3.5.8

Oh - one other thing I forgot to mention earlier: the IMCE option does not appear under Buttons and Plugins on admin/config/content/wysiwyg/profile/filtered_html/edit

Is there any other info I could provide which might help here?

Thanks,
Lee

jhmoore’s picture

Do you have IMCE Wysiwyg bridge (https://drupal.org/project/imce_wysiwyg) installed? If you don't, then IMCE won't show up in the list of Buttons and Plugins options.

LNakamura’s picture

Yes - 7.x-1.0 - and it's enabled.

jhmoore’s picture

I have the same setup, and I'm still not able to duplicate any of this.

Sorry :-(

LNakamura’s picture

Bummer. I appreciate your trying to reproduce the problem.

If it matters, I have Wysiwyg itself at 7.x-2.2

Also, I discovered (on a different site which I developed, with slightly downlevel versions of Wysiwyg (7.x-2.1) and TinyMCE (3.5.6), but Drupal way back at 7.15) that a working system shows the same thing in the source for the dialog (libraries/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm):
<td id="srcbrowsercontainer">&nbsp;</td>
it's just that some JavaScript code, I assume, is adding the actual code inside the TD when the dialog is rendered:

<td id="srcbrowsercontainer">
<a id="srcbrowser_link" class="browse" onmousedown="return false;" href="javascript:openBrowser('srcbrowser','src', 'image','theme_advanced_image_image_browser_callback');">
<span id="srcbrowser" title="Browse"> </span>
</a>
</td>

...but I can't find that code anywhere!

The code should be added when getBrowserHTML() is called by /libraries/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js (line 63), but the call (line 51 in /libraries/tinymce/jscripts/tiny_mce/utils/form_utils.js) to
tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
returns undefined... I guess it's time to move this - to TinyMCE-land?

jhmoore’s picture

Status: Active » Closed (duplicate)

Yeah, that's what I'd do.

jhmoore’s picture

Status: Closed (duplicate) » Closed (cannot reproduce)
LNakamura’s picture

Thanks, John. If you or anybody else is interested, I just opened http://www.tinymce.com/develop/bugtracker_view.php?id=6201

LNakamura’s picture

It turns out it was a config problem, after all :-(

The role-profile assignments weren't set up on /admin/config/media/imce. Once I set those, the IMCE button popped up on the Wysiwyg config page for TinyMCE, which allowed the file browser button to appear for the Image plugin.

jhmoore’s picture

Ahh, I forgot about that possibility.

Thinking about it now, I seem to recall something similar occurring in some previous Drupal install a while back. I was configuring the WYSIWYG editor with IMCE, as I'd done many times before, but this time I couldn't enable certain features. It turned out be some IMCE configuration problem. It's still a mystery to me why it only occurred on this one install, which had all the same modules and libraries that I normally use.

LNakamura’s picture

So I wasn't going crazy? :-)

RytoEX’s picture

I've also just now run into this with 6.x-2.5 (with IMCE Wysiwyg bridge 6.x-1.1 and TinyMCE 3.5.9) in an odd way. While logged in as the default admin user, I can see the checkbox for "IMCE" under the WYSIWYG TinyMCE profiles and it is checked, and the IMCE file browser button shows up in the "Insert/Edit Image" dialog. If I log in as another user, even another one with the administrator role, I can neither see the "IMCE" checkbox nor the IMCE file browser button. When I checked the IMCE Configuration profiles and Role-profile assignments (/admin/settings/imce) it seems that they are not set, like LNakamura's situation. Setting the Role-profile assignments also seemed to solve this problem for me.

As far as I know, the configuration has never changed. I'd never have noticed this was a problem if I hadn't checked on a different user account. Does the default admin user override these settings? Is there a setup guide that goes over configuration steps like these? Thanks!

cigotete’s picture

I want to comment that I have the same issue, but only with roles that have permissions to upload files (I mean, the browse icon is displayed to the superadmin role). ¿there is any progress on the issue? thanks in advance.