I want to use TinyMCE for text editing. My folder structure is like...
|------- css <-- here I keep all the css files of my website.
|------- js <-- here I keep all the javascripts of my website.
|------- img <-- here I keep all the images of my website.
|------- index.php <-- It is my index page in website root
|------- admin
|-------|------- index.php <-- It is my admin folder
My problem is when I am using TinyMCE in my admin/index.php to edit some articles and insert an image the path is being saved in the database is ../img/someimage.jpg where index.php in my root folder could not displaying the image as the path should be img/someimage.jpg.
What should I do ?