1

Topic: selecting an image from image manager returns relative url

I have this problem where when i choose an image from image manager it seems return relative urls as opposted to absolute urls.  I have setup the tinymce to this:

$(selector).tinymce({
                remove_script_host : true,
                convert_urls : false,
                relative_urls : false,
                document_base_url : "http://localhost/"
});

If i have an image in a directory like this: images/test.png

it will return it as /images/test.png rather than http://localhost/test.png

Are there properties in the imagemanager that i need to set to achieve this?

Thanks

Hemang

2

Re: selecting an image from image manager returns relative url

I have managed to solve the issue. For anyone interested the solution was this:


$(selector).tinymce({
                remove_script_host : true,
                convert_urls : true,
                relative_urls : false,
                document_base_url : "http://localhost/"
});


It was simply setting the convert_urls to true

3

Re: selecting an image from image manager returns relative url

Can someone tell me in what file to i find this.  So many tips in this forum don't specify where to find the particular file to edit. I am a newbie and i understand what you are telling me to do, i just need to know where to do it.  What file do i make these changes in to occomplish covert_urls?

4

Re: selecting an image from image manager returns relative url

elwingfield wrote:

Can someone tell me in what file to i find this.

No, since I have no idea what files you have. And this question has nothing to do with MCImageManager. Please ask in the appropriate forum!

elwingfield wrote:

So many tips in this forum don't specify where to find the particular file to edit.

The problem is that each web application has its own set of files. TinyMCE is a kind of plugin for a web application. There is no standard that would define where and which file to edit. Sorry.

elwingfield wrote:

I am a newbie and i understand what you are telling me to do, i just need to know where to do it.  What file do i make these changes in to occomplish covert_urls?

TinyMCE wasn't designed for newbies. Creating web applications is something for web developers and not exactly for newbies.

I can't tell you more than what has already been covered in the FAQ. Find a file where it says "tinyMCE.init({" and you should find the configuration of your editor.

Greetings from Germany,

Felix Riesterer.
(-> about me and this forum <-)