Hmm - this issue only appears when using modx links ( [[~XYZ]] ) inside the create-link popup in tinyMCE.
So maybe its a system setting within modx after all?
I have exactly the same problem here, but I can’t find a good solution to this.
I have just installed the latest update 2.0.4 pl2 with the latest tinmce 4.1.1 and it’s still the same.
Normally i’d leave Path Options empty and rely on <base> in the html but I want to use anchors and I can’t have both.
Any ideas anyone?
You dont happen to have a custom filemanager_path or filemanager_url setting, do you?
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
No, mine are both empty. I tried setting them to / but that didn’t help.
I had a similar issue with TinyMCE prepending links with: /assets/components/tinymce/
From my notes the following settings work for me on two MODx Revolution 2.0.4-pl2 installs.
System > System Settings: Search for ’path’
Area: File System - Set ’File Manager Path’ to ’assets/components/tinymce/uploads/’
Area: tinymce - Set ’Path Options’ to ’rootrelative’
System > System Settings: Search for ’filemanager_url’
Area: File System - Set ’File Manager URL’ = ’/uploads/’
Files are then uploaded to: /assets/components/tinymce/uploads/
You need to create ’uploads’ directory manually via FTP or similar. I’m on a Windows box so don’t need to worry about setting permissions on the new directory. I chose this directory for TinyMCE uploads as I didn’t want clients having access to the site root either with TinyMCE or via the Files Tab in the Manager.
You probably also need to make sure the following tag is in the head of the site template:
<base href="[[++site_url]]" />
Interestingly, I am having this problem on a new install of Revo 2.0.6pl traditional but NOT on an almost identical install of 2.0.5pl traditional.
I have checked the File System Settings side-by-side in two browser windows and the tinymce settings as well.
They’re both identical, as are the directory structures. (both sites are part of a shared hosting account that allows multiple independent website configurations)
If I set the problem site TinyMCE to docrelative links, it doesn’t prepend inserted links to filesystem items (like PDFs).
If I set it to rootrelative or fullurl then it inserts the /components/tinymce bit.
I have both sites configured with /assets/ as the file manager default. I wonder if there’s something to do with leading or trailing / chars that are in the guts of the apache config? The default values for all of the filesystem paths are blank (my site root).
@lowelife
Looking back to my notes I have updated them with:
Area: File System - Set ’File Manager URL’ = ’/uploads/’ - update v2.0.5-pl appears to want ’uploads/’
All of my installs are on the same web server running IIS7 with identical web.config files so I guess in my case that rules out server config as having an influence.