87,901
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript" src="/static/js/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="/static/js/kindeditor/lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('#id_content', {
resizeType : 2,
allowImageUpload:false,
height:'500px',
fontSizeTable:'14px',
items:[
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'table', 'hr', 'emoticons', 'map', 'code', 'pagebreak',
'link', 'unlink', '|', 'about'
],
htmlTags:{
table: ['border', 'cellspacing', 'cellpadding', 'width', 'height', 'align', 'bordercolor'],
'td,th': ['align', 'valign', 'width', 'height', 'colspan', 'rowspan', 'bgcolor'],
a : ['href'],
img : ['src', 'width', 'height', 'border', 'alt', 'title'],
'p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6,div' : ['align'],
pre : ['class'],
'hr,br,tbody,tr,strong,b,sub,sup,em,i,u,strike,span,font' : ['color']
}
});
});
</script>