标签:
<load href="../assets/statics/editor/themes/default/default.css" />
<load href="../assets/statics/editor/plugins/code/prettify.css" />
<load href="../assets/statics/editor/kindeditor.js" />
<load href="../assets/statics/editor/plugins/code/prettify.js" />
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create(‘textarea[id="editor_id"]‘, {
bodyClass : [‘14px‘],
uploadJson : ‘../assets/statics/editor/php/upload_json.php‘,
fileManagerJson : ‘../assets/statics/editor/php/file_manager_json.php‘,
themeType : ‘simple‘,
langType:‘zh-cn‘,
allowFileManager : true,
allowPreviewEmoticons : true,//远程图片关闭
allowImageUpload : true, //显示上传图片按钮
filterMode : false,
loadStyleMode : false,
afterBlur:function(){this.sync();},
cssData: ‘body {font-family: "微软雅黑"; font-size: 14px}‘,//此处默认字体改为微软雅黑
items : [‘source‘, ‘|‘, ‘fullscreen‘, ‘undo‘, ‘redo‘, ‘print‘, ‘cut‘, ‘copy‘, ‘paste‘,
‘plainpaste‘, ‘wordpaste‘, ‘|‘, ‘justifyleft‘, ‘justifycenter‘, ‘justifyright‘,
‘justifyfull‘,‘table‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘indent‘, ‘outdent‘, ‘subscript‘,
‘superscript‘,
‘title‘, ‘fontname‘, ‘fontsize‘, ‘|‘, ‘forecolor‘, ‘hilitecolor‘, ‘bold‘,
‘italic‘, ‘underline‘, ‘strikethrough‘, ‘removeformat‘, ‘|‘, ‘image‘,
‘flash‘, ‘media‘, ‘advtable‘, ‘emoticons‘, ‘link‘, ‘unlink‘,
‘|‘, ‘baidumap‘,‘code‘,‘about‘],
fontSizeTable : [‘14px‘, ‘16px‘, ‘18px‘, ‘24px‘, ‘32px‘],//此处字号部分只显示14,16,18,24,32
});
});
</script>
标签:
原文地址:http://www.cnblogs.com/langxi/p/4570870.html