net在线HTML编辑器,cuteEditor配置

      一直用fckeditor,发现上传文件和图片一直不能用。把网上所有的配置都找了遍,发现还是没有效果,最后不得不换个编辑器了,用了cuteeditor,发现还是很好用的,找了下配置技巧,上传功能都可以了,而且还是蛮方便的。

第一步:请依次打开:
CuteSoft_Client/CuteEditor/Configuration/Security
修改“Security”文件夹中的“Default.config”文件即可^^
==========================
第二步:对Default.config进行常用属性设置:
==========================
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<security name="RestrictUploadedImageDimension">true</security>   //是否限制上传图象尺寸
<security name="OverWriteExistingUploadedFile">false</security>   //如果上传的文件已经存在,是否将其覆盖
<security name="AutoResizeUploadedImages">true</security>   //是否自动调整上传图象
<security name="MaxImageWidth">1024</security>   //上传图象的最大宽度
<security name="MaxImageHeight">768</security>   //上传图象的最小宽度
<security name="MaxImageSize">1000</security>   //上传图象文件的最大值
<security name="MaxMediaSize">100</security>   //上传媒体文件的最大值
<security name="MaxFlashSize">100</security>   //上传Flash文件的最大值
<security name="MaxDocumentSize">10000</security>   //文档最大值
<security name="MaxTemplateSize">1000</security>   //模板最大值
<security name="ImageGalleryPath">~/uploads</security>   //图象文件上传路径
<security name="MediaGalleryPath">~/uploads</security>   //媒体文件上传路径
<security name="FlashGalleryPath">~/uploads</security>   //Flash文件上传路径
<security name="TemplateGalleryPath">~/templates</security>   //模板路径
<security name="FilesGalleryPath">~/uploads</security>   //文件库路径
<security name="MaxImageFolderSize">102400</security>   //图象文件夹最大值
<security name="MaxMediaFolderSize">102400</security>   //媒体文件夹最大值
<security name="MaxFlashFolderSize">102400</security>   //
Flash文件夹最大值
<security name="MaxDocumentFolderSize">102400</security>   //文档文件夹最大值
<security name="MaxTemplateFolderSize">102400</security>   //模板文件夹最大值
<security name="ThumbnailWidth">80</security>   //
最小宽度
<security name="ThumbnailHeight">80</security>   //最小高度
<security name="ThumbnailColumns">5</security>   //
最小列数
<security name="ThumbnailRows">3</security>   //最小行数
<security name="AllowUpload">true</security>   //是否允许上传
<security name="AllowModify">true</security>   //
是否允许修改
<security name="AllowRename">true</security>   //是否允许重命名
<security name="AllowDelete">true</security>   //是否允许删除
<security name="AllowCopy">true</security>   //是否允许复制
<security name="AllowMove">true</security> <!-- this is rename too -->   //是否允许移动
<security name="AllowCreateFolder">true</security>   //是否允许创建文件夹
<security name="AllowDeleteFolder">true</security>   //是否允许删除文件夹
<security name="ImageFilters">   //这里过滤(设置)图象文件格式
   <item>.jpg</item>
   <item>.jpeg</item>
   <item>.gif</item>
   <item>.png</item>
</security>
<security name="MediaFilters">   //这里过滤(设置)媒体文件格式
   <item>.avi</item>
   <item>.mpg</item>
   <item>.mpeg</item>
   <item>.mp3</item>
</security>
<security name="DocumentFilters">   //这里过滤(设置)文档文件格式
   <item>.txt</item>
   <item>.doc</item>
   <item>.pdf</item>
   <item>.zip</item>
   <item>.rar</item>
   <item>.avi</item>
   <item>.mpg</item>
   <item>.mpeg</item>
   <item>.swf</item>
   <item>.jpg</item>
   <item>.jpeg</item>
   <item>.gif</item>
   <item>.png</item>
   <item>.htm</item>
</security>
</configuration>
========================

 

1、导入CuteEditor.dll;NetSpell.SpellChecker.dll库文件

2、将CuteSoft_Client文件夹放在web根目录下。这个文件夹是放了控件图片之类数据。(在2.0下可能要把dialog文件夹里面的getfilethub.aspx删除)

