Codeigniter and Tiny MCE

#1
[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?

#2
[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

#3
[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.

#4
[eluser]jabga[/eluser]
Thank you dude


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.