C# CKEditor、CKFinder集成使用
生活随笔
收集整理的這篇文章主要介紹了
C# CKEditor、CKFinder集成使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.裁剪(ckeditor在\_Samples\ckeditor中) 2.添加引用:CKEditor.NET.dll、CKFinder.dll 3.配置CKEditor: ckeditor/config.js CKEDITOR.editorConfig = function (config) { config.skin = 'office2003'; }; 4.使用CKEditor: <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %> <CKEditor:CKEditorControl ID="txtInfo" runat="server" Height="200" Width="700" BasePath="../Controls/ckeditor" ResizeEnabled="false"></CKEditor:CKEditorControl> 5.配置CKFinder: ckfinder/config.ascx public override bool CheckAuthentication() { return true;//或者使用用戶登陸判斷 } public override void SetConfig() { …… BaseUrl = "~/userfiles/"; …… } 6.使用CKFinder: 在Page_Load中 if (!IsPostBack) { CKFinder.FileBrowser fileBrowser = new CKFinder.FileBrowser(); fileBrowser.BasePath = "../Controls/ckfinder/"; fileBrowser.SetupCKEditor(txtInfo); }
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
總結
以上是生活随笔為你收集整理的C# CKEditor、CKFinder集成使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Jackson学习笔记
- 下一篇: FeliCa简介____带命令协议说明