zoukankan      html  css  js  c++  java
  • KindEditor的htmlTags属性可以过滤不需要的html

    KindEditor的htmlTags属性可以过滤不需要的html

      KE.show({
            id : 'description1',
            items : [
                'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
                'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                'superscript', '|', 'selectall', '-',
                'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold',
                'italic', 'underline', 'strikethrough', 'removeformat', 'link', 'unlink','|','about'
            ],
            filterMode :true,
           htmlTags:{    //以下为不需要过滤过的字符
                font : ['color', 'size', 'face', '.background-color'],
                span : ['style'],  
               
                hr : ['class', '/'],
                br : ['/'],
                'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : ['align', 'style'],
                'strong,b,sub,sup,em,i,u,strike' : []
            }
        });

    转自百度http://hi.baidu.com/jwx_1170/item/d34247e3238bd6226dabb8bb

  • 相关阅读:
    Ubuntu 12.10使用apt安装Oracle/Sun JDK
    织梦(dedecms)系统常用全局变量调用标签及路径
    Lighttpd虚拟主机和多域名的配置
    Ubuntu解压命令大全
    OFBiz终于起航了
    eclipse 安装gradle 插件的三种方式
    验证码
    session的使用
    实验二
    作业2(魔术)
  • 原文地址:https://www.cnblogs.com/liziqiang/p/3491839.html
Copyright © 2011-2022 走看看