- // 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檔案
- };
複製代碼
內加入
- $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/xxxx/';
複製代碼
文章出處:Netyea NetYea, 新竹網頁設計, 竹北網頁設計, 苗栗網頁設計, 桃園網頁設計
ckfinder/config.php
- function CheckAuthentication()
- {
- return true;
- }
複製代碼
在搜索引擎一直改版網頁不得不進入https
所今後台編纂器圖片上傳也變得不克不及用了
不得已又就教了谷哥大神
多方測驗考試後,找到
CKeditor 4.11.1 網頁編纂器與CKfinder 2.6.2.1 圖片上傳可以用
檔案下載了今後,覆蓋之前檔案
找到 ckeditor/config.js
- CKEDITOR.editorConfig = function( config ) {
- // Define changes to default configuration here. For example:
- // config.language = 'fr';
- // config.uiColor = '#AADC6E';
- }
複製代碼
- function CheckAuthentication()
- {
- return false;
- }
複製代碼
改成
路徑就改成妳要的路徑就能夠了
本文來自:
留言列表