zoukankan      html  css  js  c++  java
  • fckeditor编辑器优化技巧 (网摘)

    摘自 http://hi.baidu.com/caicaihui/blog/item/073672f0f99afda9a40f52a0.html

    最新版本2.63的优化技巧

    === 删除文件

    一 删除带_文件和文件夹
    二 删除根目录下
    fckeditor.afp|fckeditor.asp|fckeditor.cfc|fckeditor.cfm|fckeditor.lasso|fckeditor.php|fckeditor.pl|fckeditor.py|fckeditor_php4.

    php|fckeditor_php5.php|fckutils.cfm|license.txt
    三 删除editor"filemanager"connectors所有文件夹,只保留aspx

    === 支持上传,解决浏览的问题

    四 修改editor"filemanager"connectors"aspx"config.ascx 第41行,修改为return true
    五 修改fckconfig.js文件 第276,277行修改为aspx
    六 修改editor"filemanager"connectors"aspx"config.ascx 第73,80,87,94行,修改为对应的上传目录

    === 优化配置

    修改fckconfig.js文件
    七 第171,174,177修改为true,去掉高级功能
    八 第98行 修改FCKConfig.ToolbarSets["Default"]

    FCKConfig.ToolbarSets["Default"] = [
    ['Source','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteWord'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Checkbox','Radio','TextField','Textarea','Select','Button'],
    '/',
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList','Indent','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','Rule','SpecialChar','PageBreak'],
    '/',
    ['Style','FontName','FontSize'],
    ['TextColor','BGColor'],
    ['FitWindow','ShowBlocks']   // No comma for the last row.
    ] ;

    FCKConfig.ToolbarSets["Basic"] = [
    ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink']
    ] ;

    九 第173行 增加字体

    FCKConfig.FontNames   = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;宋体;黑体;隶书' ;

    十 FCKConfig.BackgroundBlockerOpacity = 0.00 ;

    十一 FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

  • 相关阅读:
    fd_set 用法
    初步认识迭代服务器和并发服务器
    慢系统调用与信号中断
    nigix以及相关
    IO多路复用的几种实现机制的分析
    伪终端
    linux非阻塞的socket EAGAIN的错误处理
    从输入 URL 到页面加载完成的过程中都发生了什么事情?
    7.9 函数的定义
    7.8 文件操作
  • 原文地址:https://www.cnblogs.com/lfzwenzhu/p/1298962.html
Copyright © 2011-2022 走看看