Javascript Tinymce编辑器图像上载插件添加完整图像URL

Javascript Tinymce编辑器图像上载插件添加完整图像URL,javascript,php,jquery,Javascript,Php,Jquery,我正在为tinymce编辑器使用一个名为justboil.com的图像上传插件 它很棒,可以上传图像来显示它们,但我希望它能够将完整的web URL添加到图像路径中,如: ** 而不是 */上传\u img/img1.jpg* 下面是插件的配置代码 | ------------------------------------------------------------------- | | Path to upload target folder, relative to domain na

我正在为tinymce编辑器使用一个名为justboil.com的图像上传插件

它很棒,可以上传图像来显示它们,但我希望它能够将完整的web URL添加到图像路径中,如:

**

而不是

*/上传\u img/img1.jpg*

下面是插件的配置代码

| -------------------------------------------------------------------
|
| Path to upload target folder, relative to domain name. NO TRAILING SLASH!
| Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:
| 
| $config['img_path'] = '/images/somefolder';
| 
| -------------------------------------------------------------------*/


    $config['img_path'] = '/upload_img'; // Relative to domain name

    $config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
我已尝试将
$\u服务器['DOCUMENT\u ROOT']
更改为完整域名,但如果我这样做,它不会上载图像


有什么想法吗?

在tinymce init中,您可以设置以下标记:

relative_urls: false,
remove_script_host: false
这将为TinyMCE编辑器中添加的所有项目启用带有完整地址的绝对URL