• FCKeditor 2.6.6 FCKeditor.Net_2.6.3 配置


    FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),使你在web上可以使用类似微软Word 的桌面文本编辑器的许多强大功能。FCKeditor目前的最新版本是2.6.6,本文以FCKeditor2.6.6介绍在asp.Net中的配置方法。
    FCKEditor官方下载地址:http://ckeditor.com/download在官方网站下载
    FCKeditor 2.6.6: FCKeditor_2.6.6.zip
    FCKeditor.Net :FCKeditor.Net_2.6.3.zip
    配置方法如下:
    一、删除从官方下载下来的FCKEditor2.6.6中不必要的文件,其实有很多文件对于只用ASP.NET的来讲是不需要的,我们可以删除不必要的文件:解压缩FCKeditor_2.6.6.zip到vs2008对应的项目fckeditor文件夹中,同时把文件夹内带_的文件夹和文件一并删除:
    1.fckeditor目录下除editor目录、fckconfig.js、fckeditor.js fckstyles.xml fcktemplates.xml 这几个保留,其余的全部删除
    2.editor\filemanager\connectors目录中除aspx目录外全部删除
    3.editor\lang目录中除en.js、zh.js 、zh-cn.js外全部删除
    4.删除_samples目录,当然如果你想看示例,就不要删除这个目录了。
    二、下载FCKeditor.Net_2.6.3.zip。解压缩,将bin/Release中的FredCK.FCKeditorV2.dll拷贝到网站或项目的bin目录内。这里要注意选择一下asp.Net的版本,官方提供的版本有两个1.0和2.0
    三、fckconfig.js修改:
    FCKConfig.DefaultLanguage = 'zh-cn' ; //设置使用的语言
    var _FileBrowserLanguage = 'aspx'; //设置文件浏览使用的程序
    var _QuickUploadLanguage = 'aspx'; //设置上传所使用的程序
    四、web.config相关配置:
    <appSettings>
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/> //设置脚本路径
    <add key="FCKeditor:UserFilesPath" value="~/upload/"/> </appSettings> //设置用户上传文件路径
    五、页面调用
    <%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %> <FCKeditorV2:FCKeditor ID="FCKeditor" runat="server" ToolbarSet="Basic"></FCKeditorV2:FCKeditor>

  • 相关阅读:
    uni-app 苹果内购支付及获取苹果支付成功信息
    nginx强制使用https访问(http跳转到https)
    最新IOS审核被拒原因TOP10 | 附带解决方法
    ethercat PREEMPT SMP
    client-go workqueue
    k8s apiserver 重启失败
    cni flannel iptables -t filter -D FORWARD -j REJECT --reject-with icmp-host-prohibited
    nginx configmap
    golang yaml LoadYAML
    not found: manifest unknown: manifest unknown
  • 原文地址:https://www.cnblogs.com/jxcia_Lai/p/2216618.html
Copyright © 2020-2023  润新知