24h購物| | PChome| 登入
2023-02-15 00:20:37| 人氣29| 回應0 | 上一篇 | 下一篇

網站架設 CKeditor 4.11.1 網頁編輯器與CKf

推薦 0 收藏 0 轉貼0 訂閱站台



內插足網站架設網站架設

  1. function CheckAuthentication()網站架設
  2. {
  3.         return true;網站架設
  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. }
複製代碼
  1. $baseUrl = 'https://'.$_SERVER['HTTP_HOST'].'/xxxx/';
複製代碼



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

  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. };
複製代碼



改成



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



ckfinder/config.php

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


本文出自:

台長: dangihb3
人氣(29) | 回應(0)| 推薦 (0)| 收藏 (0)| 轉寄
全站分類: 興趣嗜好(收藏、園藝、棋奕、汽機車) | 個人分類: NetYea |
此分類下一篇:網站架設 ESP32 節制 TB6612FNG 直流馬達驅動
此分類上一篇:Arduino ESP32 用光敏電阻做小夜燈

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