<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,//remote picture off
Allowimageupload:true,//Show upload image button
Filtermode:false,
Loadstylemode:false,
Afterblur:function () {This.sync ();},
cssdata: ' Body {font-family: ' Microsoft Jas Black '; font-size:14px} ',// here default font changed to Microsoft Black
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 '],// here the Font size section only shows 14,16,18,24,32
});
});
</script>
Kingeditor Editor modifies default font and default font size