CodeIgniter Forums
Codeigniter and Tiny MCE - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Codeigniter and Tiny MCE (/showthread.php?tid=25205)



Codeigniter and Tiny MCE - El Forum - 12-04-2009

[eluser]jabga[/eluser]
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
Root_folder/scripts/tinymce/
Root_folder/images/
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?


Codeigniter and Tiny MCE - El Forum - 12-04-2009

[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


Codeigniter and Tiny MCE - El Forum - 01-14-2010

[eluser]jjmax[/eluser]
Hi,

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


Codeigniter and Tiny MCE - El Forum - 01-14-2010

[eluser]jabga[/eluser]
Thank you dude