We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Settings for MCImageManager? with working well LG TinyMCE and MCFileManager

Development and Programming

joann22's avatar
joann22
176 posts
17 years ago
joann22's avatar joann22

Hi, I’m hoping someone can help me out.

I have textarea using WYSIWYG that has the imagemanager button and filemanager button. Filemanager is working fine and can access the folders, insert, upload. It is ImageManager that won’t open the same subfolder. I want ImageManager to open the same folder as FileManager.

LG TinyMCE settings: (You can see below that the document_base_url is http://www.domain.com but actually, I also tried document_base_url is ‘/’ and it didn’t make a different with ImageManager. I was trying to find ImageManager init settings that I should use… but I haven’t found anything.)

button_tile_map : true,
mode:'textareas',
editor_selector : 'lg_mceEditor',
theme : 'advanced',
content_css : 'http://www.domain.com/css/editor.css', 
relative_urls : false,
remove_script_host : true,
document_base_url : 'http://www.domain.com/',
apply_source_formatting : true,
fix_list_elements : true,
plugins :'inlinepopups,style,table,advhr,advimage,advlink,emotions,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,visualchars,nonbreaking,xhtmlxtras,imagemanager,style,advlink,filemanager',
advimage_styles:'Align Left=left;Alight Right=right',
theme_advanced_buttons1 : 'undo,redo,|,formatselect,styleselect,|,bold,italic,|,justifyleft,justifyright,|,bullist,numlist,outdent,indent,|,link,unlink,anchor,|,insertimage,insertfile,|,cleanup,removeformat,code',
theme_advanced_buttons2 : '',

So, FileManager’s config.php is:

$mcFileManagerConfig['filesystem.path'] = ''; // absolute or relative from this script path.
$mcFileManagerConfig['filesystem.rootpath'] = '../../../../files'; // absolute or relative from this script path.

When I set the ImageManager’s config.php the same as above or to anything else it seems to always open to tinymce’s plugin folder where imagemanager is residing, that would ‘js/tinymce/plugins/imagemanager/’ – where I can then go through all the subfolders inside the imagemanager’s folder. Definitely not what I want to do.

Any one? Thoughts?

Thanks in advance!

       
joann22's avatar
joann22
176 posts
17 years ago
joann22's avatar joann22

Anyone?

       
Andy_vdG's avatar
Andy_vdG
62 posts
17 years ago
Andy_vdG's avatar Andy_vdG

Hi,

I used these settings in the config.php for both Image Manager and File Manager respectively:

$mcImageManagerConfig['filesystem.path'] = '../../../../../../images/uploads/'; // absolute or relative from this script path, optional.
    $mcImageManagerConfig['filesystem.rootpath'] = '../../../../../../images/uploads/'; // absolute or relative from this script path, required.
$mcFileManagerConfig['filesystem.path'] = '../../../../../../images/uploads/'; // absolute or relative from this script path.
    $mcFileManagerConfig['filesystem.rootpath'] = '../../../../../../images/uploads/'; // absolute or relative from this script path.

Works like a charm for me.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.