把样式写进html编辑器弊端
来源:互联网 发布:生物科学类 知乎 编辑:程序博客网 时间:2024/06/15 00:54
<span style="font-family: Arial; font-size: 14px; line-height: 26px;"></span><pre style="white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);">KindEditor.ready(function (K) { editor = K.create('textarea[name="content"]', { filterMode: false,//是否开启过滤模式 });});
<span style="font-family: Arial; font-size: 14px; line-height: 26px;">以及JS配置文件内,不在列表内的都被过滤掉了</span>
htmlTags { font : ['color', 'size', 'face', '.background-color'], span : [ '.color', '.background-color', '.font-size', '.font-family', '.background', '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.line-height' ], div : [ 'align', '.border', '.margin', '.padding', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight', '.background', '.font-style', '.text-decoration', '.vertical-align', '.margin-left' ], table: [ 'border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor', '.padding', '.margin', '.border', 'bgcolor', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.background', '.width', '.height', '.border-collapse' ], 'td,th': [ 'align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.background', '.border' ], a : ['href', 'target', 'name'], embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'], img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'], 'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [ 'align', '.text-align', '.color', '.background-color', '.font-size', '.font-family', '.background', '.font-weight', '.font-style', '.text-decoration', '.vertical-align', '.text-indent', '.margin-left' ], pre : ['class'], hr : ['class', '.page-break-after'], 'br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del' : [] }
文章发布修改太麻烦,非专业人做不来。
0 0
- 把样式写进html编辑器弊端
- 自己写的html编辑器
- 最近写了个html在线编辑器
- 自己写的一个HTML编辑器
- 怎么通过 JavaScript 把HTML里的css样式改变。
- html文本编辑器中纯数字折行样式
- Html(6)CSS样式写的位置
- JavaScript写一个方法把URL解析成对象.html
- HTML 样式
- html样式
- HTML样式
- HTML样式
- html 样式
- HTML样式
- HTML 样式
- HTML样式
- HTML样式
- HTML样式
- Java中的private、protected、public和default的区别
- Android studio 导入github工程
- 数据库的范式
- struts2 基础入门
- Java开发中的23种设计模式详解(转)
- 把样式写进html编辑器弊端
- navicat for mysql 10.0.11简体中文破解版 绿色版
- GestureDetector手势检测器的使用
- Linux目录操作命令
- Android 绘图机制:canvas初解
- Java如何实现系统监控、系统信息收集、sigar开源API的学习
- Git 使用规范流程
- Android之Matrix用法
- 缓存Redis与Memcached的比较