12
Apr
God I hate php….
http://pascal.vanhecke.info/2005/08/25/image-upload-plugin-for-tinymce/
Then (summarized from readme.txt for a simple setup, have a look at it if you want to know more):
- download the latest version, unzip and upload the Ibrowser files to tiny_mce\plugins\ibrowser
- select the one, 2 or more directories you want to be able to insert images from and and upload to and indicate them with easy to understand names (that will show up in the interface) in config/config.inc.php:
$cfg['ilibs'] = array (
array (
‘value’ => ‘/path/from/webroot/images/’,
‘text’ => ‘Sprekers’,
),
array (
‘value’ => ‘/path/from/webroot/gallery/’,
‘text’ => ‘Sponsors’,
),
);
- chmod these directories and additionally the directories ibrowser/scripts/phpThumb/cache and ibrowser/temp to 755 or 777 (depending on the privileges your webserver has - try with 755 first if you’re not sure)
- copy tinyMCE.editor_plugin.js file into the iBrowser plugin directory and rename it to “editor_plugin.js”
- somewhere in an included or inline javascript, you should have the “tinyMCE.init” statement, configuring your TinyMce setup:
- look for the plugins option and add “ibrowser”
- either add the “ibrowser” button in the theme_advanced_buttonsX option or add an extra theme_advanced_buttonsX_add option if you have used some predefined button set (”theme”)
Example for the latter:
tinyMCE.init({
...
plugins : "ibrowser",
...
theme : "advanced",
theme_advanced_buttons3_add : "ibrowser",
});
0