//以下是初始化编辑框,没有问题
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="d_content"]', {
cssPath : '/kindeditor/plugins/code/prettify.css',
uploadJson : '/kindeditor/asp/upload_json_wu.asp',
fileManagerJson : '/kindeditor/asp/file_manager_json_wu.asp',
filterMode: false,//是否开启过滤模式
allowFileManager : true
});
//以下代码是提取示例:http://kindeditor.net/ke4/examples/multi-image-dialog.html
K('#J_selectImage').click(function() {
editor.loadPlugin('multiimage', function() {
editor.plugin.multiImageDialog({
clickFn : function(urlList) {
var div = K('#J_imageView');
div.html('');
K.each(urlList, function(i, data) {
div.append('<img src="' + data.url + '">');
});
editor.hideDialog();
}
});
});
});
prettyPrint();
});
编辑框一切正常,但点击批量上传图片的按钮,没有出现批量上传的组件出来