Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Tiny MCE

I am using TinyMCE editor in my Codeigniter small site and it's working, but I have one issue. My tinymce and images folder are in the root folder
But I will have to insert images like this ../../../images/pic.jpg and because of this issue, I can't see image in the editor.

Please tell me how can fix it?

[eluser]Phil Sturgeon[/eluser]
Did you look in the TinyMCE Documentation? There are lots of config options for this sort of thing.

Take a look at the following config options and work out the correct combination for your needs:

* convert_urls
* relative_urls
* remove_script_host
* document_base_url


This is an old post, but I had this problem yesterday and managed to fix it by adding this to tinymce init -
            relative_urls : false,
            remove_script_host : true,
            document_base_url : "http://www.example.com/"
Hope this helps, change www.example.com to your own site base url.

Thank you dude

Theme © iAndrew 2016 - Forum software by © MyBB