Integrating TinyBrowser
| Project: | Tiny Tiny MCE |
| Version: | 6.x-1.9 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | SkyChew |
| Status: | active |
Jump to:
Hi all,
First i would like to compliment on what a great module this is. It is better that the old module!
especially with that show text area id. and the "tinymce.init({" configuration. and of course the easy installation
and the tiny tiny mce name which prevents the confusion with the original tinymce folder.
I bumped into tiny tiny mce because i was trying to integrate tinybrowser into tinymce. I was not able to because i could not find
where the tinymce.init({ config is and
where the link to TinyMCE (tiny_mce.js) is
with tiny tiny mce i could solve the first problem but not the second one.
was hoping if someone could point me in the direction to the proper place or files to help me get tinybrowser integrated?
part of the readme from tinybrowser is:
-------------------------------------------------------------------------------------
2) Place the following javascript link after the link to TinyMCE (tiny_mce.js):
***NOTE:*** The above link assumes TinyMCE is installed in your website root
directory, you will need to amend the link to your specific setup!
3) Add this line to your TinyMCE init:
file_browser_callback : "tinyBrowser"
-------------------------------------------------------------------------------------
cheers,
sky

#1
Hi SkyChew - sorry for the delay in replying.
The tiny_mce.js script is automatically installed by the module - if you have tinytinymce enabled, the link to the javascript will be placed in the output header.
I presume you need to inlcude another javascript in the header. In Drupal, the only way to do this is to write (or modify) some php code, which then calls the drupal_add_js function.
It would not be difficult to add this feature to tinytinymce so you could specify which additional scripts you want loading. It would be a help if you could post or send the tinybrowser readme so I can see what is needed.
Steve
#2
Just spotted this thread on a simple way to add javascript (not for purists - you have to modify your theme file)
http://drupal.org/node/316671
#3
Hi,
not the best way I think, but i just edit the tinymce.module File
added in Line 136
<?php$settings[] = 'file_browser_callback : "tinyBrowser"';
?>
and in Line 230
<?phpif (is_dir($tinymce_mod_path .'/tinymce/jscripts/tiny_mce/plugins/tinybrowser/') ) {
// if tinymce tinybrowser is installed
drupal_add_js($tinymce_mod_path .'/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php');
}
?>
Mario