tags:

views:

35

answers:

2

I use TinyMCE as editor on a website. Problem is, when I insert images from the same site, TinyMCE will use relative url to the image instead of the fixed url I entered when including the image.

The resulting html is used elsewhere, for example in emails. Problem is, relative urls will not show up properly anywhere but in the original location.

How do I get TinyMCE to use full absolute urls instead of shortened relative ones?

+3  A: 

Make sure in the javascript initialization you are using, that you have these lines in it:

relative_urls : false,
remove_script_host : false,
convert_urls : false,
Andrew Dunn
I don't understand what convert_urls does, but the rest works as expected.
Sam
Neither do I, google ftw :p
Andrew Dunn
@Andrew: *lol* - I hoped you might have a better explanation than the tinyMCE docs.
Sam
+1  A: 

Try setting the config parameter relative_urls to false and see if that helps:

http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/relative_urls

sushil bharwani