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

CommentFileSizeAuthor
#2 tyni.jpg33.01 KBxaviercas

Comments

weblinq’s picture

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();
}

$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;
}

xaviercas’s picture

StatusFileSize
new33.01 KB

Thanks 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

xaviercas’s picture

Status: Active » Closed (fixed)

updated to 6.4, resolved

wowik73’s picture

Version: 6.x-1.x-dev » 5.x-1.9-1
Status: Closed (fixed) » Active

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)

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

xaviercas’s picture

Status: Active » Closed (fixed)

Hi,

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