I basically want to do this in the connector:
$config['doc_root'] = '/var/www/' . $someVar . '/files';
Following instructions in the thread above, one would set fileRoot in filemanager.config.js:
fileRoot ='/';
However, as noted in the above thread this works until the image path is inserted into CKEditor - the img path that is inserted is '/imagename.jpg'
I had same problem and solved it.
Open filemanager.class.php (if you are using php), look for public function getinfo().
Edit 'Path'=> 'PATH/TO/YOUR/CUSTOM/IMG/FOLDER'.$this->get['path'],
Now you should be able to see the preview + img in CKEditor.