自定義路徑CKFinder
如果你正在做的URL重寫,你希望CKFinder返回自定義路徑,網址,你可以做到以下幾點:
您可以配置CKFinder如何發送網址到CKEditor的中CKFinder的config.php文件中backends
部分:
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => 'http://base/url/ckfinder/will/give/to/ckeditor',
'root' => '/path/to/files/on/disk',
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8'
);
的文件路徑將附加到所有URL和這種行爲不能被配置來改變uration。
E.g.對於/path/to/files/on/disk/images/picture.png
,返回的URL是http://base/url/ckfinder/will/give/to/ckeditor/images/picture.png
或者,您可以將'useProxyCommand' => true
添加到後端配置。
這會將所有返回的URL更改爲http://localhost/core/connector/php/connector.php?command=Proxy&lang=en&type=Files¤tFolder=%2F&hash=9fd5e9f22b8dea6a&fileName=picture.png
的形式,其中http://localhost/core/connector/php/connector.php
是用於請求獲取文件URL的URL。
與文件管理器
如果要實現與文件管理自己的整合檢查從/uploader/upload.php
你的迴應定製集成。 CKEditor的期望是這樣的:
<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(1, 'http://file/url', 'message');</script>`
你可以找到更多信息的CKEditor的documentation
我徹底失望了,任何意見表示讚賞 – hamid