把包引进来 类似 document.write('<link rel="stylesheet" type="text/css" href="' + filePath + '" />');
{
width : 400,height : 250,
name : 'content',
listeners : {
render : function() {
setTimeout(
function() {
editorCase = KindEditor.create( '#contentId',
{ cssPath : 'editor/plugins/code/prettify.css',
items : [
'fontname', 'fontsize', 'bold', 'italic', 'underline', 'removeformat','|', 'justifyleft', 'justifycenter', 'justifyright','justifyfull',
'|' , 'undo', 'redo', '|','/',
'source', 'code', '|', 'image', 'table', '|','clearhtml', 'quickformat', '|', 'link', 'unlink','fullscreen', '|'],
uploadJson : 'editor/asp.net/upload_json.ashx',
fileManagerJson : 'deditor/asp.net/file_manager_json.ashx',
allowFileManager : true,
allowFileUpload : true,
urlType : 'domain',
uploadJson :'upload/uploadImg'
}
); // 载入KindEditor
}, 10);
}
},
html : '<div id="contentId"></div>'
},