- https CKeditor 4.11.1 網頁編輯器與CKfinder 2.6.2.1 圖片上傳
在搜尋引擎不停改版網頁不得不進入https
所以後台編輯器圖片上傳也變得不能用了
不得已又請教了谷哥大神
多方嘗試後,找到
CKeditor 4.11.1 網頁編輯器與CKfinder 2.6.2.1 圖片上傳可以用
檔案下載了以後,覆蓋之前檔案
找到 ckeditor/config.jsCKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
}
內加入// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
baseurl = 'https://'+window.location.hostname;
config.filebrowserBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
config.filebrowserImageUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
config.filebrowserFlashUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
};
ckfinder/config.phpfunction CheckAuthentication()
{
return false;
}
改成function CheckAuthentication()
{
return true;
}
路徑就改成妳要的路徑就可以了$baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/xxxx/';
NetYea, 新竹網頁設計, 竹北網頁設計, 苗栗網頁設計, 桃園網頁設計
- https, CKeditor, 網頁編輯器, CKfinder