I have setup a multilingual web projet in Revo with the following params :
url : http://mydomain.com/en
context : en
url : http://mydomain.com/fr
context : fr
My images are located in /assets/images/ .
In TinyMCE, when I try to insert an image in a document, the url generated is assets/images/myimage.jpg when tiny.path_options is set to "docrelative". When path_options is set to "rootrelative" the generated url is /assets/components/tinymce/assets/images/myimage.jpg.
What params do I have to change in TinyMCE and/or in the contexts to have /assets/images/myimage.jpg generated ?
In tinymce.class.php, line 141, we have
$this->properties['document_base_url'] = $this->config['assetsUrl'];
where $this->config[’assetsUrl’] is defined by
$assetsUrl = $this->modx->getOption('tiny.assets_url',$config,$this->modx->getOption('assets_url',null,MODX_ASSETS_URL).'components/tinymce/');
To solve my problem, I had to change line 141 by
$this->properties['document_base_url'] = $this->modx->getOption('tiny.document_base_url',$this->properties,'');
Any feedback on this is appreciated.