<!doctype html>
<html>
<head>
<title>MultiImageDialog Examples</title>
<link rel="stylesheet" href="../editor/themes/default/default.css" />
<script charset="gb2312" src="../editor/kindeditor.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function(K) {
var editor = K.editor({
cssPath : '../editor/plugins/code/prettify.css',
uploadJson : '../editor/asp/upload_json.asp',
fileManagerJson : '../editor/asp/file_manager_json.asp',
allowFileManager : true
});
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 + '" height="100">');
});
editor.hideDialog();
}
});
});
});
});
</script>
</head>
<body>
<form name="form1" method="post" action="receive.asp">
<input type="button" id="J_selectImage" value="批量上传" />
<div id="J_imageView"></div>
<input type="hidden" name="DivContent" id="DivContent">
<br><br>
<input type="submit">
</form>
<script language="JavaScript">
<!--
form1.DivContent.value = document.all("J_selectImage").innerHTML;
-->
</script>
</body>
</html>
我是想把批量上传的内容提交到数据库