• FCK的配置


    FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),使你在web上可以使用类似微软Word 的桌面文本编辑器的许多强大功能。FCKeditor目前的最新版本是2.6.3,本文以FCKeditor2.6.3介绍在asp.Net中的配置方法。 

    FCKEditor官方下载地址:http://www.fckeditor.net/download 

    在官方网站下载 
    FCKeditor 2.6.3: FCKeditor_2.6.3.zip   
    FCKeditor.Net :FCKeditor.Net_2.6.3.zip    

    配置方法如下: 
    一、删除不必要的文件 

    从官方下载下来的FCKEditor2.6.3大小有3.81M(解压后),其实有很多文件对于只用ASP.NET的来讲是不需要的,我们可以删除不必要的文件:解压缩FCKeditor_2.6.3.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的版本   
    三、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/"/>   
         <!--在2.6中配置文件配置路径-->   

       </appSettings>  


    五、页面调用  

    <%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>   

    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" ToolbarSet="Basic"></FCKeditorV2:FCKeditor>



    取值之只要 FCKeditor1.Value就可以轻松实现

  • 相关阅读:
    远程服务器Xshell的使用 -- 重启服务器操作 和 linux的常用命令
    Spring Boot 服务端开发项目目录结构
    font-weight字体重量和font-family字体类型中的粗细度的对应关系
    iframe的使用
    js 多个箭头函数的使用
    js 获取本地上传的文件(图片和视频)的宽高和大小
    react-navigation Modal弹出层中的StackNavigator导航如何和物理返回匹配?
    IntelliJ IDEA 2019.3的安装和激活
    android EditText 的聚焦和失焦,输入框的监听
    Android 系统架构 和 各个版本代号介绍
  • 原文地址:https://www.cnblogs.com/wanghafan/p/2493984.html
Copyright © 2020-2023  润新知