ASP.NET CKEditor和CKFinder配置

第一次搞这个真的搞的头大,好歹最后也学会了。下面分享一下步骤

第一步:

官网下载CKEditor最新的和CKFinder最新的 都是Net版本的

第二步:

解压2个复制文件到网站下面,最好平级

第三步,记得引用下ckfinder 下面的dll

第四步:

配置ckEdit的工具条

在ckedit 下面的config.js 里面  我的是简单的工具栏

config.language = ‘zh-cn‘;

config.uiColor = ‘#DBEEF5‘;

config.toolbar = ‘Full‘;

config.height = 400;

config.resize_enabled = false;

config.toolbar_Full = [

[‘Bold‘, ‘Italic‘, ‘Underline‘, ‘Strike‘, ‘-‘, ‘Subscript‘, ‘Superscript‘],

[‘NumberedList‘, ‘BulletedList‘, ‘-‘, ‘Outdent‘, ‘Indent‘],

[‘JustifyLeft‘, ‘JustifyCenter‘, ‘JustifyRight‘, ‘JustifyBlock‘],

[‘Format‘, ‘FontSize‘],

[‘TextColor‘, ‘BGColor‘],

[‘Image‘]

];

对应图片

下面这是所有的工具栏配置自己选

config.toolbar_Full = [

[‘Source‘,‘-‘,‘Save‘,‘NewPage‘,‘Preview‘,‘-‘,‘Templates‘],

[‘Cut‘,‘Copy‘,‘Paste‘,‘PasteText‘,‘PasteFromWord‘,‘-‘,‘Print‘, ‘SpellChecker‘, ‘Scayt‘],

[‘Undo‘,‘Redo‘,‘-‘,‘Find‘,‘Replace‘,‘-‘,‘SelectAll‘,‘RemoveFormat‘],

[‘Form‘, ‘Checkbox‘, ‘Radio‘, ‘TextField‘, ‘Textarea‘, ‘Select‘, ‘Button‘, ‘ImageButton‘, ‘HiddenField‘],

‘/‘,

[‘Bold‘,‘Italic‘,‘Underline‘,‘Strike‘,‘-‘,‘Subscript‘,‘Superscript‘],

[‘NumberedList‘,‘BulletedList‘,‘-‘,‘Outdent‘,‘Indent‘,‘Blockquote‘],

[‘JustifyLeft‘,‘JustifyCenter‘,‘JustifyRight‘,‘JustifyBlock‘],

[‘Link‘,‘Unlink‘,‘Anchor‘],

[‘Image‘,‘Flash‘,‘Table‘,‘HorizontalRule‘,‘Smiley‘,‘SpecialChar‘,‘PageBreak‘],

‘/‘,

[‘Styles‘,‘Format‘,‘Font‘,‘FontSize‘],

[‘TextColor‘,‘BGColor‘]

];

第五步与ckfinder集成

还是在ckeditr里面config里面配置

// 在 CKEditor 中集成 CKFinder,注意 ckfinder 的路径选择要正确。

config.filebrowserBrowseUrl = location.hash + ‘/admin/ckfinder/ckfinder.html‘;

config.filebrowserImageBrowseUrl = location.hash + ‘/admin/ckfinder/ckfinder.html?Type=Images‘;

config.filebrowserUploadUrl = location.hash + ‘/admin/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files‘;

config.filebrowserImageUploadUrl = location.hash + ‘/admin/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images‘;

config.filebrowserWindowWidth = ‘800‘;

config.filebrowserWindowHeight = ‘500‘;

然后配置ckfinder 在 里面找到config.ascx 把这个方法返回为true 允许上传

以及设置图片上传的路径

最后使用

引用2个js

<script src="ckeditor/ckeditor.js" type="text/javascript"></script>

<script src="ckfinder/ckfinder.js" type="text/javascript"></script>

控件上加class="ckeditor 就OK了

<asp:TextBox ID="tbContent" runat="server" TextMode="MultiLine" class="ckeditor"></asp:TextBox>

时间: 2024-08-29 19:36:52

ASP.NET CKEditor和CKFinder配置的相关文章

CKEditor和CKFinder配置-上传图片功能-为了testlink使用

testlink折腾的最久的部分就是图片上传的部分了.已经吐血了. tesklink使用的图片上传插件是第三方插件FCKEDITOR,09年已经更名为CKEditor. 百度释义: FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器,用JavaScript编写.它志于轻量化,不需要太复杂的安装 步骤即可使用.它可和PHP.JavaScript.ASP.ASP.NET.ColdFusion.Java.以及ABAP等不同的编程语言相结合. “FCKeditor”名称中的“F

