把样式写进html编辑器弊端
2015-11-23 11:40
441 查看
<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,//是否开启过滤模式
});
});
文章发布修改太麻烦,非专业人做不来。
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' : [] }
文章发布修改太麻烦,非专业人做不来。
相关文章推荐
- CSS简介
- css样式中position和_position的区别
- css案例学习之float浮动
- 解决css的float父div没有高度
- 为telerik控件设置主题样式
- CSS3实现鼠标hover的过渡效果
- css黑魔法
- CSS3 弹性布局Flex
- css案例学习之父子块的margin
- css区分ie8/ie9/ie10/ie11 chrome firefox的代码
- css案例学习之div与span的区别
- css案例学习之盒子模型
- WPF自定义控件与样式(6)-ScrollViewer与ListBox自定义样式
- css案例学习之层叠样式
- css案例学习之继承关系
- css
- css3实现逐渐变大的圆填充div背景的效果
- CSS3的滤镜效果(-webkit-filter)
- CSS文字段落排版
- CSS盒模型