zoukankan      html  css  js  c++  java
  • ckeditor自己用的配置文件config.js

    原文发布时间为:2011-01-17 —— 来源于本人的百度文章 [由搬家工具导入]

    CKEDITOR.editorConfig = function(config) {
        // Define changes to default configuration here. For example:
        // config.language = 'fr';
        // config.uiColor = '#AADC6E';

        config.skin = "kama";
        //config.ContextMenu = ['Generic','Anchor','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
        config.font_names = '宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;' + config.font_names;

        config.height = "300";
        //config.contentsCss = '/css/mysitestyles.css';
        config.toolbar = 'MyToolbar';
        //['Source'],
        config.toolbar_MyToolbar =
     [['Source','-','Preview'],
      ['Cut', 'Copy', 'Paste'],
         ['Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'NumberedList', 'BulletedList', 'Outdent', 'Indent'],
         ['Table', 'HorizontalRule', 'PageBreak'],
         ['Link', 'Unlink', 'Image', 'Flash', 'Undo', 'Redo']
     ];
        config.protectedSource.push(/<s*iframe[sS]*?>/gi); // <iframe> tags.
        config.protectedSource.push(/<s*frameset[sS]*?>/gi); // <frameset> tags.
        config.protectedSource.push(/<s*frame[sS]*?>/gi); // <frame> tags.
        config.protectedSource.push(/<s*script[sS]*?/scripts*>/gi); // <SCRIPT> tags.
        config.protectedSource.push(/<%[sS]*?%>/g); // ASP style server side code
        config.protectedSource.push(/<?[sS]*??>/g); // PHP style server side code
        config.protectedSource.push(/(<asp:[^>]+>[s|S]*?</asp:[^>]+>)|(<asp:[^>]+/>)/gi);

    };

  • 相关阅读:
    PHP配置redis支持
    redis入门——redis常用命令
    CentOS7 linux下yum安装redis以及使用
    Linux安装配置git
    Java基础88 数据库设计的三大范式
    Java基础87 MySQL数据约束
    Java基础85 MVC开发模式
    错误/异常:java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind;的解决方法
    Java基础84 javaBean规范
    Java基础83 JSP标签及jsp自定义标签(网页知识)
  • 原文地址:https://www.cnblogs.com/handboy/p/7163979.html
Copyright © 2011-2022 走看看