我在ckeditor 4上安装了fileman(roxyfileman.com),当我上传图片时我得到了相对路径
/maillist/maillist/admin/js/ckeditor/fileman/Uploads/roxy-fileman-logo.gif
我应该把哪个绝对路径放在conf.json上 " FILES_ROOT":"", " SESSION_PATH_KEY":"",
获取
http:// www。 mydomain.com/maillist/maillist/admin/js/ckeditor/fileman/Uploads/roxy-fileman-logo.gif
感谢
答案 0 :(得分:4)
这对我有用,我刚刚添加了一个绝对的URL inR RETRUN_URL_PREFIX
希望这有帮助!
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>
<div class="input-group">
<span class="input-group-addon" title="* Price" id="priceLabel">Price</span>
<input type="number" id="searchbygenerals_priceFrom" name="searchbygenerals[priceFrom]" required="required" class="form-control" value="0">
<span class="input-group-addon">-</span>
<input type="number" id="searchbygenerals_priceTo" name="searchbygenerals[priceTo]" required="required" class="form-control" value="0">
<!-- insert this line -->
<span class="input-group-addon" style="width:0px; padding-left:0px; padding-right:0px; border:none;"></span>
<select id="searchbygenerals_currency" name="searchbygenerals[currency]" class="form-control">
<option value="1">HUF</option>
<option value="2">EUR</option>
</select>
</div>
答案 1 :(得分:2)
最新版本的roxy fileman为此添加了一个参数:RETURN_URL_PREFIX,可以在conf.json文件中设置。 它运行良好,但要求您在conf.json
中对完整的URL进行硬编码但是,如果你需要更灵活的东西,例如你处理几个环境,你可以修改RETURN_URL_PREFIX参数的工作方式,使它成为一个布尔标志:
修改main.js,第700-701行和第801-802行:
if(RoxyFilemanConf.RETURN_URL_PREFIX){
var prefix = location.protocol+'//'+location.hostname;
而不是:
if(RoxyFilemanConf.RETURN_URL_PREFIX){
var prefix = RoxyFilemanConf.RETURN_URL_PREFIX;
已编辑:以下是您的conf.json应如何显示,请注意RETURN_URL_PREFIX值:
{
"FILES_ROOT": "",
"RETURN_URL_PREFIX": "1",
"SESSION_PATH_KEY": "image_browser_url",
"THUMBS_VIEW_WIDTH": "140",
"THUMBS_VIEW_HEIGHT": "120",
"PREVIEW_THUMB_WIDTH": "100",
"PREVIEW_THUMB_HEIGHT":"100",
"MAX_IMAGE_WIDTH": "1000",
"MAX_IMAGE_HEIGHT": "1000",
"INTEGRATION": "ckeditor",
"DIRLIST": "php/dirtree.php",
"CREATEDIR": "php/createdir.php",
"DELETEDIR": "php/deletedir.php",
"MOVEDIR": "php/movedir.php",
"COPYDIR": "php/copydir.php",
"RENAMEDIR": "php/renamedir.php",
"FILESLIST": "php/fileslist.php",
"UPLOAD": "php/upload.php",
"DOWNLOAD": "php/download.php",
"DOWNLOADDIR": "php/downloaddir.php",
"DELETEFILE": "php/deletefile.php",
"MOVEFILE": "php/movefile.php",
"COPYFILE": "php/copyfile.php",
"RENAMEFILE": "php/renamefile.php",
"GENERATETHUMB": "php/thumb.php",
"DEFAULTVIEW": "thumb",
"FORBIDDEN_UPLOADS": "zip js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi exe application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess",
"ALLOWED_UPLOADS": "",
"FILEPERMISSIONS": "0644",
"DIRPERMISSIONS": "0755",
"LANG": "auto",
"DATEFORMAT": "dd/MM/yyyy HH:mm",
"OPEN_LAST_DIR": "yes"
}