PHP中CKEditor和CKFinder配置

1./ckeditor/config.js, 配置文件,如果不想写太多,可以直接写好默认配置(语言,菜单栏,宽度),有需要可以百度config配置 config.language = ‘en’:config.skin = ‘v2’:config.uiColor = ‘#AADC6E’:config.toolbar = ‘Basic’:…. 2.官方的demo大多都喜欢用js配置editor区域,习惯写php的我就嫌麻烦,只好看内置的php类. require_once ROOTPATH . “c

网络编辑器插件ckeditor+ckfinder配置

原帖地址 另外一个 去掉编辑器的下边栏 在config.js中加入: config.removePlugins = 'elementspath'; config.resize_enabled = false; 就ok了 ckeditor+ckfinder配置用法   一.使用方法:    1.在页面<head>中引入ckeditor核心文件ckeditor.js    <script type="text/javascript" src="ckeditor/

Ckeditor与Ckfinder的配合使用,上传图片、水印、修改图片名字为当前日期 asp.net

为了配置出来上传功能,并且还添加水印,修改图片的名字为日期,真的头疼了很久,现在来分享一下自己所做的,也算一点小小的成就吧,顺带帮帮很多还在弄这个的猿们.我是分别用了两种方法.先说低版本的Version 2.0, September 2011,昨天配置好了.先认识一下ckeditor跟ckfinder的区别吧,cke呢只要是文本编辑器,单不具备上传的功能,所以有加了ckf,接下来详细说明. 1.  现在官网里面下好对应的版本,把它添加到项目中,如下: 2.然后就去配置ckeditor的confi

CKeditor、CKFinder的安装配置

CKEditor是不集成文件上传与管理功能的,文件上传管理功能被集成在CKFinder中,这是一个收费的商业软件. 如需要文件上传与管理功能建议使用FCKeditor或者手动破解CKFinder. 下面我说一下ckeditor的使用方法,有三种: 当前最新的.net版本为ckeditor_aspnet_3.6.6.2 ckeditor为4.5.8 方法一(添加控件的形式): ①将ckeditor_aspnet_3.6.6.2\bin\Debug路径中的CKEditor.NET.dll添加到引用

Drupal 7 配置ckeditor和ckfinder编辑器实现图片上传--不用wysisyg

注意: 1.这里的ckeditor编辑器是独立模块,不是那个wysiwyg模块. 2.这里的图片上传仅仅为文章内图片,非字段图片. 1.下载文件(1) http://drupal.org/project/ckeditor drupal的ckeditor模块(2) http://ckeditor.com/download CKeditor源码(3) http://ckfinder.com/download CKfinder(注意,不是免费的) 将ckedit文件夹放置在/sites/all/mod

Ckeditor与Ckfinder(java)整合实现富媒体内容编辑(支持文件上传)

先来看一下最终的效果图 一.编辑器界面 二.上传图片界面 <!-------------------------------------------------------> 一.安装包下载,我使用的安装包是ckfinder_java_2.3.zip和ckeditor_3.6.3.zip,这两个文件可以分别到http://ckfinder.com/download和http://ckeditor.com/download下载,注意我使用的开发语言是java,所以下载cfinder的时候需要选择

在JSP里使用CKEditor和CKFinder

在JSP里使用CKEditor和CKFinder 最近在做一个新闻发布平台,放弃了很早的FCKEditor,使用CKEditor和CKFinder,尽管免费的CKFinder是Demo版本,但是功能完整,而且用户都是比较集中精神发新闻的人,不会在意这个.按照官网的document一步一步配置,虽然并不难,但是有些东西特别分散,还是全英文的,所以我就整理了一下安装过程和配置,以及需要注意的一些问题.希望对大家有所帮助. 目录 1. 下载CKEditor相关的安装文件 2. 安装CKEditor和C

ckeditor和ckfinder整合

一.下载必须的jar包 1.ckeditor_3.6.2.zip 2.ckeditor-java-3.6.2.war 3.ckfinder_java_2.1.zip 二.myeclipse引入jar包 位置: 插入java代码到src目录 引入js文件到WEB-ROOT 导入config.xml文件到WEB-INFO文件下 修改 config.xml 1.<enabled>false</enabled> 当前限制上传功能 2.<baseURL>/Elec/userfil