<script type="text/javascript">
var editor;
KindEditor.ready(function(JH){
editor = JH.create('textarea[name="content"]',{
cssPath : '/source/kindeditor/plugins/code/prettify.css',
uploadJson : '{$BASE_URL}call/kindUpload',
fileManagerJson : '/source/kindeditor/php/file_manager_json.php',
allowFileManager : true,
afterCreate : function() {
var self = this;
JH.ctrl(document, 13, function() {
self.sync();
JH('form[name=blog]')[0].submit();
});
JH.ctrl(self.edit.doc, 13, function() {
self.sync();
JH('form[name=blog]')[0].submit();
});
}
}
);
});
</script>
创建并配置KindEditor的js代码能分离成独立的JS文件么?我试了一下好像不行,请问大家有什么方法?