Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Hi,
Clicking on the browse file button on the link popup or image popup of the editor does not do anything. Any idea?
Running Drupal 6x, latest TinyMCE, IMCE, using firefox or safari in osx.
Thanks
xavier
Place the following code in you theme template file:
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
static $access, $integrated;
if (!isset($access)) {
$access = function_exists('imce_access') && imce_access();
}
I have added the code to template.php in my theme folder, unfortunately the browse file button still does not function (FF & Safari), attached a screenshot. Thanks for your help,
I use tinymce 1.92 module and in all browsers "upload file button" works except for IE.
If i use code from #1 -
1) work in IE but not work in other browser (FF,Mozilla,Opera)
Comments
Comment #1
weblinq commentedPlace the following code in you theme template file:
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
static $access, $integrated;
if (!isset($access)) {
$access = function_exists('imce_access') && imce_access();
}
$init = theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);
if ($init && $access) {
$init['file_browser_callback'] = 'imceImageBrowser';
if (!isset($integrated)) {
$integrated = TRUE;
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');
}
}
return $init;
}
Comment #2
xaviercas commentedThanks for that.
I have added the code to template.php in my theme folder, unfortunately the browse file button still does not function (FF & Safari), attached a screenshot. Thanks for your help,
xavier
Comment #3
xaviercas commentedupdated to 6.4, resolved
Comment #4
wowik73 commentedI use tinymce 1.92 module and in all browsers "upload file button" works except for IE.
If i use code from #1 -
1) work in IE but not work in other browser (FF,Mozilla,Opera)
errors:
-tinyMCELang has no properties
http://ubercart.drupal.soft.cn.ua/sites/all/modules/tinymce/tinymce/jscr...
Line 23
-tinyMCEPopup is not defined
http://ubercart.drupal.soft.cn.ua/sites/all/modules/tinymce/tinymce/jscr...
Line 10
-tinyMCEPopup is not defined
http://ubercart.drupal.soft.cn.ua/sites/all/modules/tinymce/tinymce/jscr...
Line 5
please help
Comment #5
xaviercas commentedHi,
I am not really the one to ask for help. However, I have updated to D6.4 and tynytynymece in advanced mode and it works ok. Hope that helps.
Thanks