Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

[TinyMCE] Image Upload / Image Path Issue in TinyMCE Editor

Hi Friends,

If you are working with TinyMCE Editor and having an issue of Image Upload or Image Path Issue when inserting an image into editor, you are at right place.

For TinyMCE Editor, they are providing Add/Edit Image option. But it have only option to insert Image URL. You can either upload image via FTP in particular folder and insert URL in editor or you need to host your image to other server and Insert URL in editor. This is not user friendly and not useful for client as client might not aware with FTP or any other hosting to upload image. so better to give upload facility using browse button. I have installed Ajax File Manager plugin for uploading an image from computer instead of using external image URL.

Now when I click on Add/Edit Image, it shows popup with browse button to upload image. I can upload the image and can select the image. Once I select image and click on Add to Editor, it won’t show correct path in Editor. To fix the path for Image and show it in editor, here are the settings you need to do.

Change #1
– When you initialize the tinymce editor, make sure you add below settings. Make sure you add full url in document_base_url. If you are working on demo url, please provide accordingly.

document_base_url : "http://www.programmingfacts.com/",
relative_urls : false,
remove_script_host : false,
convert_urls : false

Change #2
– Open below file and make settings as below.


This will fix all your issues like Image Uploading not working in TinyMCE, Image Path Issue in TinyMce Editor, 404 for Image Upload TinyMCE editor, Ajaxfilemanager not working TinyMCE, Absolute path set for TinyMCE editor, Relative Path setting for TinyMCE editor etc etc.


1 Comment

  • enterprise social network

    Hi, this weekend is fastidious in favor of me, since this
    time i am reading this impressive informative article here at my residence.

Leave a Reply

Your email address will not be published.