歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CKEditor與KCFinder整合

CKEditor與KCFinder整合

日期:2017/2/28 14:37:55   编辑:Linux教程

本案例中CKEditor與KCFinder處於同一目錄中。

要使 KCFinder 成為 CKEditor 的默認文件浏覽器,很簡單,你只需要編輯 CKEditor 主目錄下的 config.js 文件

如下:

config.filebrowserBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=files'; config.filebrowserImageBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=images'; config.filebrowserFlashBrowseUrl = CKEDITOR.basePath+'../kcfinder/browse.php?type=flash'; config.filebrowserUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=files'; config.filebrowserImageUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=images'; config.filebrowserFlashUploadUrl = CKEDITOR.basePath+'../kcfinder/upload.php?type=flash'; 當然了要使用KCFiner,還需要修改KCFiner的配置文件config.php,主要修改的有兩項: 'disabled' => false; //設置啟用KCFiner 'uploadURL'=>"../../upload"; 這裡的上傳路徑與早期 FCKEditor 中自帶的上傳管理器不一樣,是可以使用相對路徑的,更多設置項請參見 KCFinder安裝向導 與 KCFinder集成指南之Session配置。

CKEditor 的詳細介紹:請點這裡
CKEditor 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved