WEBProject
WEBProject

Reputation: 1345

TinyMCE Removes site base url

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!

Upvotes: 18

Views: 10129

Answers (3)

lucyconnuk
lucyconnuk

Reputation: 371

(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.

Upvotes: 3

Plipus Tel
Plipus Tel

Reputation: 755

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/"
});

Upvotes: 1

Epharion
Epharion

Reputation: 1071

Add this few lines in your tinyMCE.init function :

convert_urls:true,
relative_urls:false,
remove_script_host:false,

Upvotes: 31

Related Questions