主题: KE如何禁用编辑器自动添加样式?
作者: Rainr, 发布日期: 2012-07-17 17:33:40, 浏览数: 2962

本来我有一个 HTML文件。我把HTML文件的内容放入到 编辑器中。 但是 我发现KE默认给我加上了很多样式 造成了我本来的HTML页面的样式改变了。

这是KE添加的样式:


<head><meta charset="utf-8"><title>KindEditor</title>
<style>
html {margin:0;padding:0;}
body {margin:0;padding:5px;}
body, td {font:12px/1.5 "sans serif",tahoma,verdana,helvetica;}
body, p, div {word-wrap: break-word;}
p {margin:5px 0;}
table {border-collapse:collapse;}
img {border:0;}
noscript {display:none;}
table.ke-zeroborder td {border:1px dotted #AAA;}
img.ke-flash {
	border:1px solid #AAA;
	background-image:url(http://localhost:11070/jsWidgets/kindeditor/themes/common/flash.gif);
	background-position:center center;
	background-repeat:no-repeat;
	width:100px;
	height:100px;
}
img.ke-rm {
	border:1px solid #AAA;
	background-image:url(http://localhost:11070/jsWidgets/kindeditor/themes/common/rm.gif);
	background-position:center center;
	background-repeat:no-repeat;
	width:100px;
	height:100px;
}
img.ke-media {
	border:1px solid #AAA;
	background-image:url(http://localhost:11070/jsWidgets/kindeditor/themes/common/media.gif);
	background-position:center center;
	background-repeat:no-repeat;
	width:100px;
	height:100px;
}
img.ke-anchor {
	border:1px dashed #666;
	width:16px;
	height:16px;
}
.ke-script, .ke-noscript {
	display:none;
	font-size:0;
	width:0;
	height:0;
}
.ke-pagebreak {
	border:1px dotted #AAA;
	font-size:0;
	height:2px;
}
</style>
</head>



发表新帖 发表回复