use file upload with tinymce wordpress code example Example: tinymce image upload Add in your config - relative_urls: false, remove_script_host: false