24h購物| | PChome| 登入
2023-02-09 00:24:10| 人氣19| 回應0 | 上一篇
推薦 0 收藏 0 轉貼0 訂閱站台

CKeditor 4.11.1 網頁編纂器與CKfinder



路徑就改成妳要的路徑就能夠了

  1. // Remove some buttons provided by the standard plugins, which are
  2.         // not needed in the Standard(s) toolbar.
  3.         config.removeButtons = 'Underline,Subscript,Superscript';網站架設
  4.  
  5.         // Set the most common block elements.
  6.         config.format_tags = 'p;h1;h2;h3;pre';
  7.  
  8.         // Simplify the dialog windows.
  9.         config.removeDialogTabs = 'image:advanced;link:advanced';
  10.         baseurl = 'https://'+window.location.hostname;
  11.         config.filebrowserBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html';
  12.         config.filebrowserImageBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Images';
  13.         config.filebrowserFlashBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Flash';
  14.         config.filebrowserUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
  15.         config.filebrowserImageUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
  16.         config.filebrowserFlashUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
  17. };
複製代碼

網站架設

改成

  1. function CheckAuthentication()
  2. {
  3.         return true;
  4. }
複製代碼



文章出處:Netyea  NetYea, 新竹網頁設計, 竹北網頁設計, 苗栗網頁設計, 桃園網頁設計



ckfinder/config.php

  1. $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/xxxx/';
網站架設 複製代碼
  1. function CheckAuthentication()
  2. {
  3.         return false;
  4. }
複製代碼



內加入

在搜索引擎一直改版網頁不能不進入https
所今後台編纂器圖片上傳也變得不能用了
不得已又就教了谷哥大神
多方測驗考試後,找到
CKeditor 4.11.1 網頁編纂器與CKfinder 2.6.2.1 圖片上傳可以用

1.png


檔案下載了今後,籠蓋之前檔案
找到 ckeditor/config.js

  1. CKEDITOR.editorConfig = function( config ) {
  2.         // Define changes to default configuration here. For example:
  3.         // config.language = 'fr';
  4.         // config.uiColor = '#AADC6E';網站架設
  5. }
複製代碼


以下文章來自:

台長: dennisnag2
人氣(19) | 回應(0)| 推薦 (0)| 收藏 (0)| 轉寄
全站分類: 校園社團(社團、班級、校友會、同學會) | 個人分類: NetYea |
此分類上一篇:jQuery cxSelect 聯動下拉選單如何撈出預設值

是 (若未登入"個人新聞台帳號"則看不到回覆唷!)
* 請輸入識別碼:
請輸入圖片中算式的結果(可能為0) 
(有*為必填)
TOP
詳全文