14
votes

im using TinyMCE Wysiwyg editor, and when i enter a link, or an image from the same website, it removes the base url

for example, if i enter: http://www.domain.com/somelink.php - i'll get - somelink.php

any ideas how to solve it?

thanks!

3
@BenoitGarret: Does July come after September?Chankey Pathak

3 Answers

28
votes

Add this few lines in your tinyMCE.init function :

convert_urls:true,
relative_urls:false,
remove_script_host:false,
3
votes

(Old thread I know but in case anyone else is googling this:)

I had to set convert_urls to false as well.

I am using TinyMCE within Umbraco, so I needed to make the changes in /config/tinyMceConfig.config and then restart the website.

1
votes

It's very easy to solve.

Instead of Epharion said, simply put this line in your tinyMCE.init function:

tinyMCE.init({
        ...
        document_base_url : "http://www.site.com/path1/"
});