3、在根目录下建立Uploads的文件夹作为上传图片及附件的根目录。

4、example.css放在站点根目录下,它指定了编辑器的样式。

5、控件的调用代码:
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

<CE:EDITOR id="Editor1" runat="server" Width="550px" EditorWysiwygModeCss="../example.css"></CE:EDITOR>


可修改文件CuteSoft_Client//CuteEditor//Configuration//Shared//Common.config来添加字体。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CuteEditor for ASP.NET中文版是建立在Html基础之上,最简单易用、功能最强大的所见即所得Asp.net在线编辑器CuteEditor可以帮助Asp.net开发者轻松的对原来文本框(Textarea)中的内容(包括文字、图片等Html内容)进行编辑,更重要得是这些内容编辑的实现是所见即所得方式。 CuteEditor还集成了文件(包括图片、文档等)上传、媒体(包括视频、声音等,支持YouTube)文件直接插入等对你来说非常实用的功能模块。 对于商业授权用户,他们以完全自己进行操作升级和安全维护,我们制定了多种授权方式供广大用户选择。 CuteEditor功能特点 是什么使CuteEditor成为Html在线编辑器的领航者?除了其强大的功能和方便的使用, 这里还有一些顶尖的技术因素是CuteEditor编辑器成为你编辑和发布Web内容的最佳选择: 跨浏览器、跨平台的所见即所得网页编辑器 Compatible with the most important browsers available in the market: IE 5.5+, Firefox 1.0+, Mozilla 1.3+, Netscape 7+, Chrome and Safari (1.3+). This includes Macintosh and Linux. 界面简洁加载速度快 Numerous optimization methods has been applied. It's clean, compact, extremely fast-loading, but still powerful and efficient. CuteEditor遵循Web标准,没有类似 这种标签 Does your online html editor still use deprecated tags such as <FONT>? Cute Editor will help you build sites that adhere to the latest HTML standards, generates clean HTML/XHTML code with no deprecated tags. 能自动清理HTML代码中Word标记 When text is pasted from Microsoft Word allot of unnecessary word specific markup is carried across. This can result in web pages that take an unnecessarily long time to download. The Paste from Word button solves this by removing word markup before pasting the text into your page. 对于开发人员来说简单易用 The perfect addition to your content management system! Only a couple lines of code , you don't need to be an expert. Allows you to add an online HTML editing functionality that works with standard HTML form. 很容易用API隐藏按钮和Tabs标记 Cute Editor allows developers to set the image directory, set the controls width, disable image uploading and deleting, restrict access to the source/preview tabs, hide buttons and lists that you don't want your clients to see or access. 高级表格管理 Create and modify tables and table cells. Set their border color, alignment, cellspacing and more! Once you've created a table, simply right click inside of it and use the handy popup menu to change its attributes. <caption>,<summary>,<thead>,<tfoot>,<th> tags are supported. 图片插入和自动上传 Built-in thumbnail generator. Thumbnail images are dynamically created; Supports upload new images. Paging - specify how many images. Support auto resize images. 用模板来管理内容 The basic idea behind a Content Management System (CMS) is to separate the management of content from design. Cute Editor allows the site designer to easily create and establish templates to give the site a uniform look. Templates may be modified when desired. 在线图像编辑 People that input content on a website are generally not web designers, so most don't have that design & technical fibre in them. With online image editor, you can now edit image file with no image editing software to download or install! Easy drag and drop familiar interface. Resize, change dimensions, scale, crop, add text, optimize, rotate, flip, mirror and add watermark. 把图片存储于数据库中 With CuteEditor you can easily use a Sql Server database or access database as the file storage. RTF到HTML的相互转换 With CuteEditor you can easily convert an HTML document into an RTF file and RTF file into HTML or XHTML document. 创建PDF文件 CuteEditor also allows you dynamically create Adobe PDF documents from ASP.NET. 高级文件上传模式 We integrate a hi-performance ASP.NET upload component - Ajax uploader into Cute Editor. Ajax Uploader allows you to select and upload multiple files at once. It also supports client side validation of the file size/type before uploading.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值