Posted on: 2009/11/2 23:50
Re: A way to modulize image manager
Great module (AJAX Image manager), i made a hack so you can also use your module in TinyMCE.
You can download the hack HERE
This hack is only tested in XOOPS 2.4.0 FINAL!Step 1a, download the TinyMCE ajaximagemanager hack Step 1b, create a backup of these files:
XOOPS_data/configs/tinymce.php (Only if it exists ofcourse)
XOOPS_root/class/xoopseditor/tinymce/tinymce.phpStep 2, upload the class folder in the package to your XOOPS_root and overwrite existing files.If you already have a custom TinyMCE configuration (XOOPS_data/configs/tinymce.php)
1. Open the TinyMCE configuration file in your favorite editor
2. Search for the ); at the end of the file and add this line before it:
"file_browser_callback" => "ajaxfilemanager", If don't have a custom TinyMCE configuration:
1. Just upload the tinymce.php in the xoops_data/config dir of the package to your XOOPS config folder (XOOPS_data/configs)
That was all, now if you open the advanced image manager in TinyMCE (Not XOOPS image manager) you'll see a button after the URL input field, if you click it the ajaximagemanager will open.