zoukankan      html  css  js  c++  java
  • FCKeditor详细的设置

    进入FCKeditor文件夹,编辑 fckconfig.js 文件。
    1、此步骤是必须的,也是最重要的一步。修改

    var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
    var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
    改为
    var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
    var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php

    加上几种我们常用的字体的方法,例如:修改
    FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
    改为
    FCKConfig.FontNames = '宋体;黑体;隶书;楷体_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';

    修改SkinPath
    FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
    改为
    FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

     2、配置WebConfig,在<appSettings>节点添加,如下所示:
    <appSettings>
        <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    </appSettings>

    3、配置config.ascx 文件

    修改上传文件路径
    在fckeditor\editor\filemanager\connectors\aspx\config.ascx
    UserFilesPath = ("/userfiles/");
    改为
    UserFilesPath = ResolveUrl("~/userfiles/");

    修改上传认证方法
    更改CheckAuthentication()方法,返回true.
    或是
    return (Session["FCKeditorIsAuthorized"] != null && (bool)Session["FCKeditorIsAuthorized"] == true);
    登录后加上 Session["FCKeditorIsAuthorized"] == true;

    文件简化
    * 可以把fckeditor目录及其子目录下所有下划下开头的范例、源文件删掉。 
    * 可以在fckeditor目录下只保留fckconfig.js、fckeditor.js和几个xml文件,其余全部删掉。 
    * fckeditor目录下的editor目录下有个filemanager目录,把该目录下的borswer\default\connectors目录中除aspx目录以外的全部目录删掉。 
    * 可以把editor\lang目录下除zh-cn.js、en.js、zh.js之外的全部删掉。

  • 相关阅读:
    安卓学习-界面-ui-GirdView
    安卓学习-界面-ui-AutoCompleteTextView
    安卓学习-界面-ui-Adapter
    安卓学习-界面-ui-ListView
    安卓学习-界面-ui-ImageView
    安卓学习-界面-ui-AnalogClock、DigitalClock和Chronometer
    clientdataset生成sql
    安卓学习-界面-ui-ToggleButton Switch
    DOM通过ID或NAME获取值
    DOM基本代码二
  • 原文地址:https://www.cnblogs.com/flyfish/p/1334411.html
Copyright © 2011-2022 走看看