<link rel="stylesheet" href="../Keditor/themes/default/default.css" />
<link rel="stylesheet" href="../Keditor/plugins/code/prettify.css" />
<script charset="utf-8" src="../Keditor/kindeditor.js"></script>
<script charset="utf-8" src="../Keditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="../Keditor/plugins/code/prettify.js"></script>
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content"]', {
cssPath : '../Keditor/plugins/code/prettify.css',
uploadJson : '../Keditor/asp/upload_json.asp',
fileManagerJson : '../Keditor/asp/file_manager_json.asp',
allowFileManager : true,
afterCreate : function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=form1]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=form1]')[0].submit();
});
}
});
prettyPrint();
});
</script>
这是我调用编辑器的。如果要在一个页面调用上传窗口。。怎么接