You are not logged in.
#1 2005-09-30 20:50:54
- anthony
- Member
- Registered: 2005-09-29
- Posts: 4
image manager adds ../../
I have image manager intergrated into tinymce but when I go to add an image it adds ../../
Instead of that how can I get it to add just a / ?
The ../../ is upsetting the rest of the application that I intergrated this into.
Offline
#2 2005-09-30 22:08:15
Re: image manager adds ../../
The imagemanager and tinymce converts URL tro relative URLs by default. But they can be configured to use absolute URLs. Check the relative_urls init option of TinyMCE and MCImageManager. If you set that option to false, all URLs will be absolute, you could also add remove_script_host to remove the http://host/ part.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#3 2005-09-30 22:36:55
- anthony
- Member
- Registered: 2005-09-29
- Posts: 4
Re: image manager adds ../../
It is set to false in imagemanager and I set it to false in tinymce but no luck.
What files should I specifically change?
Offline
#4 2005-09-30 23:39:57
Re: image manager adds ../../
Do you have:
<script language="javascript">
mcImageManager.init({
relative_urls : false
});
</script>
<script language="javascript">
tinyMCE.init({
.. rest of init ..
relative_urls : false
});
</script>
The first one tells the Image manager to return absolute URLs back to the form values within the TinyMCE dialog. The secound one tells TinyMCE to convert any relative URLs to absolute URLs.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#5 2005-10-03 16:13:10
- anthony
- Member
- Registered: 2005-09-29
- Posts: 4
Re: image manager adds ../../
Thanks. Works like a charm.
Offline
© 2003-2010