.net環境下ckeditor與ckfinder學習筆記
精簡前:4.52M 精簡後:853K
1.刪除_samples和_source資料夾,分別為示例檔案和未壓縮源程式
2.刪除lang資料夾下除zh-cn.js,en.js下的所有語言檔案.根據需要刪除
3.刪除根目錄下的changes.html(更新列表),install.html(安裝指向),license.html(使用許可).
4.刪除skins目錄下不需要的皮膚.我一般用V2(簡單.樸素) //如果只保留V2則必須在config.js中指定皮膚
二.ckeditor 3.0.1相關檔案配置路徑
1./ckeditor.js 核心檔案,呼叫需載入
2./config.js 配置檔案,引數配置均在此完成
3./plugins/smiley/images 表情符號.
三.ckeditor應用(.net環境)
1.引用js指令碼
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
2.將相應的控制元件替換成編輯器程式碼
<asp:TextBox ID="TextBox1" runat="server" Rows="10" TextMode="MultiLine"></asp:TextBox>
<script type="text/javascript">CKEDITOR.replace('TextBox1')</script>
四.ckeditor配置(config.js配置檔案)
詳細api引數見:http://docs.cksource.com/ckeditor_api/,我的預設配置
CKEDITOR.editorConfig = function(config) {
config.language = "zh-cn";config.skin = "v2";
config.width = "80%";
config.height = "400px";
config.resize_enabled = false;
config.toolbar =
[
['Source', 'Preview', '-'],
['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', ],
['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak'],
'/',
['Bold', 'Italic', 'Underline', '-', 'Subscript', 'Superscript'],
['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['Link', 'Unlink', 'Anchor'],
'/',
['Format', 'Font', 'FontSize'],
['TextColor', 'BGColor'],
['Maximize', 'ShowBlocks', '-', 'About']
];
ckfinder學習筆記
一.ckfinder精簡
精簡前:1.10M 精簡後:947K
1.刪除_samples和_source資料夾,分別為示例檔案和未壓縮源程式
2.刪除根目錄下changelog.txt,install.txt,license.txt檔案
3.刪除core/lang目錄下除en.js,zh-cn.js的所有語言檔案(根據條件刪除)
二.ckfinder配置
1.複製/bin目錄下的ckfinder.dll檔案至站點bin目錄
2.複製ckfinder目錄至站點根目錄下(可另選擇路徑)
三.ckfinder應用
1.與ckeditor整合,詳情見官方文件,官方文件是載入修改,我用的方法是全域性修改.
具體操作方法如下:修改ckeditor目錄下的config.js檔案,新增:
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash';
config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
config.filebrowserWindowWidth = '800';
config.filebrowserWindowHeight = '500';
以上URL值需要根據你ckfinder路徑的不同而不同,
2.單獨應用
3.破解:
開啟core/js下的兩個ckfinder_ie.js和ckfinder_gecko.js檔案.查詢字串"en.call(window,qo);"將其註釋即可
原文連結:http://hua7073.blog.163.com/blog/static/600177372009103101655429/
相關文章
- Dockerfile 與 Compose 環境搭建學習筆記(二)Docker筆記
- Dockerfile 與 Compose 環境搭建學習筆記(一)Docker筆記
- webpack學習筆記(mac環境)Web筆記Mac
- 學習筆記:MQTT環境搭建筆記MQQT
- Android環境搭建學習筆記Android筆記
- MSP432安裝與環境配置(ccs) 學習筆記筆記
- Linux 學習筆記--環境變數與檔案查詢Linux筆記變數
- Xamarin 學習筆記 - 配置環境(Windows & iOS)筆記WindowsiOS
- 【Python學習筆記】-虛擬環境virtualenvPython筆記
- React Native學習筆記----React Native簡介與環境安裝React Native筆記
- [學習筆記]使用 Anaconda 管理虛擬環境筆記
- 學習筆記:openstack實驗環境安裝筆記
- laravel學習筆記之開發環境搭建Laravel筆記開發環境
- tensorflow學習筆記1——mac開發環境配置筆記Mac開發環境
- Dubbo 學習筆記(五) 開發環境常用技巧筆記開發環境
- 學習筆記-kali中配置python編寫環境筆記Python
- Webpack4 學習筆記八 開發環境和生產環境配置Web筆記開發環境
- <react學習筆記(1)>認識react和環境搭建React筆記
- L01 學習筆記--開發環境佈置筆記開發環境
- webpack學習筆記:搭建基本的前端開發環境Web筆記前端開發環境
- 分散式基礎&專案環境搭建_學習筆記分散式筆記
- php 學習筆記之搭建開發環境(mac版)PHP筆記開發環境Mac
- Python-深度學習-學習筆記(9):在win7環境下的 TensorFlow GPU版安裝Python深度學習筆記Win7GPU
- docker 學習筆記之實戰 lnmp 環境搭建系列 (2) ------ 手動搭建 lnmp 環境Docker筆記LNMP
- TypeScript學習筆記(一)環境搭建和資料型別TypeScript筆記資料型別
- ASP.NET學習筆記2ASP.NET筆記
- 《學習筆記》.NET Core API搭建筆記API
- Dubbo | Dubbo快速上手筆記 - 環境與配置筆記
- 學習筆記2(下)筆記
- 學習日記1——ubuntu環境下學習C++以及安裝PCL庫UbuntuC++
- 精通C#學習筆記--C# 與 .NET平臺C#筆記
- 【Kubernetes學習筆記】-使用Minikube快速部署K8S單機學習環境筆記K8S
- linux或者CentOS環境下安裝.NET Core環境LinuxCentOS
- 專案管理指南學習筆記-專案執行環境(1)專案管理筆記
- GO語言學習筆記之mac環境go語言配置Go筆記Mac
- 李炎恢 Laravel API介面學習筆記[基於 Laravel Sail 環境]LaravelAPI筆記AI
- docker 學習筆記之實戰 lnmp 環境搭建系列 (1) —— docker 介紹與安裝Docker筆記LNMP
- BearPi-HM Nano學習筆記(2)——HarmonyOS環境搭建[Windows篇]@對映與燒錄NaN筆記Windows
- .NET Core學習筆記(1)——在Linux下執行Console APP筆記LinuxAPP