在 ckfinder 上选择时,如何将域 url 添加到上传文件的 url
How can i add domain url to the url of uploaded files when selected on ckfinder
我正在 CKEditor 4 上设置 ckfinder
。当我 select 使用 "browse server" 按钮的图像时,图像的 URL 是:/ckfinder/userfiles/images/image.png
.
但它应该是完整的 URL,例如:http://example.com/ckfinder/userfiles/images/image.png
.
我的 ckeditor/config.js
文件:
CKEDITOR.replace( 'content_en', {
filebrowserBrowseUrl:
'./assets/app/js/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl:
'./assets/app/js/ckfinder/ckfinder.html?type=Images',
filebrowserUploadUrl:
'./assets/app/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl:
'./assets/app/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'
});
我的 config.php
文件在 ckfinder
:
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => '/ckfinder/userfiles/',
// 'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
请在 backend
配置中为 baseUrl
添加完整路径 属性。
而不是:
'baseUrl' => '/ckfinder/userfiles/',
请使用:
'baseUrl' => 'http://example.com//ckfinder/userfiles/',
我正在 CKEditor 4 上设置 ckfinder
。当我 select 使用 "browse server" 按钮的图像时,图像的 URL 是:/ckfinder/userfiles/images/image.png
.
但它应该是完整的 URL,例如:http://example.com/ckfinder/userfiles/images/image.png
.
我的 ckeditor/config.js
文件:
CKEDITOR.replace( 'content_en', {
filebrowserBrowseUrl:
'./assets/app/js/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl:
'./assets/app/js/ckfinder/ckfinder.html?type=Images',
filebrowserUploadUrl:
'./assets/app/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl:
'./assets/app/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'
});
我的 config.php
文件在 ckfinder
:
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => '/ckfinder/userfiles/',
// 'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
请在 backend
配置中为 baseUrl
添加完整路径 属性。
而不是:
'baseUrl' => '/ckfinder/userfiles/',
请使用:
'baseUrl' => 'http://example.com//ckfinder/userfiles/',